project-nomad/admin/app/controllers
Henry Estela 1e1da483e9
feat(AI): enable flash_attn by default and disable ollama cloud (#616)
New defaults:
OLLAMA_NO_CLOUD=1 - "Ollama can run in local only mode by disabling
Ollama’s cloud features. By turning off Ollama’s cloud features, you
will lose the ability to use Ollama’s cloud models and web search."
https://ollama.com/blog/web-search
https://docs.ollama.com/faq#how-do-i-disable-ollama%E2%80%99s-cloud-features
example output:
```
ollama run minimax-m2.7:cloud
Error: ollama cloud is disabled: remote model details are unavailable
```
This setting can be safely disabled as you have to click on a link to
login to ollama cloud and theres no real way to do that in nomad outside
of looking at the nomad_ollama logs.

This one can be disabled in settings in case theres a model out there
that doesn't play nice. but that doesnt seem necessary so far.
OLLAMA_FLASH_ATTENTION=1 - "Flash Attention is a feature of most modern
models that can significantly reduce memory usage as the context size
grows. "

Tested with llama3.2:
```
docker logs nomad_ollama --tail 1000 2>&1 |grep --color -i flash_attn
llama_context: flash_attn    = enabled
```

And with second_constantine/deepseek-coder-v2 with is based on
https://huggingface.co/lmstudio-community/DeepSeek-Coder-V2-Lite-Instruct-GGUF
which is a model that specifically calls out that you should disable
flash attention, but during testing it seems ollama can do this for you
automatically:
```
docker logs nomad_ollama --tail 1000 2>&1 |grep --color -i flash_attn
llama_context: flash_attn    = disabled
```
2026-04-01 19:52:11 -07:00
..
benchmark_controller.ts fix(Benchmark): improved error reporting and fix sysbench race condition 2026-02-11 22:09:31 -08:00
chats_controller.ts fix: improve type-safety for KVStore values 2026-03-03 20:51:38 -08:00
collection_updates_controller.ts fix(security): path traversal and SSRF protections from pre-launch audit 2026-03-11 14:08:09 -07:00
docs_controller.ts fix(Docs): fix doc rendering 2025-07-11 15:31:07 -07:00
downloads_controller.ts feat(downloads): rich progress, friendly names, cancel, and live status (#554) 2026-04-01 15:55:13 -07:00
easy_setup_controller.ts feat(AI): enable remote AI chat host 2026-04-01 17:22:30 +00:00
home_controller.ts fix(OSM): osm installation 2025-08-20 23:05:19 -07:00
maps_controller.ts fix(Maps): add x-forwarded-proto support to handle https termination (#600) 2026-04-01 15:28:11 -07:00
ollama_controller.ts feat(AI): enable remote AI chat host 2026-04-01 17:22:30 +00:00
rag_controller.ts feat(AI): enable remote AI chat host 2026-04-01 17:22:30 +00:00
settings_controller.ts feat(AI): enable flash_attn by default and disable ollama cloud (#616) 2026-04-01 19:52:11 -07:00
system_controller.ts fix: surface actual error message when service installation fails 2026-03-25 16:30:35 -07:00
zim_controller.ts feat(downloads): rich progress, friendly names, cancel, and live status (#554) 2026-04-01 15:55:13 -07:00