forked from karpathy/llama2.c
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run.c - Clean up, and fix for garbled output
Increased MAX_BUFFER_SIZE 2048 to MAX_BUFFER_SIZE 4096 This fixes buffer overflow and garbled output when output is larger than buffer in rare cases such as when token sequences are repeated during inference. Eg: ./run -c stories110M.bin -t 0 -s 0 -p "A big dog" -b 256 (./run stories110M.bin -0 0 "A big dog" 256)
- Loading branch information
Showing
1 changed file
with
1 addition
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters