Skip to content

Commit

Permalink
Fixed error caused by wrong parsing type in eval
Browse files Browse the repository at this point in the history
  • Loading branch information
jmercat committed Dec 9, 2023
1 parent 42f859d commit 3bb4491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evals/lm_harness_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, pretrained="state-spaces/mamba-2.8b", max_length=2048, batch_
self.tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
self.tokenizer.pad_token_id = self.tokenizer.eos_token_id
self.vocab_size = self.tokenizer.vocab_size
self._batch_size = batch_size if batch_size is not None else 64
self._batch_size = int(batch_size) if batch_size is not None else 64
self._max_length = max_length
self._device = torch.device(device)

Expand Down

0 comments on commit 3bb4491

Please sign in to comment.