-
Notifications
You must be signed in to change notification settings - Fork 359
Fix TGI
(Text Generation Inference) Endpoint Inference and TGI JSON Grammar Generation
#502
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
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ab68a1b
fix: Lighteval communication with TGI
cpcdoy f442a29
fix: JSON grammar constrained generation
cpcdoy 6bb6b13
Merge branch 'main' into fix/tgi_inference
cpcdoy cb13617
Merge branch 'main' into fix/tgi_inference
NathanHB 749887e
Merge branch 'main' into fix/tgi_inference
cpcdoy 55e3790
Merge branch 'main' into fix/tgi_inference
NathanHB 7cc8ad3
Merge branch 'main' into fix/tgi_inference
cpcdoy dedab95
fix: unit tests +
cpcdoy 2cbc91d
Merge branch 'main' into fix/tgi_inference
cpcdoy 3014120
Merge branch 'main' into fix/tgi_inference
cpcdoy 2691fd4
Merge branch 'main' into fix/tgi_inference
cpcdoy 61d47ad
Merge branch 'main' into fix/tgi_inference
NathanHB 4730d1a
Merge branch 'main' into fix/tgi_inference
cpcdoy b98702c
fix: request var => doc var after refactor
cpcdoy 9f1b75c
fix: update test to support the new grammar field
cpcdoy ff9553b
Merge branch 'main' into fix/tgi_inference
cpcdoy b049367
fix: TGI endpoint with the new refactor
cpcdoy cfd61a1
update: TGI model config in examples with the latest parameters
cpcdoy e144ddd
add: example custom task on a classification dataset to demonstrate t…
cpcdoy 3faea79
Merge branch 'main' into fix/tgi_inference
cpcdoy c95c88d
add: format example task
cpcdoy 9df8575
fix: unit test
cpcdoy 33cebe9
add: adapt the in the yaml config to use similarly to the other end…
cpcdoy b529ef3
Merge branch 'main' into fix/tgi_inference
cpcdoy 1aebd59
Merge branch 'main' into fix/tgi_inference
cpcdoy 93a645b
clean: moved new task to community_tasks
cpcdoy a34353b
fix: format
cpcdoy 88da108
clean: delete unused grammar field
cpcdoy 007932d
del: grammar
cpcdoy 19afc28
add: copyright at the top
cpcdoy 90e505f
del: langcodes dep isn't needed anymore
cpcdoy ab5c6b9
add: use load from file directly in the main endpoint
cpcdoy 834aa08
del: newlines
cpcdoy 2e5c74b
add: mock HTTP request for info to TGI server
cpcdoy a40b754
Merge branch 'main' into fix/tgi_inference
cpcdoy 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
456 changes: 456 additions & 0 deletions
456
community_tasks/custom_task_classification_grammar_task.py
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
model_parameters: | ||
inference_server_address: "" | ||
inference_server_address: "http://localhost:8080" # Replace with your actual TGI server address | ||
inference_server_auth: null | ||
model_name: null # Optional, only required if the TGI container was launched with model_id pointing to a local directory | ||
generation_parameters: | ||
temperature: 0.1 |
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
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.