From 56b1111f549a993cc2657b993b6992d3619c364f Mon Sep 17 00:00:00 2001 From: John Ogle Date: Thu, 11 Sep 2025 08:39:36 -0700 Subject: [PATCH] [zix790prors] More local LLM updates Using qwen3:30b explicitly. The default "qwen3" from ollama was pulling a very outdated model apparently (qwen3:8b). qwen3:4b and qwen3:30b are the newest. Also sets up some defaults for gptel that have been useful --- home/modules/emacs/doom/config.el | 14 +++++++++----- machines/zix790prors/configuration.nix | 8 +++++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/home/modules/emacs/doom/config.el b/home/modules/emacs/doom/config.el index f008c5a..c71e8ad 100644 --- a/home/modules/emacs/doom/config.el +++ b/home/modules/emacs/doom/config.el @@ -83,12 +83,16 @@ (setq! gptel-api-key (my/get-rbw-password "openai-api-key-chatgpt-el") gptel-default-mode 'org-mode gptel-use-tools t - gptel-confirm-tool-calls 'always) + gptel-confirm-tool-calls 'always + gptel-include-reasoning 'ignore + gptel-model "qwen3:30b") - (gptel-make-ollama "Ollama-Local" - :host "localhost:11434" - :stream t - :models '(deepseek-r1 deepseek-r1-fullctx qwen3 qwen3-coder llama3.1 qwen2.5-coder mistral-nemo gpt-oss)) + ;; Set default backend to be Ollama-Local + (setq! gptel-backend + (gptel-make-ollama "Ollama-Local" + :host "localhost:11434" + :stream t + :models '(deepseek-r1 deepseek-r1-fullctx qwen3:30b qwen3:4b llama3.1 qwen2.5-coder mistral-nemo gpt-oss))) ;; Define custom tools (gptel-make-tool diff --git a/machines/zix790prors/configuration.nix b/machines/zix790prors/configuration.nix index f0132d1..9140ac9 100644 --- a/machines/zix790prors/configuration.nix +++ b/machines/zix790prors/configuration.nix @@ -71,9 +71,11 @@ with lib; powerManagement.finegrained = false; }; - environment.systemPackages = [ - (pkgs.ollama.override { acceleration = "cuda"; }) - ]; + services.ollama = { + enable = true; + acceleration = "cuda"; + loadModels = [ "gpt-oss" "deepseek-r1" "qwen3:30b" ]; + }; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.