question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Examples tests improvements

See original GitHub issue

There are a few things about the examples/ tests that are suboptimal:

  1. They never use cuda or fp16, even if they are available.
  2. The @slow decorator used in the main tests is not importable, so there are no @slow tests.
  3. test_run_glue uses distilbert-case-cased. It should use a smaller model, one of the tiny family here or a new tiny model.
  4. There is no test coverage for TPU.

Any help on any of these fronts would be much appreciated!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
sshleifercommented, Jul 26, 2020

Yes!

1reaction
sshleifercommented, Jun 17, 2020

Good idea.

  1. Yes. I think the desired behavior is if torch.cuda.is_available():
  • assume fp16 is available
  • run the code with fp16 and cude.

Try to do that for all tests. Some will likely break. You can add a TODO to those and keep them running on CPU for now.

1b) You probably need a GPU to do this PR.

  1. There are more tests than that:
$ ls examples/**/test*.py

examples/adversarial/test_hans.py
examples/summarization/bertabs/test_utils_summarization.py
examples/summarization/test_summarization_examples.py
examples/test_examples.py
examples/token-classification/test_ner_examples.py
examples/translation/t5/test_t5_examples.py
Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Ideas for Continuous Improvement in Software Testing
1.Devising A Plan And Defining Strategy · 2.Scenario Analysis · 3.Test Data Identification · 4.Automated Testing · 5.Pick the Right QA Tools.
Read more >
11 Ways to Improve Software Testing through Planning, Work ...
Learn the ways to improve software testing and quality assurance through planning, establishing a productive work environment, ...
Read more >
Model for Improvement - Testing Interventions
Explains how the Model for Improvement was used in a community health setting. ... Examples of completed PDSA Worksheets: Example 1 (pdf, 1...
Read more >
Science of Improvement: Testing Changes | IHI
Reasons to Test Changes. To increase your belief that the change will result in improvement. ... Example of a Test of Change (Plan-Do-Study-Act...
Read more >
Software Testing Process Improvements for Test / QA Managers
You have learnt till now that testing should be used to enhance software quality as well as the final product. Just as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found