-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: for eval=5 wikitext: {'word_perplexity,none': 11.49343838017535, 'word_perplexity_stderr,none': 'N/A', 'byte_perplexity,none': 1.6110947678444059, 'byte_perplexity_stderr,none': for eval all ... Test Plan: sh run.sh Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: e1564ea867790825ad8a00c8de8a672a349b8a48 Pull Request resolved: #155
- Loading branch information
Showing
3 changed files
with
77 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export MODEL_REPO=meta-llama/Llama-2-7b-chat-hf | ||
|
||
# python generate.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --compile # working | ||
# echo "base" | ||
# export MODEL_REPO=meta-llama/Llama-2-7b-chat-hf | ||
# python quantize.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --mode int4-gptq --calibration_tasks wikitext --calibration_limit 5 | ||
# python eval.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4-gptq.g32.cuda.pth --tasks wikitext --limit 5 | ||
|
||
|
||
python quantize.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --mode int4-hqq | ||
# python generate.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4-hqq.g32.cuda.pth --compile | ||
python eval.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4-hqq.g32.cuda.pth --tasks wikitext | ||
|
||
python quantize.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --mode int4 | ||
# python generate.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4.g32.cuda.pth --compile | ||
python eval.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4.g32.cuda.pth --tasks wikitext | ||
|
||
# python quantize.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --mode int4 | ||
# python eval.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4.g32.cuda.pth --tasks wikitext --limit 5 | ||
# broken | ||
|
||
# export MODEL_REPO=meta-llama/Llama-2-70b-chat-hf | ||
# python quantize.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --mode int4 | ||
# python eval.py --checkpoint_path checkpoints/$MODEL_REPO/model_int4.g32.cuda.pth --tasks wikitext --limit 5 | ||
# ENABLE_INTRA_NODE_COMM=1 torchrun --standalone --nproc_per_node=8 generate.py --compile --checkpoint_path checkpoints/$MODEL_REPO/model_int4.g32.cuda.pth | ||
|
||
# python quantize.py --checkpoint_path checkpoints/$MODEL_REPO/model.pth --mode int4-gptq --calibration_tasks wikitext --calibration_limit 5 |