Skip to content

Commit

Permalink
upgrade lm_eval to 0.4.5
Browse files Browse the repository at this point in the history
ghstack-source-id: e9b27a6dae61a762923bb09a6d439a87f93032f4
Pull Request resolved: #6533
  • Loading branch information
helunwencser committed Oct 28, 2024
1 parent 85d3ff6 commit 160b8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/models/llama/evaluate/eager_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(
use_kv_cache: bool = False,
):
device = "cuda" if torch.cuda.is_available() else "cpu"
super().__init__(device=device)
super().__init__(device=device, pretrained="gpt2")
self._model = model
self._tokenizer = tokenizer
self._device = torch.device(device)
Expand Down
2 changes: 1 addition & 1 deletion examples/models/llama/install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pip install --no-use-pep517 "git+https://github.com/pytorch/ao.git@${TORCHAO_VER

# Install lm-eval for Model Evaluation with lm-evalution-harness
# Install tiktoken for tokenizer
pip install lm_eval==0.4.2
pip install lm_eval==0.4.5
pip install tiktoken blobfile

# Call the install helper for further setup
Expand Down

0 comments on commit 160b8b5

Please sign in to comment.