-
Notifications
You must be signed in to change notification settings - Fork 19
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
⚙️ Fix Integration Test for TGI #124
base: main
Are you sure you want to change the base?
Conversation
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.
Nice, few nits, but overall it seems fine to me.
For GPT2, I wonder if it would be useful to pass the JETSTREAM_PT_DISABLED=1
env var, otherwise it will try to use jetstream first, and go to torch xla as fallback.
|
||
class LauncherHandle: | ||
def __init__(self, port: int): | ||
self.client = AsyncClient(f"http://localhost:{port}") | ||
self.client = AsyncClient(f"http://localhost:{port}", timeout=600) | ||
self.logger = logging.getLogger(self.__class__.__name__) |
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.
note we use loguru
elsewhere for logging
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.
Refactored with loguru
"LOG_LEVEL": "info,text_generation_router,text_generation_launcher=debug", | ||
"MAX_BATCH_SIZE": "4", | ||
"HF_HUB_ENABLE_HF_TRANSFER": "0", | ||
"JETSTREAM_PT": "1", |
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.
you can remove this one now
import Levenshtein | ||
import pytest | ||
|
||
MODEL_ID = "google/gemma-2b-it" |
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.
wouldn't it be possible to have a single test file with different parameters per model instead of having a new file?
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.
Done
7dc97f2
to
9e63ff2
Compare
a7243e8
to
c5eaa0a
Compare
c5eaa0a
to
1af9edc
Compare
What does this PR do?
Fixes broken TGI integration tests and adds Gemma model test
Changes
Notes
This PR is currently not integrated with CI due to some issue with Docker-in-Docker (DinD) on the GitHub runners