Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Error running an example per https://builds.modular.com/builds/llama3/python #249

Open
skoppisetti opened this issue Nov 8, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@skoppisetti
Copy link

Bug description

I followed all the instructions on the page and in addition after CD ing into the pipelines/python folder I ran the "magic shell" to activate the environment. However I am stuck with the following error:

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
...
ValueError: cannot reshape array of size 12679776 into shape (4096,11760)

Steps to reproduce

Run Llama3 on your laptop

System information

- Mac OS Sanoma - 14.6.1 (23G93)
- max 24.5.0 (e8aacb95)
- mojo 24.5.0 (e8aacb95)
- Modular version 24.5.0
@skoppisetti skoppisetti added the bug Something isn't working label Nov 8, 2024
@ehsanmok
Copy link
Member

ehsanmok commented Nov 8, 2024

Thanks for reporting! magic run llama3 --prompt "hi" works however when I magic shell and run python pipeline.py llama3 --prompt "hi" I get a different error. We'll fix the magic shell path.

@ehsanmok
Copy link
Member

ehsanmok commented Nov 8, 2024

For my case, it turned out I needed to deactivate any conda env even base by conda deactivate then magic shell path worked as expected. If that's the case for you, could you share the outputs of these cases?

  1. magic run env | grep MOD
  2. magic shell then env | grep MOD
  3. magic shell then which python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants