Skip to content

Commit 0437c50

Browse files
committed
Update skip compile message
Signed-off-by: Andrea Fasoli <andrea.fasoli@ibm.com>
1 parent 6780770 commit 0437c50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/run_decoder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from torch import distributed, set_grad_enabled
99

1010
# Local Packages
11-
from aiu_fms_testing_utils.utils import aiu_setup, warmup_model
1211
from aiu_fms_testing_utils.utils.aiu_setup import dprint, rank
1312
from aiu_fms_testing_utils.utils.args_parsing import get_args
1413
from aiu_fms_testing_utils.utils.decoders_utils import run_decoder_eval
@@ -80,7 +79,7 @@
8079
model.compile(mode=args.compile_mode, backend=args.compile_backend)
8180
dprint("Model compiled.")
8281
else:
83-
dprint("[WARNING] SKIP COMPILE.")
82+
dprint("Skip model compiling. Only for debug purpose.")
8483

8584
run_decoder_eval(model, tokenizer, args, device)
8685

scripts/run_encoder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
save_path = None
4343

4444
# !!! insert DQ for encoders here
45+
# pass default_dtype to DQ function
4546

4647
# if DQ is used, args.model_path represent FP16 ckpt but we need to load the
4748
# newly-created INT8 ckpt. Without DQ, args.model_path is the INT8 ckpt already.
@@ -96,7 +97,7 @@
9697
model.compile(mode=args.compile_mode, backend=args.compile_backend)
9798
dprint("Model compiled.")
9899
else:
99-
dprint("[WARNING] SKIP COMPILE.")
100+
dprint("Skip model compiling. Only for debug purpose.")
100101

101102
if args.architecture == "roberta_question_answering":
102103
run_encoder_eval_qa(model, tokenizer, args)

0 commit comments

Comments
 (0)