-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gushiqiao
committed
Nov 29, 2024
1 parent
24e461f
commit 7cf886f
Showing
10 changed files
with
256 additions
and
57 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
configs/quantization/methods/RTN/rtn_w_a_kv_human_eval.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: [pretrain, fake_quant] | ||
type: code | ||
name: human_eval | ||
res_path: ./human_eval/ | ||
# 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 | ||
format_tabs: True | ||
inference_per_block: False | ||
quant: | ||
method: RTN | ||
weight: | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_channel | ||
group_size: -1 | ||
act: | ||
bit: 8 | ||
symmetric: True | ||
granularity: per_token | ||
kvcache: | ||
method: Naive | ||
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .eval_acc import AccuracyEval | ||
from .eval_code import HumanEval | ||
from .eval_ppl import PerplexityEval | ||
from .eval_token_consist import TokenConsistencyEval | ||
from .eval_vlm import VLMEval |
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.