Skip to content

Unsloth: unsloth/Phi-3-mini-4k-instruct not supported yet #378

Closed

Description

@KingNish24

How we can fine tune Multimodal LLM like Phi 3 using unsloth package ?

config.json: 100%
 684/684 [00:00<00:00, 43.8kB/s]
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
[<ipython-input-2-aba42707d972>](https://localhost:8080/#) in <cell line: 4>()
      2 import numpy as np
      3 from unsloth import FastLanguageModel
----> 4 model, tokenizer = FastLanguageModel.from_pretrained(
      5     model_name = "HuggingFaceM4/idefics2-8b",
      6     max_seq_length = 2048,

[/usr/local/lib/python3.10/dist-packages/unsloth/models/loader.py](https://localhost:8080/#) in from_pretrained(model_name, max_seq_length, dtype, load_in_4bit, token, device_map, rope_scaling, fix_tokenizer, trust_remote_code, use_gradient_checkpointing, *args, **kwargs)
    120             dispatch_model = FastGemmaModel
    121         else:
--> 122             raise NotImplementedError(
    123                 f"Unsloth: {model_name} not supported yet!\n"\
    124                 "Make an issue to https://github.com/unslothai/unsloth!",

NotImplementedError: Unsloth: unsloth/Phi-3-mini-4k-instruct not supported yet!
Make an issue to https://github.com/unslothai/unsloth!

Activity

  1. danielhanchen commented on Apr 24, 2024

    @danielhanchen
    Member

    Working on it!!! (for Phi-3)
    Multimodal not yet supported - its on our roadmap

  2. sumukshashidhar commented on Apr 25, 2024

    @sumukshashidhar

    @danielhanchen Looking forward to Phi-3 support! Do let me know if you need any help regarding this!

  3. danielhanchen commented on Apr 26, 2024

    @danielhanchen
    Member

    @sumukshashidhar Ill try adding it today!

  4. NickyDark1 commented on Apr 27, 2024

    @NickyDark1

    image

  5. ewre324 commented on Apr 27, 2024

    @ewre324

    I guess work is still going on. Let's wait and watch, fingers crossed.

  6. CrispStrobe commented on Apr 27, 2024

    @CrispStrobe

    or you can just use a llamafied version of the model

  7. reneric commented on Apr 29, 2024

    @reneric

    Glad to hear you're working on Phi-3. Thanks for the hard work!

  8. CrispStrobe commented on Apr 29, 2024

    @CrispStrobe

    for illustration: Phi3_ORPO_Unsloth.ipynb

  9. danielhanchen commented on Apr 29, 2024

    @danielhanchen
    Member

    Had to mistral-fy it since Phi has sliding window attention and fixed the 2047/2048 SWA bug and unfused everything

  10. CrispStrobe commented on Apr 29, 2024

    @CrispStrobe

    nice! (btw in unsloth/Phi-3-mini-4k-instruct modelcard also says q4 but that is ofc unquantized)

  11. danielhanchen commented on May 1, 2024

    @danielhanchen
    Member

    @CrispStrobe Thanks for the quick notice!!

  12. NickyDark1 commented on May 2, 2024

    @NickyDark1

    Does this modify the model much?

  13. danielhanchen commented on May 4, 2024

    @danielhanchen
    Member

    Oh no not really - it's just mistral-fied - also I fixed a few bugs

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