Skip to content

Compute remaining tokens along the way and exit if over#18

Merged
antimatter15 merged 1 commit into
antimatter15:masterfrom
jxy:limit_tokens
Mar 17, 2023
Merged

Compute remaining tokens along the way and exit if over#18
antimatter15 merged 1 commit into
antimatter15:masterfrom
jxy:limit_tokens

Conversation

@jxy

@jxy jxy commented Mar 17, 2023

Copy link
Copy Markdown

For now it will exit if the token length is over the context length.
Use -c or --ctx_size to increase the context length (max 2048, according to llama).

fix #7
fix #8

@lofcz

lofcz commented Mar 17, 2023

Copy link
Copy Markdown

Tested, LGTM

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

Successfully merging this pull request may close these issues.

Terminated by signal SIGSEGV (Address boundary error) on m1 mac Coredump while running model

3 participants