News for hackers. Stuff that matters.
Re:Can I Run AI locally? by jrmg on Friday March 13, 2026 @01:09PM (#47367013)
Is there a reliable guide somewhere to setting up local AI for coding (please don’t say ‘just Google it’ - that just results in a morass of AI slop/SEO pages with out of date, non-self-consistent, incorrect or impossible instructions).

I’d like to be able to use a local model (which one?) to power Copilot in vscode, and run coding agent(s) (not general purpose OpenClaw-like agents) on my M2 MacBook. I know it’ll be slow.

I suspect this is actually fairly easy to set up - if you know how.

Re:Can I Run AI locally? by AstroBen on Friday March 13, 2026 @01:19PM (#47367141)
Ollama or LM Studio are very simple to setup.

You're probably not going to get anything working well as an agent on an M2 MacBook, but smaller models do surprisingly well for focused autocomplete. Maybe the Qwen3.5 9B model would run decently on your system?

Re:Can I Run AI locally? by jrmg on Friday March 13, 2026 @01:50PM (#47367452)
Right - setting up LM studio is not hard. But how do I connect LM Studio to Copilot, or set up an agent?
Re:Can I Run AI locally? by NortySpock on Friday March 13, 2026 @02:06PM (#47367618)
I tried the Zed editor and it picked up Ollama with almost no fiddling, so that has allowed me to run Qwen3.5:9B just by tweaking the ollama settings (which had a few dumb defaults, I thought, like assuming I wanted to run 3 LLMs in parallel, initially disabling Flash Attention, and having a very short context window...).

Having a second pair of "eyes" to read a log error and dig into relevant code is super handy for getting ideas flowing.

Re:Can I Run AI locally? by AstroBen on Friday March 13, 2026 @02:03PM (#47367580)
It looks like Copilot has direct support for Ollama if you're willing to set that up: https://docs.ollama.com/integrations/vscode

For LM Studio under server settings you can start a local server that has an OpenAI-compatible API. You'd need to point Copilot to that. I don't use Copilot so not sure of the exact steps there

Re:Can I Run AI locally? by brcmthrowaway on Friday March 13, 2026 @01:55PM (#47367505)
Basically LM Studio has a server that serves models over HTTP (localhost). Configure/enable the server and connect OpenCode to it.

Try this article https://advanced-stack.com/fields-notes/qwen35-opencode-lm-s...

I'm looking for an alternative to OpenCode though, I can barely see the UI.

Re:Can I Run AI locally? by AstroBen on Friday March 13, 2026 @02:09PM (#47367648)
Codex also supports configuring an alternative API for the model, you could try that: https://unsloth.ai/docs/basics/codex#openai-codex-cli-tutori...
Re:Can I Run AI locally? by chatmasta on Friday March 13, 2026 @02:41PM (#47368021)
Any time I google something on this topic, the results are useful but also out of date, because this space is moving so absurdly fast.
Re:Can I Run AI locally? by randusername on Friday March 13, 2026 @05:06PM (#47369899)
Personally I'd start with llamafile [0] then move to compiling your own llama.cpp.

It's not as bad as you might think to compile llama.cpp for your target architecture and spin up an OpenAI compatible API endpoint. It even downloads the models for you.

[0]: https://github.com/mozilla-ai/llamafile

Re:Can I Run AI locally? by thexa4 on Friday March 13, 2026 @07:28PM (#47371391)
I've created a llama.cpp integration with Copilot in vscode. The extension readme contains setup instructions: https://marketplace.visualstudio.com/items?itemName=delft-so...
Re:Can I Run AI locally? by kristianp on Friday March 13, 2026 @11:40PM (#47373107)
https://github.com/ggml-org/llama.cpp/releases - has mac binaries

https://unsloth.ai/docs/models/qwen3.5 - running locally guide for the Qwen 3.5 family of models, which have a range of different sizes.