Closed shroominic closed 10 months ago
I too have the same system as you and I've managed to run.
Can you check if you have the same versions here:
Here's the llama2.mojo run:
Check if you have added the mojo executable:
echo 'export MODULAR_HOME="/Users/<your_uname>/.modular"' >> ~/.zshrc\n
echo 'export PATH="/Users/<your_uname>/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.zshrc\nsource ~/.zshrc\n
In my case I'm using zshrc
, if you're using bash
just change .zshrc
with .bashrc
.
And then when you run, simply call mojo llama2.mojo stories15M.bin -s 100 -n 256 -t 0.5 -i "hello"
from the root of llama2.mojo repo.
@shroominic Here's the run with compiled version also:
Hi @shroominic , Try to set full path to library file (not to the directory):
On my environment it looks like this :
export MOJO_PYTHON_LIBRARY="/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/Python"
Python is a lib file:
file /opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/Python
/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/Python: Mach-O 64-bit dynamically linked shared library arm64
Niiiice thanks it works now 🚀
Not sure what this all means but I am just trying to run this on my MacBook Pro based on the README.md ... I installed mojo and I am able to run basic hello world scripts and I've put the path of my conda base env.
Here another try with LLVM Symbolizer and the smaller model: