Skip to content

full context lora Yi-34B with 24GB #17

Closed

Description

@C00reNUT

Hello, this is really nice!

Do you plan to support https://huggingface.co/01-ai/Yi-34B? It is probably the best 34B model so far.

Also I have seen you have some notebooks on Kaggle, it would be nice to include them also into the repo, so people could try the things seamlessly.

Thank you!

Activity

  1. danielhanchen commented on Dec 6, 2023

    @danielhanchen
    Member

    @C00reNUT I just pushed a new pre-release commit to the main branch which in theory supports Yi, Mistral (but one must change the config file from MistralForCausalLM to LlamaForCausalLM) and all GQA models.

    If it's possible - it'll be cool if u can try it out!!

    On Kaggle - yes I'll probably make a nice table for Alpaca, LAION, OASST etc, for Colab, Kaggle and the original HF implement so ie 9 notebooks - I will do that once I finish Mistral support!!!

  2. C00reNUT commented on Dec 6, 2023

    @C00reNUT
    Author

    Yes, I will try to finetune Yi-34B locally on 3090 this or next week, I will let you know!

  3. danielhanchen commented on Dec 7, 2023

    @danielhanchen
    Member

    @C00reNUT Cool thanks!

  4. lapp0 commented on Dec 7, 2023

    @lapp0

    Yi has the same architecture as Llama 2 with some modules renamed.

    Here is a version with the modules renamed to fit Llama 2 https://huggingface.co/chargoddard/Yi-34B-Llama

  5. danielhanchen commented on Dec 8, 2023

    @danielhanchen
    Member

    @lapp0 I think Yi maybe should work now maybe? I remember the Yi team replaced the model arch to Llama

  6. lapp0 commented on Dec 8, 2023

    @lapp0

    You are correct, their model and tokenizer architecture are now LlamaForCausalLM.

    Could you explain what architecture changes were needed on unsloths end to enable Yi given this information?

    (Currently finetuning Yi-34B with the basic expectations showing: decreasing loss, no errors)

  7. danielhanchen commented on Dec 9, 2023

    @danielhanchen
    Member

    @lapp0 Oh I accidentally screwed up GQA loll!! So technically I broke the code myself :(

  8. danielhanchen commented on Dec 12, 2023

    @danielhanchen
    Member

    @lapp0 just updated Unsloth - Yi 34B should now use much less memory and be faster! :)

  9. added a commit that references this issue on Jun 8, 2025
  10. added a commit that references this issue on Jun 25, 2025
  11. added a commit that references this issue on Jul 7, 2025
  12. 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