Skip to content

Commit

Permalink
fix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Jan 10, 2024
1 parent a0f7d88 commit 433b616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/callbacks/test_hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from unittest.mock import patch

from composer.core import State, Time, TimeUnit
from composer.devices import DeviceCPU
from composer.loggers import Logger

from llmfoundry.callbacks.hf_checkpointer import HuggingFaceCheckpointer
Expand Down Expand Up @@ -37,7 +38,7 @@ def assert_checkpoint_saves_to_uri(
dummy_state = State(model=model,
rank_zero_seed=42,
run_name='dummy_run',
device='cpu')
device=DeviceCPU())
dummy_logger = Logger(dummy_state)
# mock the State and Logger
logs = []
Expand Down

0 comments on commit 433b616

Please sign in to comment.