Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylion007 committed Jan 4, 2024
1 parent dbe8d64 commit 6a8d85b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/benchmarks/bert/src/hf_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def create_hf_bert_mlm(pretrained_model_name: str = 'bert-base-uncased',
tokenizer = None

metrics = [
LanguageCrossEntropy(ignore_index=-100,
vocab_size=model.config.vocab_size),
# vocab_size no longer in composer
LanguageCrossEntropy(ignore_index=-100),
MaskedAccuracy(ignore_index=-100)
]
return HuggingFaceModel(model=model,
Expand Down
1 change: 1 addition & 0 deletions examples/benchmarks/bert/src/mosaic_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def create_mosaic_bert_mlm(pretrained_model_name: str = 'bert-base-uncased',
pretrained_model_name)

metrics = [
# vocab size no longer arg in composer
LanguageCrossEntropy(ignore_index=-100),
MaskedAccuracy(ignore_index=-100)
]
Expand Down

0 comments on commit 6a8d85b

Please sign in to comment.