Commit Graph

6 Commits

Author SHA1 Message Date
Patrick Devine 10e06d0a45 gemma2 ftw 2025-02-18 12:40:02 -08:00
Patrick Devine 8cf1ea4fd8 add sentence piece tokenizer 2025-02-18 12:39:45 -08:00
Patrick Devine d231229122 cache is king 2025-02-18 12:39:27 -08:00
Patrick Devine fad98fabab gemma2 impl 2025-02-18 12:39:17 -08:00
Jesse Gross ed443a0393 Runner for Ollama engine
This provides integration with the new Ollama engine
(5824541 next ollama runner (#7913)) and the rest of the Ollama
infrastructure such as the runner and Ollama server.

In addition, it also builds out the KV cache infrastructure to
support requirements of how Ollama runs models such as:
 - Parallel processing
 - Memory management for defragmentation and shifting
 - Multi-modal modals

Both old and new engines continue to be supported. By default, only
the old engine is used. To enable the new engine:

Start the server with the OLLAMA_NEW_ENGINE environment variable set:
OLLAMA_NEW_ENGINE=1 ./ollama serve

Start a model that is supported by the Ollama engine. This one is Llama 3.1 8b Q4_K_M:
./ollama run jessegross/llama3.1
2025-02-13 17:09:26 -08:00
Jesse Gross 6945617af5 models: Move model into their own directory
This allows there to be a file that is a list of models that is
not mixed into the runner code.
2025-02-13 17:09:26 -08:00