Skip to content

Commit

Permalink
commit change
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Tang committed Jun 17, 2024
1 parent 9f00f61 commit 593e6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/a_scripts/inference/test_convert_composer_to_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,9 +926,9 @@ def test_huggingface_conversion_callback(
# summon full params to check equivalence
from torch.distributed.fsdp import FullyShardedDataParallel as FSDP

context_manager = te.onnx_export(
context_manager = te.onnx_export( # type: ignore
True,
) if trainer_precision == 'amp_fp8' else contextlib.nullcontext() # type: ignore
) if trainer_precision == 'amp_fp8' else contextlib.nullcontext()
with context_manager:
with FSDP.summon_full_params(
trainer.state.model,
Expand Down

0 comments on commit 593e6cd

Please sign in to comment.