Skip to content

Pickle error when generating from a mistral model trained with unsloth #196

@kendrickb-nvidia

Description

@kendrickb-nvidia

Priority Level

Medium (Annoying but has workaround)

Describe the bug

Training succeeds, but generation fails with:

Can't pickle <class 'transformers.models.mistral.configuration_mistral.MistralConfig'>: it's not the same object as transformers.models.mistral.configuration_mistral.MistralConfig

Steps/Code to reproduce bug

Use mistralai/Mistral-7B-Instruct-v0.3 with use_unsloth=True

Expected behavior

Training with unsloth succeeds. Or if unsloth cannot work with mistral, throws a clear error message before training.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions