Skip to content

embeddings : fix batch sizes#13076

Merged
ggerganov merged 1 commit into
masterfrom
gg/embeddings-fix-batch
Apr 24, 2025
Merged

embeddings : fix batch sizes#13076
ggerganov merged 1 commit into
masterfrom
gg/embeddings-fix-batch

Conversation

@ggerganov

Copy link
Copy Markdown
Member

fix #12860

Embedding models require to fit the entire prompt in a single micro batch, so we simply force:

n_ubatch = n_batch = n_ctx

@ggerganov ggerganov merged commit 226251e into master Apr 24, 2025
@ggerganov ggerganov deleted the gg/embeddings-fix-batch branch April 24, 2025 19:29
pockers21 pushed a commit to pockers21/llama.cpp that referenced this pull request Apr 28, 2025
timwu pushed a commit to timwu/llama.cpp that referenced this pull request Dec 20, 2025
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
phibya pushed a commit to ziee-ai/llama.cpp that referenced this pull request May 29, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misc. bug: llama-embedding asserts: GGML_ASSERT(params.n_batch >= params.n_ctx);

1 participant