Skip to content

Commit 2e0917c

Browse files
Fix
1 parent 11b2797 commit 2e0917c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/neuron/utils/training_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def set_neuron_cc_optlevel_for_model(model: "PreTrainedModel", optlevel: str = "
314314
if match_:
315315
neuron_cc_flags = neuron_cc_flags[: match_.start(0)] + f"{optlevel}" + neuron_cc_flags[match_.end(0) + 1 :]
316316
else:
317-
neuron_cc_flags += f"{optlevel} "
317+
neuron_cc_flags += f" {optlevel} "
318318
os.environ["NEURON_CC_FLAGS"] = neuron_cc_flags
319319

320320

0 commit comments

Comments
 (0)