Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten committed Jul 18, 2024
1 parent 3557b91 commit 21790d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mistral_inference/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def is_torchrun() -> bool:


def load_tokenizer(model_path: Path) -> MistralTokenizer:
tokenizer = [f for f in os.listdir(Path(model_path)) if is_tekken(f) or is_sentencepiece(f)]
tokenizer = [f for f in os.listdir(model_path) if is_tekken(model_path / f) or is_sentencepiece(model_path / f)]
assert (
len(tokenizer) > 0
), f"No tokenizer in {model_path}, place a `tokenizer.model.[v1,v2,v3]` or `tekken.json` file in {model_path}."
Expand Down

0 comments on commit 21790d6

Please sign in to comment.