Skip to content

Commit

Permalink
use autotokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen, Zhentao committed Nov 10, 2023
1 parent efc651d commit 7afb188
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/llm-harness-evaluation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ jobs:
strategy:
fail-fast: false
matrix:
# include:
# python-version: ["3.9"]
# model_name: "stablelm-3b-4e1t"
# task: "arc"
# precision: ["sym_int4"] #options: sym_int4, fp4, nf4, mixed_4bit, fp8
python-version: ["3.9"]
model_name: ["stablelm-3b-4e1t"]
task: ["truthfulqa"]
precision: ["mixed_4bit"] #options: sym_int4, fp4, nf4, mixed_4bit, fp8

runs-on: [self-hosted, llm, accuracy, temp-arc01]
env:
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
Expand Down
2 changes: 1 addition & 1 deletion python/llm/dev/benchmark/harness/bigdl_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
self._device = device
self.model = model.to(device)

self.tokenizer = LlamaTokenizer.from_pretrained(pretrained, trust_remote_code=True)
self.tokenizer = AutoTokenizer.from_pretrained(pretrained, trust_remote_code=True)

# setup for automatic batch size detection
if batch_size == 'auto':
Expand Down

0 comments on commit 7afb188

Please sign in to comment.