Skip to content

GGUF conversion #67

Closed
Closed

Description

@x4080

Hi, I modified your alpaca mistral 7b colab example https://colab.research.google.com/drive/1Dyauq4kTZoLewQ1cApceUQVNcnnNTzg_#scrollTo=upcOlWe7A1vc

To use other mistral model, I'm confused about how to save the model in fp16 mode ? The reason is then I wanted to convert to gguf, here's the step after training success and inference test is correct :

new_model = "xxx/xxxx"
model = model.merge_and_unload()
model.push_to_hub(new_model)
tokenizer.push_to_hub(new_model)

The result is very small like only 4.13 gb and in HF tag it said 4 bit precision (model.safetensors)
And llama cpp gguf convert.py refused to convert this

Did I do something wrong ?

Note : BTW unsloth is very cool, very fast training

Activity

  1. danielhanchen commented on Jan 6, 2024

    @danielhanchen
    Member

    @x4080 Thanks for the kind words! Oh yep if you join our Discord https://discord.gg/u54VK8m8tk - we also discussed about this! (Unless of course if you're already in our Discord :) )

    I'll make a notebook specifically for GGUF conversion since it looks like a huge feature request :)

  2. changed the title [-]Question : How to save model with lora in fp16 mode ?[/-] [+]GGUF conversion[/+] on Jan 6, 2024
  3. x4080 commented on Jan 6, 2024

    @x4080
    Author

    @danielhanchen Thanks I will join your Discord.

  4. danielhanchen commented on Jan 9, 2024

    @danielhanchen
    Member

    @x4080 #71 might be useful :)

  5. x4080 commented on Jan 9, 2024

    @x4080
    Author

    @danielhanchen Thanks. I'll check it out

  6. danielhanchen commented on Jan 15, 2024

    @danielhanchen
    Member

    @x4080 Closing for now! Hope the notebook helped!

  7. x4080 commented on Jan 15, 2024

    @x4080
    Author

    @danielhanchen Thanks for the update, it works now

  8. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions