Skip to content

Increase 3B scratch buffers. - #1698

Merged
SlyEcho merged 1 commit into
masterfrom
fix-3b-mem-req
Jun 5, 2023
Merged

SlyEcho merged 1 commit into
masterfrom
fix-3b-mem-req

Conversation

@SlyEcho

@SlyEcho SlyEcho commented Jun 5, 2023

Copy link
Copy Markdown
Contributor

The 128 MB was too optimistic.
Too bad it is not dynamically computed.

Ref: #1588 (comment)

The 128 MB was too optimistic.
Too bad it is not dynamically computed.
@SlyEcho
SlyEcho requested a review from Green-Sky June 5, 2023 09:09
@SlyEcho

SlyEcho commented Jun 5, 2023

Copy link
Copy Markdown
Contributor Author

@LostRuins, you suggested increasing to 256MB.

Is that going to be enough? What is the best way to test it?

@SlyEcho

SlyEcho commented Jun 5, 2023

Copy link
Copy Markdown
Contributor Author

It seems to run for me with both Q4_0 and Q5_1 on context 2048 and batch 512 with only 128MB.

@LostRuins

LostRuins commented Jun 5, 2023 •

Copy link
Copy Markdown
Collaborator

Hi @SlyEcho I guess the best way to test it is to download and run your OpenLLAMA 3B ggml quant (which I don't know if I am allowed to link here). But running it as q4_0 with 256MB scratch at batch size 512, for 2048 context, it seems to work for me. I dunno if there may be some boundary parameter that could still fail.

128MB crashes for me at around 1.5k token mark

@LostRuins LostRuins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@SlyEcho

SlyEcho commented Jun 5, 2023

Copy link
Copy Markdown
Contributor Author

OK, I will merge it. Memory use is probably is also dependent on the user's system and build.

@SlyEcho
SlyEcho merged commit 5220a99 into master Jun 5, 2023
@SlyEcho
SlyEcho deleted the fix-3b-mem-req branch June 5, 2023 10:43
@Green-Sky

Copy link
Copy Markdown
Collaborator

download and run your OpenLLAMA 3B ggml quant (which I don't know if I am allowed to link here)

yes you are :) . openllama is an opensource reproduction. licensed under the apache2 license

Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
The 128 MB was too optimistic.
Too bad it is not dynamically computed.
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
The 128 MB was too optimistic.
Too bad it is not dynamically computed.
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
The 128 MB was too optimistic.
Too bad it is not dynamically computed.
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
The 128 MB was too optimistic.
Too bad it is not dynamically computed.
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
The 128 MB was too optimistic.
Too bad it is not dynamically computed.
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.

3 participants