|
@@ -6,7 +6,7 @@ from exo.helpers import DEBUG
|
|
|
async def resolve_tokenizer(model_id: str):
|
|
|
try:
|
|
|
if DEBUG >= 4: print(f"Trying AutoProcessor for {model_id}")
|
|
|
- processor = AutoProcessor.from_pretrained(model_id, use_fast=True)
|
|
|
+ processor = AutoProcessor.from_pretrained(model_id, use_fast=True if "Mistral-Large" in model_id else False)
|
|
|
if not hasattr(processor, 'eos_token_id'):
|
|
|
processor.eos_token_id = getattr(processor, 'tokenizer', getattr(processor, '_tokenizer', processor)).eos_token_id
|
|
|
if not hasattr(processor, 'encode'):
|