this post was submitted on 05 Sep 2026
4 points (70.0% liked)

AI - Artificial intelligence

358 readers
20 users here now

AI related news and articles.

Rules:

founded 1 year ago
MODERATORS
 

I have a Framework Desktop that I want to put AI models on. I keep hearing that local models are getting more and more impressive. I would love to one day get off of my Claude dependence for the sake of privacy and running things in house. I am currently trying out using pi agent with GLM-4.7-Flash Q8_0. I don't have much of a reference to say how it compares to other local models, but it's definitely not something I could switch over to as a main driver instead of Claude.

What are you guys thoughts?

This is also the first time I've tried Pi. I've also been recommended hermes, which I know very little about.

          ▗▄▄▄       ▗▄▄▄▄    ▄▄▄▖             root@nixos
          ▜███▙       ▜███▙  ▟███▛             ------------
           ▜███▙       ▜███▙▟███▛              OS: NixOS 26.05 (Yarara) x86_64
            ▜███▙       ▜██████▛               Host: Desktop (AMD Ryzen AI Max)
     ▟█████████████████▙ ▜████▛     ▟▙         Kernel: Linux 6.18.44
    ▟███████████████████▙ ▜███▙    ▟██▙        Uptime: 11 days, 21 hours, 26 ms
           ▄▄▄▄▖           ▜███▙  ▟███▛        Packages: 500 (nix-system)
          ▟███▛             ▜██▛ ▟███▛         Shell: bash 5.3.9
         ▟███▛               ▜▛ ▟███▛          Terminal: /dev/pts/7
▟███████████▛                  ▟██████████▙    CPU: AMD RYZEN AI MAX+ 395 (32)z
▜██████████▛                  ▟███████████▛    GPU: AMD Radeon 8060S Graphics ]
      ▟███▛ ▟▙               ▟███▛             Memory: 39.81 GiB / 125.09 GiB )
     ▟███▛ ▟██▙             ▟███▛              Swap: 6.73 MiB / 7.45 GiB (0%)
    ▟███▛  ▜███▙           ▝▀▀▀▀               Disk (/): 119.94 GiB / 3.57 TiB4
    ▜██▛    ▜███▙ ▜██████████████████▛         Local IP (enp191s0): 192.168.0.4
     ▜▛     ▟████▙ ▜████████████████▛          Locale: en_US.UTF-8
           ▟██████▙         ▜███▙
          ▟███▛▜███▙         ▜███▙
         ▟███▛  ▜███▙         ▜███▙
         ▝▀▀▀    ▀▀▀▀▘         ▀▀▀▘
top 15 comments
sorted by: hot top controversial new old
[–] unglueclass23@programming.dev 2 points 7 hours ago* (last edited 7 hours ago) (1 children)

I know it's not exactly what you're asking for, but I've been using qwen3.8 flash-next, glm 5.3 flash, deepseek v4 flash, v4 pro and gemma-4 26b-a4b through Cortecs (openrouter alternative) and they've surprised me by how good they are for most tasks. I still have access to big models like Sonnet and so on but I rarely reach out for them.

If you're not completely ready to abandon the big models, perhaps try something like Cortecs or Openrouter as a middle ground? You can still self-host the smaller ones and reach out and use something like Sonnet through them when needed.

Some providers have strict data retention policies, are powered by green energy and so on... I use open-webui front-end to interact with Cortecs.

GLM 5.3 flash if i remember correctly had even some benchmarks that even beat Opus. I know there might be some benchmaxxing going on but still. And it's really cheap.

[–] padreug@programming.dev 2 points 4 hours ago

Thanks for the info, it's totally welcomed - I am trying my best to learn by sponge mode 🧽 😄

Yeah, I had not considered using one of those middle grounds and will check them out 🙏

[–] floquant@lemmy.dbzer0.com 2 points 10 hours ago* (last edited 9 hours ago) (2 children)

Is GLM too slow or not capable enough? It's quite a big model, if the runtime is setup correctly you should have good quality but getting a throughput similar to cloud models is going to be difficult. Did you give Qwen3.8-27B-FP8 a try?

Also you mentioned Pi as your harness, but what are you using as the inference backend?

[–] padreug@programming.dev 1 points 6 hours ago

Did you give Qwen3.8-27B-FP8 a try?

I haven't, it seems like I can't do this with my current Vulkan setup, but I'll do some exploration.

I'm also waiting for the nixos support for glm 5.3 flash

[–] padreug@programming.dev 1 points 6 hours ago* (last edited 6 hours ago)

Hey, thanks for the reply, the speed is actually pretty good!

So it's running on llama.cpp (llama-server) b10408, Vulkan/RADV, behind llama-swap.

Your questions made me realize i also had a mismatch in my pi model config, the contextWindow and maxTokens had drifted apart pretty significantly so I just fixed that now.

/etc/nixos/configuration.nix

  services.llama-swap = {
    enable = true;
    package = pkgs.llama-swap;
    listenAddress = "0.0.0.0";
    port = 8080;
    openFirewall = true;

    settings = {
      # 63 GB off NVMe cold is slow. The default 120s will time out.
      healthCheckTimeout = 600;
      logLevel = "info";

      models = {
        "glm-flash" = {
          # Keep "local" as an alias so existing clients keep working
          # without touching their base URL or model name.
          aliases = [ "local" "fast" ];
          ttl = 1800;
          cmd = ''
            ${lib.getExe' pkgs.llama-cpp-vulkan "llama-server"}
            --port ''${PORT}
            -m /srv/llm/models/GLM-4.7-Flash-Q8_0.gguf
            -ngl 999 --flash-attn on -c 131072 -np 1
            --jinja --no-webui
            --reasoning-format auto --reasoning-preserve
            --temp 1.0 --top-p 0.95 --repeat-penalty 1.0
            --cors-origins "http://optimus.local:8080,http://localhost:8080/"
          '';
        };

        "gpt-oss-120b" = {
          aliases = [ "smart" ];
          ttl = 1800;
          cmd = ''
            ${lib.getExe' pkgs.llama-cpp-vulkan "llama-server"}
            --port ''${PORT}
            -m /srv/llm/models/gpt-oss-120b/gpt-oss-120b-MXFP4.gguf
            -ngl 999 --flash-attn on -c 65536 -np 1
            --jinja --no-webui --reasoning-format auto
            --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0
            --cors-origins "http://optimus.local:8080,http://localhost:8080/"
          '';
        };
      };
    };
  };

~/.pi/agent/models.json (fixed)

{
  "providers": {
    "optimus": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "ollama",
      "models": [
        {
          "id": "local",
          "name": "GLM-4.7-Flash Q8_0 (optimus)",
          "aliases": ["fast", "glm-flash"],
          "reasoning": true,
          "contextWindow": 131072,
          "maxTokens": 32768,
          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
        },
        {
          "id": "smart",
          "name": "GPT-OSS-120B (optimus)",
          "aliases": ["gpt-oss-120b", "oss"],
          "reasoning": true,
          "contextWindow": 65536,
          "maxTokens": 16384,
          "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
        }
      ]
    }
  }
}
[–] OnLawn@programming.dev 2 points 12 hours ago (1 children)

If your spec is really what your computer is, you should be able to run the models you need to.

Just slow down, have patience, and be opinionated on what you want it to look like, from code to architecture to user experience.

I hit more failure modes than when I use Claude, but there are always failure modes, and the answer is always slowing down, learning what it's doing, and having an opinion.

I will use, sometimes, free web search tools to architect, plan, and generally get ideas. Their ability to search the web directly helps. And to code, I sometimes build a cheap RAG with the language documentation (nushell needs help most of the time) and that helps.

Again, in general, just slow down and take your time. Like a jr dev, just cut it into bite-sized pieces with clear goals, all of which a more capable model can help with.

GLM worked well and did some impressive one-shots. Gemma can be more sophisticated in what it writes, but Qwen is less acrobatic and stable. Ornith looks interesting but I was never able to run it.

[–] padreug@programming.dev 1 points 6 hours ago

Hey! thanks for the reply :) yeah the slowing down part is a big factor.. i'm certainly being a little impatient, so well received 🙏😁
I had also noticed I had a big mismatch in my pi models.json's contextWindow and maxTokens, which I just fixed (shown in another comment) so going to test it out some more.

[–] obelisk_complex@piefed.ca 2 points 14 hours ago* (last edited 14 hours ago) (1 children)

I've got the same goal as you. My findings follow, I hope they're helpful:

Frontier is good for planning which takes relatively few tokens compared to writing the code. You can run a frontier model like Claude and tell it to use your local AI model as a coding resource - hand it tasks and check the output. Qwen-3.8:27B is my local. It's good, and fast.

If you want to break your dependency on American frontier models specifically, you can use GLM-5.3 through openrouter for planning. You might find yourself using it for everything, because it's pretty cheap.

I'm doing the first one, myself. Often I'll use Hermes running GLM-5.3-flash (on ollama cloud) directly instead of Claude Code for smaller tasks.

[–] padreug@programming.dev 2 points 6 hours ago (1 children)

Great, thanks for the info! How do you like hermes, have you tried out pi?

[–] obelisk_complex@piefed.ca 1 points 4 hours ago (1 children)

Hermes is alright! It doesn't ship with a way for the classifier to stop the agent sending you a message that doesn't check out (e.g. "all tests green" when there's failures, or "job done" when it created just a stub). Claude Code does, so I built that hook for my fork of Hermes.

I haven't seen pi yet, I'll check it out! What do you like about it? Have you tried any others/got preferences yet?

[–] padreug@programming.dev 1 points 3 hours ago

I am brand new to Pi as of this week, so far my evolution in the past years went from... Visual Studio (oh wow it'd been so long i've forgotten the name 🤣).... then Cursor... then Claude Code. I tried a few neovim integrated AI workflows over a year ago, but they were all too buggy.

I caught wind of Pi I think from the youtuber omerxx and decided to give it a spin cause of its claims to be highly customizable. I haven't had the same time I did in the past to really tinker with my setups, but I figure i'll do it in baby steps over time.

[–] exdor@programming.dev 2 points 15 hours ago

Apparently you just need to give them a good harness to use tools like write code and then debug it, that makes it way more efficient.

And please run them inside a VM or at least a container sandbox, not just unsandboxed on your machine.

I've had great success, but I have a pretty beefy gpu: radeon pro w7900 (48GB vram).

Definitely not as fast or good as frontier models, but quite good! I'm currently using qwen3.8-27b, but have used qwe3.6-35b-a3b and other models (including using openrouter and opencode go, but you asked about self-hosting).

Also, FYI, I use opencode.

[–] Even_Adder@lemmy.dbzer0.com 1 points 1 day ago (1 children)
[–] padreug@programming.dev 2 points 22 hours ago

ah thanks :)