Git Product home page Git Product logo

Comments (6)

awni avatar awni commented on September 23, 2024

This is super odd, you shouldn't even need TensorFlow for this example, it's not a dependency.

Maybe try updating your Transformers:

pip install -U transformers

from mlx-examples.

muditbhargava66 avatar muditbhargava66 commented on September 23, 2024

I tried to update the transformers, but I still encountered the same error.

from mlx-examples.

awni avatar awni commented on September 23, 2024

This seems like your environment corrupted or in a wonky state. Are you able to do anything with mlx? Like what happens if you do:

import mlx
a = mlx.zeros((2, 2))
print(a)

Maybe try uninstalling TensorFlow and/or making a clean conda env?

from mlx-examples.

munterwexi avatar munterwexi commented on September 23, 2024

I have also issues with running the convert.py -

it requires CUDA for the flash_attn module, which is not available obviously on my m1 macbook pro.
is there a way to publish the .npz files with the weights on huggingface? or to workaround this issue?

thanks

from mlx-examples.

awni avatar awni commented on September 23, 2024

I think you are using an old version of Transformers try: pip install -U transformers.

Actually it has a minimal version on it. Make sure you do pip install -r requirements.txt before trying to run the example. I will close this, let me know if the issue persists and I can reopen.

from mlx-examples.

munterwexi avatar munterwexi commented on September 23, 2024

That fixed the problem for me, thank you very much for the fast help!

from mlx-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.