-
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.
* Fix omniq clip bugs * Fix omniq clip bugs * Fix awq trans_v1 gqa bug * Add streamllm(Sink) support and add eval decode PPL support --------- Co-authored-by: gushiqiao <[email protected]>
- Loading branch information
Showing
13 changed files
with
412 additions
and
91 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
configs/quantization/methods/KVQuant/rtn_w_a_kivi_quant_kv.yml
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,35 @@ | ||
base: | ||
seed: &seed 42 | ||
model: | ||
type: model_type | ||
path: model path | ||
torch_dtype: auto | ||
eval: | ||
eval_pos: [transformed, fake_quant, fake_quant_wo_kv] #long_ppl eval not support pretrain eval pos | ||
name: wikitext2 | ||
type: decode_ppl | ||
download: False | ||
path: eval_data_path | ||
bs: 1 | ||
inference_per_block: False | ||
num_samples: 10 | ||
# num_eval_tokens: 3 | ||
quant: | ||
method: RTN | ||
weight: | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_channel | ||
group_size: -1 | ||
act: | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_token | ||
kvcache: | ||
method: Kivi | ||
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
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
38 changes: 38 additions & 0 deletions
38
configs/quantization/methods/KVQuant/rtn_w_a_sink_quant_kv.yml
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,38 @@ | ||
base: | ||
seed: &seed 42 | ||
model: | ||
type: model_type | ||
path: model path | ||
torch_dtype: auto | ||
eval: | ||
eval_pos: [transformed, fake_quant, fake_quant_wo_kv] #long_ppl eval not support pretrain eval pos | ||
name: wikitext2 | ||
type: decode_ppl | ||
download: False | ||
path: eval_data_path | ||
bs: 1 | ||
inference_per_block: False | ||
num_samples: 10 | ||
# num_eval_tokens: 3 | ||
quant: | ||
method: RTN | ||
weight: | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_channel | ||
group_size: -1 | ||
act: | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_token | ||
kvcache: | ||
method: Sink | ||
bit: 4 | ||
symmetric: True | ||
granularity: per_token | ||
special: | ||
window_length: 512 | ||
num_sink_tokens: 4 | ||
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
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.