Skip to content

Commit

Permalink
add missing import (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Mar 31, 2023
1 parent 98a2699 commit 8b80a08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/models/test_hf_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ def test_hf_loading_load_save_paths(checkpoint_upload_path: Optional[str], local
def test_hf_loading_sentencepiece_tokenizer(modify_tokenizer: bool, tmp_path: Path, tiny_t5_model):
transformers = pytest.importorskip('transformers')

from composer.models import HuggingFaceModel

t0_pp_tokenizer = transformers.AutoTokenizer.from_pretrained('bigscience/T0pp')

if modify_tokenizer:
Expand Down
2 changes: 1 addition & 1 deletion tests/trainer/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def get_trainer(self, **kwargs):
model = SimpleModel()
optimizer = torch.optim.Adam(model.parameters())

train_dataset = RandomClassificationDataset(size=25)
train_dataset = RandomClassificationDataset(size=20)
eval_dataset = RandomClassificationDataset(size=10)
train_batch_size = 2

Expand Down

0 comments on commit 8b80a08

Please sign in to comment.