-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better
no_weights
for pytorch and TGI backends (#91)
- Loading branch information
1 parent
f75d9f9
commit 30b43fc
Showing
11 changed files
with
375 additions
and
308 deletions.
There are no files selected for viewing
This file contains 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 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 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
31 changes: 16 additions & 15 deletions
31
...ples/text_generation_inference_llama.yaml → examples/tgi_llama.yaml
This file contains 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,35 +1,36 @@ | ||
defaults: | ||
- backend: text-generation-inference # default backend | ||
- benchmark: inference # default benchmark | ||
- launcher: inline # default launcher | ||
- experiment # inheriting experiment schema | ||
- _self_ # for hydra 1.1 compatibility | ||
- override hydra/job_logging: colorlog # colorful logging | ||
- override hydra/hydra_logging: colorlog # colorful logging | ||
|
||
hydra: | ||
run: | ||
dir: runs/${experiment_name} | ||
sweep: | ||
dir: sweeps/${experiment_name} | ||
job: | ||
chdir: true | ||
env_set: | ||
CUDA_VISIBLE_DEVICES: 0,1 | ||
CUDA_DEVICE_ORDER: PCI_BUS_ID | ||
|
||
experiment_name: text_generation_inference | ||
experiment_name: tgi_llama | ||
model: NousResearch/Llama-2-7b-hf | ||
device: cuda | ||
|
||
backend: | ||
no_weights: true | ||
initial_isolation_check: false | ||
continous_isolation_check: false | ||
torch_dtype: float16 | ||
continuous_isolation: false | ||
# no_weights: true # wok in progress | ||
|
||
benchmark: | ||
input_shapes: | ||
batch_size: 32 | ||
sequence_length: 128 | ||
|
||
new_tokens: 1000 | ||
|
||
hydra: | ||
run: | ||
dir: runs/${experiment_name} | ||
sweep: | ||
dir: sweeps/${experiment_name} | ||
job: | ||
chdir: true | ||
env_set: | ||
OVERRIDE_BENCHMARKS: 1 | ||
CUDA_VISIBLE_DEVICES: 0,1 | ||
CUDA_DEVICE_ORDER: PCI_BUS_ID |
This file contains 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.