huggingface / optimum-neuron

Easy, fast and very cheap training and inference on AWS Trainium and Inferentia chips.
Apache License 2.0
176 stars 51 forks source link

Unit tests are not correctly parsing NEURON_CC_FLAGS environment variable #415

Open aws-tianquaw opened 5 months ago

aws-tianquaw commented 5 months ago

When running trainium unit test with command pytest -m "is_trainium_test", I got an issue that the neuron compiler flags set by os.environ were not picked up by the compiler (link to example test). The compiler seems to run with default flags all the time.

I found that this happens whenever I run tests in tests/test_cache_utils.py together with other tests. The compiler flags can be picked up normally after adding flag --ignore tests/test_cache_utils.py to the test command

HuggingFaceDocBuilderDev commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

HuggingFaceDocBuilderDev commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

HuggingFaceDocBuilderDev commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

HuggingFaceDocBuilderDev commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!