Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "llm-eval-test"
version = "0.3.1"
version = "0.3.2"
description = "LLM Evaluation Test Tool"
authors = [
{name = "Samuel Monson", email = "smonson@redhat.com"},
Expand Down
5 changes: 4 additions & 1 deletion src/llm_eval_test/lm_eval_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import logging
import os
import tempfile

from huggingface_hub import hf_hub_download
Expand Down Expand Up @@ -33,7 +34,9 @@ def exec(tasks, model, tokenizer, endpoint, **kwargs):
"tokenizer_config.json is missing a chat template. Attempting to load from chat_template.json"
)
try:
file_path = hf_hub_download(repo_id=tokenizer_repo, filename="chat_template.json")
file_path = hf_hub_download(
repo_id=tokenizer_repo, token=os.getenv("HF_TOKEN", True), filename="chat_template.json"
)
with open(file_path) as f:
template = json.load(f)["chat_template"]
tokenizer.chat_template = template
Expand Down