Skip to content

Commit

Permalink
Fix INC (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil authored Jul 2, 2024
1 parent dd02f26 commit 3731aa1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions optimum_benchmark/scenarios/training/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"gradient_accumulation_steps": 1,
"output_dir": "./trainer_output",
"evaluation_strategy": "no",
"eval_strategy": "no",
"save_strategy": "no",
"do_train": True,
"use_cpu": False,
"max_steps": -1,
Expand Down
3 changes: 3 additions & 0 deletions tests/configs/_inc_quant_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
backend:
ptq_quantization: true
calibration: true
2 changes: 1 addition & 1 deletion tests/configs/_text_decoders_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ hydra:
sweeper:
params:
backend.task: text-generation
backend.model: hf-internal-testing/tiny-random-gpt2,IlyasMoutawwakil/tiny-random-llama
backend.model: hf-internal-testing/tiny-random-GPT2LMHeadModel,hf-internal-testing/tiny-random-LlamaForCausalLM
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ defaults:
- _base_ # inherits from base config
- _cpu_ # inherits from cpu config
- _inference_ # inherits from inference config
- _inc_quant_ # inherits from incremental quantization config
- _text_decoders_ # inherits from text decoders config
- _no_weights_ # inherits from no weights config
- _self_ # hydra 1.1 compatibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ defaults:
- _base_ # inherits from base config
- _cpu_ # inherits from cpu config
- _inference_ # inherits from inference config
- _inc_quant_ # inherits from incremental quantization config
- _text_encoders_ # inherits from text encoders config
- _no_weights_ # inherits from no weights config
- _self_ # hydra 1.1 compatibility
Expand Down

0 comments on commit 3731aa1

Please sign in to comment.