Skip to content

Commit bd01ca6

Browse files
Meet Patelquic-meetkuma
Meet Patel
authored andcommitted
Added finetuning support for BERT based models on IMDB dataset.
Signed-off-by: Meet Patel <[email protected]>
1 parent f3948e6 commit bd01ca6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

QEfficient/finetune/utils/train_utils.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,9 @@ def train(
184184
ref_device="cpu",
185185
ref_dtype=torch.float32,
186186
# adjust atol & rtol this as required
187-
atol=1e-1,
187+
atol=1,
188188
use_ref_output_on_mismatch=True,
189-
# report all mismatches
190-
max_failures=None,
191-
# generate unittest for each op once
192-
repeat_same_op=True,
189+
filter_config=qaic_debug.DispatchFilterConfig.default(device, opwise_limit=2),
193190
dump_root_dir=train_config.dump_root_dir + str(step),
194191
) as verifier:
195192
model_outputs = model(**batch)

0 commit comments

Comments
 (0)