Skip to content

AttributeError: module 'transformers.models.mistral3.modeling_mistral3' has no attribute 'logger' #2146

@chengju-zhou

Description

@chengju-zhou

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, )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions