-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This PR added int4, int4-gptq, int8, 8da4w quantization to llama-fast Test Plan: Note: int4wo, int4wo-gptq only works for llama2 7b right now since stories has dimension 288 which needs some padding for it to work with int4 kernels python generate.py --compile --checkpoint-path ${MODEL_PATH} --prompt "Hello, my name is" --device cuda --dtype bf16 python generate.py --compile --checkpoint-path ${MODEL_PATH} --prompt "Hello, my name is" --device cuda --quantize '{"linear:int8": {}}' python generate.py --compile --checkpoint-path ${MODEL_PATH} --prompt "Hello, my name is" --device cuda --quantize '{"linear:int4": {"groupsize": 32}}' --dtype bf16 python generate.py --compile --checkpoint-path ${MODEL_PATH} --prompt "Hello, my name is" --device cuda --quantize '{"linear:int4-gptq": {"groupsize": 32}}' --dtype bf16 python generate.py --compile --checkpoint-path ${MODEL_PATH} --prompt "Hello, my name is" --device cuda --quantize '{"linear:8da4w": {"groupsize": 32}}' --dtype fp32 Reviewers: Subscribers: Tasks: Tags:
- Loading branch information
1 parent
49bb02d
commit 82a0adc
Showing
5 changed files
with
130 additions
and
60 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
Oops, something went wrong.