Just wanted to share my experience with using local LLMs together with DEVONthink — perhaps others might find it useful.
Today, I tried DEVONthink 4 with LM Studio and two models:
Qwen3.6 27B (4-bit)
Gemma-4-26B-A4B-QAT (don’t ask me why I picked this particular Gemma model — it was almost random. If anyone has a better recommendation, I’m all ears )
On my machine, Qwen takes quite a long time to produce an output, even with thinking turned off.
By contrast, I’ve been very impressed with Gemma’s performance. Today, I used it to rename documents, reformat content, and generate summaries, all with very good results.
I’d encourage others to give a local LLM setup a try. Current models are surprisingly lightweight and don’t require any API credits.
The integration between LM Studio and DEVONthink was flawless and took only a few seconds to set up — thanks to the DEVONthink team for making this so easy.
p.s. I haven’t tried using the local model for assigning tags yet, but I noticed there’s an option to only use existing tags, which is very cool. If I understand correctly, that means there’s no need to explicitly tell the model via prompt which tags to use, since the available tags are already included in the request(?).
quick update: actually, just run “Apply Chat suggestions” smart rule, which does add Chat suggestions (tags), and in my case, it has created a bunch of entirely new tags (even though the checkbox “use only already existing tags of a database” is selected
This option is only used by Data > Tags > Add Chat suggestions to Documents and the same smart rule action and option in Settings > Files > Tags > Import.
The difference between the QWEN and Gemma is the second is MoE with A4B, meaning that it only “moves” 4Billions on each token instead of all 26B. And QAT even optimizes more.
This comes with a cost: less precision, more opportunity to hallucinate. In my tests, it is not noticeable.
I am managing with a M1 Mac Mini with only 16 GB RAM but I have found using oMLX instead of Ollama creates few memory problems with Gemma 4 e4b as it makes more judicious use of the M1’s memory architecture. I can only dream what it would do with 64MB!
As for Quen, call me a pedant but I cannot in all seriousness use an AI that refuses to tell me what happened in Tiananmen Square on June 4 1989..
I can use a llama.cpp llama-server MiniMax M2.7 which just runs on an 128 GB system. Small context: 50 tok/s. So should be a great local setup. And processing smaller collections of documents or medium size single documents is great.
BUT the total memory available for KV cache limits the max context size to about 40,000 tokens. Using the DT MCP server in that environment is great as far as the DT records processed are small enough. Larger PDFs will fail on context limits. I am hoping for an highly capable LLM in the 120 to 160 B class. A release of a gpt-oss 120B 2.0 would be very welcome.
P.S.: Contrary to the doc, it is possible to use self signed certificates for TLS in this setup.
Indeed - an M5 Max 128 Gb is currently the highest performing Mac available for AI purposes.
At one time you could order a 512 Gb Mac Studio but right now 96 Gb is the maximum, the processor is less capable than an M5 Max, and even then the shipping dates are in October.
I could understand purchasing a 96 Gb Mac Studio if memory were expandable but not as a fixed spec which is currently the situation.
For these reasons, for local AI I am very seriously considering setting up a local GPU-based Unix server. You can get a much more powerful device than using MacOs for AI, for a lower price, with immense upgrade options. Paired with DT that would be quite a capable local/private AI setup.
Whatever the specs the plan would be to run Ollama (or similar) on the server and configure DT for that to be the AI source. I would likely network the Unix server with my Mac using Tailscale.
One option is an NVIDIA DGX Spark - that is basically an entry level personal AI server built specifically for this purpose.
At the upper end - quite expensive but still less than a high-end Mac Studio - would be a Blackwell server - this is massively upgradeable in the future (presumably when RAM costs come down).
Not sure which route I will take. Generally these make sense when there is a business case for very capable local/private AI capability. The costs are high but not out of range for Apple’s target Mac Studio market. And the capabilitly they offer is profound for those who do substantial document analysis.
I also use LM Studio and like using the Gemma models. I am on a mac Studio M4 Max with 64GB RAM. After I got the MCP connection to Devonthink setup, renaming tasks etc. work fine. One thing that really helps is using a system prompt in LM Studio where you tell it how to operate (e.g. Your are a document-management assistant operating on the users Devonthink MCP tools. Always read the actual record content via the tools before renaming, tagging or summarizing, … renaming convention “YYYY-MM-DD Sender ShortSubject” …). Describe the workflow you need in the system prompt. Another thing to consider is to turn of “think” for some tasks like renaming. This speeds things up. Hope this helps…
All certificates in use here within the home network are issued by mkcert. Details see the documentation of mkcert. ( GitHub - FiloSottile/mkcert: A simple zero-config tool to make locally trusted development certificates with any names you'd like. · GitHub ) The root certificate has to be imported into the macOS system keychain. The certificate for the llama-server host has to be imported into the login keychain. Then the DT MCP server config will offer to enable that local certificate for TLS. (All done with some Claude assistance)
I think to secure a LLM server both TLS and API keys or similar are a must, even in a home network which has services defined to be accessed from the internet. And so far I do not like the hassle to setup genuine certs from any certification authority. May be I will run a Claude session to get it going easily in the future.