ollama/kvcache
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
..
cache.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00
causal.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00
causal_test.go ml: let model specify rope configuration 2025-02-14 14:21:00 -08:00
encoder.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00
wrapper.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00