Skip to content

Commit

Permalink
fix: add tokenizer customization back
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Nov 12, 2024
1 parent fc3034a commit 8645863
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bigcodebench/provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def make_model(
instruction_prefix=instruction_prefix,
response_prefix=response_prefix,
trust_remote_code=trust_remote_code,
tokenizer_name=tokenizer_name,
tokenizer_legacy=tokenizer_legacy,
)
elif backend == "hf":
from bigcodebench.provider.hf import HuggingFaceDecoder
Expand All @@ -58,6 +60,8 @@ def make_model(
response_prefix=response_prefix,
attn_implementation=attn_implementation,
trust_remote_code=trust_remote_code,
tokenizer_name=tokenizer_name,
tokenizer_legacy=tokenizer_legacy,
)
elif backend == "openai":
from bigcodebench.provider.openai import OpenAIChatDecoder
Expand Down

0 comments on commit 8645863

Please sign in to comment.