-
Notifications
You must be signed in to change notification settings - Fork 300
Add config files for models #131
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
17 commits
Select commit
Hold shift + click to select a range
197b715
v0 - added the different configs through yaml files, need to document
clefourrier 99e9fa8
fix
clefourrier 364ede0
updated 8bit/4bit calls throughout the code
clefourrier 0d79c98
forgotten file
clefourrier 590c475
fix main + refacto
clefourrier 4ac6050
fixed cleanup
clefourrier 40742fd
added examples
clefourrier 25b10c2
updated doc
clefourrier 21ff928
removed useless call
clefourrier 78a6318
Merge branch 'main' into add_model_config_files
clefourrier c815944
Merge branch 'main' into add_model_config_files
clefourrier 956d82b
Merge branch 'main' into add_model_config_files
clefourrier fd359b3
Merge branch 'main' into add_model_config_files
clefourrier ee500b0
Merge branch 'main' into add_model_config_files
NathanHB 31612ad
fix import
clefourrier 2940393
edited task examples path
clefourrier 1356b6b
Merge branch 'main' into add_model_config_files
clefourrier 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
model: | ||
type: "base" # can be base, tgi, or endpoint | ||
base_params: | ||
model_args: "pretrained=HuggingFaceH4/zephyr-7b-beta,revision=main" # pretrained=model_name,trust_remote_code=boolean,revision=revision_to_use,model_parallel=True ... | ||
dtype: "bfloat16" | ||
merged_weights: # Ignore this section if you are not using PEFT models | ||
delta_weights: false # set to True of your model should be merged with a base model, also need to provide the base model name | ||
adapter_weights: false # set to True of your model has been trained with peft, also need to provide the base model name | ||
base_model: null # path to the base_model | ||
generation: | ||
multichoice_continuations_start_space: false # Whether to force multiple choice continuations to start with a space | ||
no_multichoice_continuations_start_space: false # Whether to force multiple choice continuations to not start with a space |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
model: | ||
type: "endpoint" # can be base, tgi, or endpoint | ||
base_params: | ||
endpoint_name: "llama-2-7B-lighteval" # needs to be lower case without special characters | ||
model: "meta-llama/Llama-2-7b-hf" | ||
revision: "main" | ||
dtype: "float16" # can be any of "awq", "eetq", "gptq", "4bit' or "8bit" (will use bitsandbytes), "bfloat16" or "float16" | ||
reuse_existing: false # if true, ignore all params in instance | ||
instance: | ||
accelerator: "gpu" | ||
region: "eu-west-1" | ||
vendor: "aws" | ||
instance_size: "medium" | ||
instance_type: "g5.2xlarge" | ||
framework: "pytorch" | ||
endpoint_type: "protected" | ||
generation: | ||
add_special_tokens: true |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
model: | ||
type: "tgi" # can be base, tgi, or endpoint | ||
instance: | ||
inference_server_address: "" | ||
inference_server_auth: null |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.