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

Llama does not finish... #30

Closed
HexHands opened this issue Sep 4, 2023 · 6 comments
Closed

Llama does not finish... #30

HexHands opened this issue Sep 4, 2023 · 6 comments
Labels
Bug Something isn't working Local Model Running a local model

Comments

@HexHands
Copy link

HexHands commented Sep 4, 2023

I downloaded the Code Llama 7B, Medium. It seems to not finish any text meaning that it never executes the code. Is there any way of fixing this?
Capture

@KillianLucas
Copy link
Collaborator

Thanks for pointing this out @HexHands!

We should probably have some sort of message that says when it completes because it hits max_tokens (which might be happening here?) . Then we could perhaps ask the user if they want to run the unfinished code block.

Does it do this for very small snippets on your system, like "print hello world"? That will help us determine if it's a max_tokens issue.

@HexHands
Copy link
Author

HexHands commented Sep 4, 2023

This is the best result I got. It runs the code, but for longer code it doesn't finish it. I would like the ability to be able to set max tokens using code.
Capture

@TheWhiteWord
Copy link

same problem

@jordanbtucker jordanbtucker added Bug Something isn't working Local Model Running a local model labels Sep 8, 2023
@brunoboto96
Copy link

brunoboto96 commented Sep 11, 2023

Fiy, this was also referenced by me here: #126 (comment)
Even though I've changed the context size on the appropriate files, also had a brief go at tokentrim.py but no luck

@brunoboto96
Copy link

#126 (comment) Thanks @jordanbtucker the refactoring now works by editing the params in interpreter.py
Still a bit buggy in between instructions, but at least it does not stop 🚀

@leifktaylor
Copy link
Contributor

This issue looks resolved based on @brunoboto96 comment.

@jordanbtucker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Local Model Running a local model
Projects
None yet
Development

No branches or pull requests

7 participants