Skip to content

AssertionError in unsloth_save_model() method? #93

Closed

Description

@dsbyprateekg

Hi,

I a following your official colab notebook example of fine-tuning mistral 7b 4 bit model and getting errors while saving the model in local-
image

Error trace is-
image

Let me know how to solve this issue.

Activity

  1. danielhanchen commented on Jan 16, 2024

    @danielhanchen
    Member

    @dsbyprateekg Working on a fix!

  2. danielhanchen commented on Jan 20, 2024

    @danielhanchen
    Member

    @dsbyprateekg Sorry on the delay! We have new saving methods for GGUF and 16bit merging!

    16bit conversion:

    model.save_pretrained_merged("dir", tokenizer)
    model.push_to_hub_merged("hf/dir", tokenizer, token = "")
    

    GGUF:

    model.save_pretrained_gguf("dir", tokenizer, quantization_method = "q4_k_m")
    model.push_to_hub_gguf("hf/dir", tokenizer, quantization_method = "q4_k_m", token = "")
    
  3. added
    fixed
    fixed - pending confirmation
    and removed
    fixed
    on Jan 27, 2024
  4. added a commit that references this issue on Jun 8, 2025
  5. added a commit that references this issue on Jun 25, 2025
  6. added a commit that references this issue on Jul 7, 2025
  7. added a commit that references this issue on Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed - pending confirmation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions