-
Notifications
You must be signed in to change notification settings - Fork 11
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
Windows failing to run #2
Comments
Current branch is giving this error on windows:
Honestly feels like a zig problem at this point 😅 |
c:\zig\zig build -Doptimize=ReleaseFast |
Ok I believe it should work now! I have tested on linux with wine and everything seems fine. llama2.zig replace-mmap*
❯ zig build-exe src/main.zig -O ReleaseFast -target x86_64-windows
llama2.zig replace-mmap* 3s
❯ wine main.exe stories15M.bin -t 0 -v
config: main.Config{ .dim = 288, .hidden_dim = 768, .n_layers = 6, .n_heads = 6, .n_kv_heads = 6, .
vocab_size = 32000, .seq_len = 256 }
shared weights: true
temperature: 0
top-p: 1
SIMD vector size: 4
Once upon a time, there was a little girl named Lily. She loved to play outside in the sunshine. On
e day, she saw a big, red ball in the sky. It was the sun! She thought it was so pretty.
Lily wanted to play with the ball, but it was too high up in the sky. She tried to jump and reach i
t, but she couldn't. Then, she had an idea. She would use a stick to knock the ball down.
Lily found a stick and tried to hit the ball. But the stick was too short. She tried again and agai
n, but she couldn't reach it. She felt sad.
Suddenly, a kind man came by and saw Lily. He asked her what was wrong. Lily told him about the bal
l. The man smiled and said, "I have a useful idea!" He took out a long stick and used it to knock t
he ball down. Lily was so happy! She thanked the man and they played together in the sunshine.
404 tokens per second |
|
If you are natively on windows, I would recommend using the build command in the read me, which will strip the binaries and ensure you are compiling with release fast |
yeah. Ive done both. Fwiw. |
Versa ran to the park. blah 63 tokens per second
Versa ran to the park. blah 64 tokens per second |
c:\zig\zig build-exe src/main.zig -O ReleaseFast -target x86_64-windows Versa ran to the park. blah 9 tokens per second llama2.zig> c:\zig\zig build -Doptimize=ReleaseFast Versa ran to the park. blah largely in the noise even at the larger sizes. if that is what you meant? |
Reported that it does not work properly on windows. Pushed 631d596 to avoid using linux specific mappings. Will test and debug to get it working properly on windows this weekend.
Thank you
@Freakman
on discord for testing this!The text was updated successfully, but these errors were encountered: