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

Getting very strange response when trying the second example in README.md #37

Closed
wongni opened this issue Sep 28, 2023 · 2 comments
Closed

Comments

@wongni
Copy link

wongni commented Sep 28, 2023

~/src/AI/mojo/llama2.mojo$ mojo llama2.mojo tl-chat.bin \
    -r falcon \
    -z tok_tl-chat.bin \
    -n 256 -t 0 -s 100 -i "<|im_start|>user\nGive me a python function to generate Fibonacci sequence<|im_end|>\n<|im_start|>assistant\n"
num hardware threads:  12
SIMD vector width:  16
checkpoint size:  4400767004 [ 4196 MB ]
n layers:  22
vocab size:  32003
<|im_start|>user
Give me a python function to generate Fibonacci sequence<|im_end|>
<|im_start|>assistant
¿Quiero debera.io|efes<|
|- [aquíntena|
|-|re|re|
|-|
|-ichas|[estructurañiñu|implementa.py|
|esínda|
¿Quiero|

|Olahi|

Does anyone know how to resolve this?

@tairov
Copy link
Owner

tairov commented Sep 28, 2023

I guess the model already updated on Huggingface. See this PR : #35

@tairov
Copy link
Owner

tairov commented Sep 28, 2023

As a quick fix , just try the -r llama cli param

@tairov tairov closed this as completed Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants