ollama/runner/ollamarunner
nicole pardal 3475d915cb
embeddings: modified batch size (#13429)
This PR detects embedding models and sets batch_size = context_size so the full input fits in a single batch.
Previously, if batch size was smaller than the input, tokens could be split across batches and cause a SIGTRAP crash.
This change ensures all tokens stay in one batch and prevents crashes.
Fixes: #12938 #13054

Co-authored-by: Jesse Gross <jesse@ollama.com>
2025-12-11 15:36:31 -08:00
..
cache.go feat(model): add qwen3vl (#12665) 2025-10-28 17:39:47 -07:00
cache_test.go feat(model): add qwen3vl (#12665) 2025-10-28 17:39:47 -07:00
multimodal.go ggml: Enable op_offload to improve partial offload performance 2025-10-30 13:53:10 -07:00
runner.go embeddings: modified batch size (#13429) 2025-12-11 15:36:31 -08:00