-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Weight48IntegerQuantizer * Add naive qoq int w4a8
- Loading branch information
1 parent
3f8daae
commit 3977a82
Showing
2 changed files
with
64 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
base: | ||
seed: &seed 42 | ||
model: | ||
type: Llama | ||
path: /mnt/nvme1/yongyang/models/llama2-7b | ||
torch_dtype: auto | ||
eval: | ||
eval_pos: [pretrain, fake_quant] | ||
name: wikitext2 | ||
download: False | ||
path: /mnt/nvme0/yongyang/llm_datasets/llmc/eval/wikitext2 | ||
seq_len: 2048 | ||
# For 7B / 13B model eval, bs can be set to "1", and inference_per_block can be set to "False". | ||
# For 70B model eval, bs can be set to "20", and inference_per_block can be set to "True". | ||
bs: 1 | ||
inference_per_block: False | ||
quant: | ||
method: RTN | ||
weight: | ||
quant_type: int-quant | ||
bit: 48 | ||
bit4: | ||
symmetric: False | ||
granularity: per_group | ||
group_size: 128 | ||
scales_bit: 8 | ||
scales_symmetric: True | ||
zeros_bit: 8 | ||
zeros_symmetric: True | ||
bit8: | ||
symmetric: True | ||
granularity: per_channel | ||
int_range: [-120, 120] | ||
act: | ||
quant_type: int-quant | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_token | ||
save: | ||
save_fake: False | ||
save_path: /path/to/save/ |
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