ollama/runner/llamarunner
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 refactor: use the built-in max/min to simplify the code (#12280) 2025-09-16 17:14:21 -07:00
cache_test.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00
image.go Llama cpp bump (df1b612): granite docling / mamba2 optimizations / multimodal encoding fixes (#12552) 2025-10-13 15:26:18 -07:00
image_test.go Llama cpp bump (df1b612): granite docling / mamba2 optimizations / multimodal encoding fixes (#12552) 2025-10-13 15:26:18 -07:00
runner.go embeddings: modified batch size (#13429) 2025-12-11 15:36:31 -08:00