-
Notifications
You must be signed in to change notification settings - Fork 37
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
1 parent
7b5e918
commit d790837
Showing
4 changed files
with
49 additions
and
0 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,46 @@ | ||
base: | ||
seed: &seed 42 | ||
model: | ||
type: model_type | ||
path: model path | ||
tokenizer_mode: slow | ||
torch_dtype: auto | ||
calib: | ||
name: vlm_datastes | ||
type: img_txt | ||
download: False | ||
path: calib data path | ||
n_samples: 128 | ||
bs: -1 | ||
seq_len: 512 | ||
preproc: vlm_general | ||
padding: True | ||
seed: *seed | ||
eval: | ||
eval_pos: [pretrain, fake_quant] | ||
type: img_txt | ||
name: MME | ||
download: False | ||
path: MME dataset path | ||
bs: 16 | ||
inference_per_block: False | ||
quant: | ||
method: Awq | ||
quant_objects: [vision, language] # default is [language] | ||
weight: | ||
bit: 4 | ||
symmetric: False | ||
granularity: per_group | ||
group_size: 128 | ||
special: | ||
trans: True | ||
# The options for "trans_version" include "v1" and "v2". | ||
# But their results don't differ significantly. | ||
trans_version: v2 | ||
weight_clip: True | ||
# For 2-bit quantization, setting "clip_sym: False" will yield better results. | ||
clip_sym: True | ||
save: | ||
save_trans: False | ||
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