Skip to content
Snippets Groups Projects
Unverified Commit fe29045a authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

Update main.py

parent abc25a30
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ def is_torchrun() -> bool: ...@@ -24,7 +24,7 @@ def is_torchrun() -> bool:
def load_tokenizer(model_path: Path) -> MistralTokenizer: def load_tokenizer(model_path: Path) -> MistralTokenizer:
tokenizer = [f for f in os.listdir(Path(model_path)) if f.startswith("tokenizer.model")] tokenizer = [f for f in os.listdir(Path(model_path)) if f.startswith("tokenizer.model") or f.startswith("tekken")]
assert ( assert (
len(tokenizer) > 0 len(tokenizer) > 0
), f"No tokenizer found in {model_path}, make sure to place a `tokenizer.model.[v1,v2,v3]` file in {model_path}." ), f"No tokenizer found in {model_path}, make sure to place a `tokenizer.model.[v1,v2,v3]` file in {model_path}."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment