ollama/model
Bruce MacDonald 8815a8ee25 ml: let model specify rope configuration
Add support for model-specific RoPE configuration parameters by:

1. Creating a new `RopeConfig` struct to encapsulate all RoPE parameters
2. Adding `RopeType` enum to specify different RoPE variants (Standard/NeoX)
3. Extracting original context length from model config
4. Refactoring `RoPE()` interface to use the new config struct
5. Updating llama and mllama models to use new RoPE configuration

This change allows models to specify their RoPE implementation type and
original context length, which is important for proper position embedding
calculation and model compatibility.
2025-02-14 14:21:00 -08:00
..
imageproc imageproc mllama refactor (#7537) 2024-12-14 19:50:15 -08:00
models ml: let model specify rope configuration 2025-02-14 14:21:00 -08:00
testdata next ollama runner (#7913) 2025-02-13 16:31:21 -08:00
model.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00
model_test.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00
process_text.go vocab: Use int32 for special tokens 2025-02-13 17:09:26 -08:00
process_text_test.go next ollama runner (#7913) 2025-02-13 16:31:21 -08:00