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 trying to run LLama2.mojo #1169

Closed
1997MarsRover opened this issue Oct 27, 2023 · 6 comments
Closed

[BUG]: Error trying to run LLama2.mojo #1169

1997MarsRover opened this issue Oct 27, 2023 · 6 comments
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label

Comments

@1997MarsRover
Copy link

Bug description

I encountered an issue while running the mojo tool with the following command:

mojo llama2.mojo stories15M.bin -s 100 -n 256 -t 0.5 -i "Mojo is a language"

Error Message:

terminate called after throwing an instance of 'std::system_error'
  what():  Resource temporarily unavailable

[1101:1101:20231027,140843.319764:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1101:1101:20231027,140843.320803:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[1101:1102:20231027,141028.006443:ERROR directory_reader_posix.cc:42] opendir /home/mars_rover/.modular/crashdb/attachments/ec513a01-ad90-4f30-96ca-7a3dea3d901d: No such file or directory (2)

Expected Behavior.
I expected the mojo tool to execute the command without errors and produce the intended output.
Output expected

num hardware threads:  6
SIMD vector width:  16
checkpoint size:  60816028 [ 57 MB ]
n layers:  6
vocab size:  32000
Mojo is a language that people like to talk. Hephones are very different from other people. He has a big book with many pictures and words. He likes to look at the pictures and learn new things.
One day, Mojo was playing with his friends in the park. They were running and laughing and having fun. Mojo told them about his book and his friends. They listened and looked at the pictures. Then, they saw a picture of a big, scary monster. They were very scared and ran away.
Mojo was sad that his book was gone. He told his friends about the monster and they all felt very sad. Mojo's friends tried to make him feel better, but nothing worked. Mojo never learned his language again.
achieved tok/s:  440.21739130434781

Steps to reproduce

  1. Run the following command in a terminal:
mojo llama2.mojo stories15M.bin -s 100 -n 256 -t 0.5 -i "Mojo is a language"

System information

- WSL:Ubuntu
- mojo 0.3.0 (f64f9601)
- modular 0.1.4 (6b54d308)
@1997MarsRover 1997MarsRover added bug Something isn't working mojo Issues that are related to mojo labels Oct 27, 2023
@Sharktheone
Copy link

Can you try updating your mojo (and modular) version? Which WSL version are you using? Because only WSL 2 is supported.

@1997MarsRover
Copy link
Author

Am using WSL2

@tairov
Copy link

tairov commented Oct 27, 2023

Hi @1997MarsRover , mojo v 0.3.0 seems too old :)
llama2.mojo supports latest version 0.4.0 , please try to update your version modular update mojo

@1997MarsRover
Copy link
Author

Thanks @tairov

@ematejska
Copy link
Collaborator

Were you able to successfully run with the updated mojo?

@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
@ematejska ematejska closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
@ematejska
Copy link
Collaborator

Closing due to no response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

4 participants