Skip to content

'unsloth/llava-v1.6-mistral-7b-hf' model inference RuntimeError: Unsloth: Failed to make input require gradients! #1847

Closed

Description

@alessiodecastro

Hello, I was testing model inference with LlavaNext mistral 7B unsloth model, but receive the following error (image). Is LlavaNext mistral 7B still supported?

For further details this is the colab notebook (https://colab.research.google.com/drive/1I1kiWsW1N2Mgx6uCy8Xd2X3o5UFk4jDW?usp=sharing) with the code generating error. thanks in advance for the help.

Image

Activity

  1. alessiodecastro commented on Mar 6, 2025

    @alessiodecastro
    Author

    Hello @shimmyshimmer did you have chance to look at this? Am I doing something wrong in using the model? Many Thanks

  2. shimmyshimmer commented on Mar 27, 2025

    @shimmyshimmer
    Member

    @alessiodecastro should be fixed now apologies for the issue. pls update unsloth and let us know if issue still persists

  3. alessiodecastro commented on Mar 27, 2025

    @alessiodecastro
    Author

    Thanks @shimmyshimmer the old issue seems fixed. But now I get this new error: "ValueError: Image features and image tokens do not match: tokens: 1175, features 1176"
    Looks similar to this: huggingface/transformers#36002 and they solved by updating the model. The fix is the processor_config.json file. Let me know if I need to open a new issue with it. Thanks

    Image

  4. pritamdeka commented on Apr 7, 2025

    @pritamdeka

    @alessiodecastro I am also getting a similar error for the Pixtral model. Did you manage to solve it?

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