-
Notifications
You must be signed in to change notification settings - Fork 119
fix: add missing requires_gpu and requires_heavy_ram markers to Huggi… #621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
planetf1
wants to merge
1
commit into
generative-computing:main
from
planetf1:fix/hf-metrics-test-markers-620
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,6 +297,12 @@ async def test_litellm_token_metrics_integration( | |
| @pytest.mark.asyncio | ||
| @pytest.mark.llm | ||
| @pytest.mark.huggingface | ||
| @pytest.mark.requires_gpu | ||
| @pytest.mark.requires_heavy_ram | ||
| @pytest.mark.skipif( | ||
| int(os.environ.get("CICD", 0)) == 1, | ||
| reason="Skipping HuggingFace metrics test in CI - requires GPU and model download", | ||
| ) | ||
|
Comment on lines
+302
to
+305
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is handled below by Should we replace that code with this decorator? Is the decorator the new standard way to skip in CI? |
||
| @pytest.mark.parametrize("stream", [False, True], ids=["non-streaming", "streaming"]) | ||
| async def test_huggingface_token_metrics_integration( | ||
| enable_metrics, metric_reader, stream, gh_run | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered adding these, but in all my testing they didn't seem to apply. I saw these regularly take 30sec per run as long as the required model was already downloaded. I also made sure to choose a model that was used in other tests so these tests wouldn't download a new model only to use here