tairov / llama2.mojo

Inference Llama 2 in one file of pure 🔥
https://www.modular.com/blog/community-spotlight-how-i-built-llama2-by-aydyn-tairov
MIT License
2.09k stars 140 forks source link

Mojo: error: execution exited with a non-zere result:1 #18

Closed Cyria7 closed 12 months ago

Cyria7 commented 1 year ago

The error occurs when running llama.mojo My environment: Python 3.10(ubuntu22.04)

console imformation bellow:

mojo llama2.mojo stories15M.bin -s 100 -n 256 -t 0.5 -i "Llama is an animal" num hardware threads: 192 SIMD vector width: 16 Unhandled exception caught during execution: An error occurred in Python. mojo: error: execution exited with a non-zero result: 1

tairov commented 1 year ago

Hi @Cyria7 , probably you haven't downloaded model file stories15M.bin See how it works on HF https://huggingface.co/spaces/radames/Gradio-llama2.mojo