Hi, I have the following error when running Mistral Small 3.1 model
File "unsloth_zoo/compiler.py", line 1465, in unsloth_compile_transformers exec("modeling_file.logger.addFilter(HideLoggingMessage('Settinguse_cache=False'))", globals(), locals()) File "<string>", line 1, in <module> AttributeError: module 'transformers.models.mistral3.modeling_mistral3' has no attribute 'logger'
Here is the code snippet
model, tokenizer = FastLanguageModel.from_pretrained( model_name = "unsloth/Mistral-Small-3.1-24B-Instruct-2503-unsloth-bnb-4bit", # YOUR MODEL YOU USED FOR TRAINING max_seq_length = max_seq_length, dtype = dtype, load_in_4bit = load_in_4bit, )
Hi, I have the following error when running Mistral Small 3.1 model
File "unsloth_zoo/compiler.py", line 1465, in unsloth_compile_transformers exec("modeling_file.logger.addFilter(HideLoggingMessage('Settinguse_cache=False'))", globals(), locals()) File "<string>", line 1, in <module> AttributeError: module 'transformers.models.mistral3.modeling_mistral3' has no attribute 'logger'Here is the code snippet
model, tokenizer = FastLanguageModel.from_pretrained( model_name = "unsloth/Mistral-Small-3.1-24B-Instruct-2503-unsloth-bnb-4bit", # YOUR MODEL YOU USED FOR TRAINING max_seq_length = max_seq_length, dtype = dtype, load_in_4bit = load_in_4bit, )