ollama, add two performance changes.
This commit is contained in:
1 parent
8d24fd9da7
commit
2bdf59286d
1 file changed
+4
@@ -275,6 +275,10 @@
|
||||
export OLLAMA_LOAD_TIMEOUT=30m # default is 5m
|
||||
export OLLAMA_REQUEST_TIMEOUT=3600 # default 300 (unconfirmed, not in the list of --help vars)
|
||||
|
||||
### Performance ###
|
||||
export OLLAMA_KV_CACHE_TYPE=q8_0
|
||||
export OLLAMA_FLASH_ATTENTION=1
|
||||
|
||||
### Resource Usage ###
|
||||
export OLLAMA_KEEP_ALIVE=-1 # default is 5m. Good frontends keep the model alive as long as it needs to be, this is not a source of timeout.
|
||||
export OLLAMA_MAX_LOADED_MODELS={{ llm_concurrency }} # default is 3 if using CPUs, or 3 * NumGPUs
|
||||
|
||||
Reference in new issue
Block a user