You need to sign in or sign up before continuing.
  • Jesse Gross's avatar
    Runner for Ollama engine · ed443a03
    Jesse Gross authored
    This provides integration with the new Ollama engine
    (58245413 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
    ed443a03
cmd.go 30.8 KB