Skip to content

Commit

Permalink
fix (ex/llm): Updated args and regenerated default YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfraser committed Dec 6, 2024
1 parent 63080a5 commit 44cb864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/brevitas_examples/llm/config/default_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ act_calibration: false
act_equalization: null
bias_corr: false
checkpoint_name: null
config: null
convert_layernorm_to_rmsnorm: false
dataset: wikitext2
eval: false
Expand Down Expand Up @@ -38,6 +37,7 @@ model: facebook/opt-125m
no_float16: false
no_quantize: false
nsamples: 128
quant_sdpa: false
quantize_input_zero_point: false
quantize_last_layer: false
quantize_weight_zero_point: false
Expand Down
4 changes: 3 additions & 1 deletion src/brevitas_examples/llm/config/gen_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@

if __name__ == "__main__":
default_args = parse_args([])
args_dict = default_args.__dict__
del args_dict["config"] # Config file cannot be specified via YAML
with open('default_template.yml', 'w') as f:
yaml.dump(default_args.__dict__, f)
yaml.dump(args_dict, f)

0 comments on commit 44cb864

Please sign in to comment.