FIELD NOTES · PRIVATE AI

Running AI inside your own network: what I see so far

In the last few months, two companies asked me the same question: how do we use AI when our data has to stay inside? These are my notes from building an answer on older hardware, and from the people who commented when I first wrote about it on LinkedIn.

Sandeep Shelke · Stavanger ·

In short

  • I run one model per job on older 6 or 8 GB cards: chat and coding, quick answers, images, search and short video, though video is slow and poor quality.
  • Long prompts take minutes on this hardware, whole-codebase work is still too slow, and a team's everyday work needs more memory and newer cards.
  • I would start with documentation, then a local index of old code, and size the hardware on real use.

Why companies want it

The first company's algorithms are the core of its business. The company wants its engineers to use AI, and worries about that code ending up somewhere it should not. Its leadership and its IT provider reached the same answer: run it on-prem.

The second company wants to save cost, and to know today what AI will cost next month. Token bills are hard to predict. It also wants control over what goes into the model's context, and where it goes afterwards.

Both told me that stopping AI use is no longer an option. What they want to decide is where it runs.

FIG. 01TWO REASONS TO RUN IT INSIDE
Two companies, two reasons to run AI inside the network Company one: the code is the business. Its algorithms must not go to a hosted AI API. Company two: cost and control. Next month's token bill is unknown, and it wants to control what goes into the context and where it goes. Company one · the code is the business Inside the building Algorithms to a hosted API? Company two · cost and control Token bill, next month ? what goes into the context, and where it goes Two companies, two reasons to run AI inside the network Company one: the code is the business. Its algorithms must not go to a hosted AI API. Company two: cost and control. Next month's token bill is unknown, and it wants to control what goes into the context and where it goes. Company one · the code Inside the building Algorithms hosted API? Company two · cost, control Token bill, next month ? what goes into the context, and where it goes
One company protects its algorithms. The other wants a bill it can predict and control over its context.

One model per job

I run one model per job, each on a card of its own. Five run side by side:

  • Qwen3.6-35B, a mixture-of-experts model, for chat and coding.
  • Qwen3.5-4B, a small model for quick answers where speed matters more than depth.
  • The same Qwen3.5-4B with an image encoder added, for images and screenshots.
  • Qwen3-Embedding-0.6B, an embedding model for documents and search.
  • Wan 2.1, a small text-to-video model, for short clips. The quality is poor, and it is slow: a 2-second clip takes about 95 seconds on an 8 GB card, and took close to three minutes on a 6 GB card.

People pick the model for their task in LibreChat, the main front end. Apart from video, the models sit behind one local router on a single address. The router passes each request to the card that serves the model it names. It does not choose a model by itself. The video model is connected as an MCP tool instead, so the model a person has chosen can call it to make a clip. Putting video behind the same address, on its own path, is the next step.

FIG. 02FIVE MODELS, FIVE CARDS
Five models on five cards, all inside the network People use LibreChat as the main chat front end and pick a model there. Each model has a card of its own. The chat, vision and embedding models sit behind one local router on a single address, which passes each request to the card that serves the model it names: Qwen3.6-35B for chat and coding at about 24 tokens per second, Qwen3.5-4B for fast answers, the same Qwen3.5-4B with an image encoder for images and screenshots, and Qwen3-Embedding-0.6B for documents and search. The Wan 2.1 video model, for short clips, sits beside the router as an MCP tool that the chosen model can call. Everything sits inside the company network on older 6 and 8 GB cards. Nothing leaves. Company network · older 6 and 8 GB cards People LibreChat pick a model Local router one address Qwen3.6-35B (MoE) chat and coding, ~24 tok/s Qwen3.5-4B fast answers Qwen3.5-4B + vision images and screenshots Qwen3-Embedding-0.6B documents and search Wan 2.1 video · MCP tool called by the chosen model Nothing leaves Five models on five cards, all inside the network People use LibreChat as the main chat front end and pick a model there. Each model has a card of its own. The chat, vision and embedding models sit behind one local router on a single address, which passes each request to the card that serves the model it names: Qwen3.6-35B for chat and coding at about 24 tokens per second, Qwen3.5-4B for fast answers, the same Qwen3.5-4B with an image encoder for images and screenshots, and Qwen3-Embedding-0.6B for documents and search. The Wan 2.1 video model, for short clips, sits beside the router as an MCP tool that the chosen model can call. Everything sits inside the company network on older 6 and 8 GB cards. Nothing leaves. Company network People LibreChat · pick a model Local router · one address Qwen3.6-35B (MoE) chat and coding, ~24 tok/s Qwen3.5-4B fast answers Qwen3.5-4B + vision images and screenshots Qwen3-Embedding-0.6B documents and search Wan 2.1 video · MCP tool called by the chosen model Older 6 and 8 GB cards Nothing leaves
People pick a model in LibreChat, and every card is inside the company network.

None of this runs on new hardware. The cards are Pascal and Turing generation, with 6 or 8 GB of memory each. Qwen3.6-35B runs on a single 8 GB card. Only about 3B of its parameters are active for each token, so its expert layers can sit in the machine's main memory while the card holds the rest. With 8,000 tokens in its context it reads at about 740 tokens per second and writes its answer at about 24. At 100,000 tokens it still reads at about 560. Both rates fall as the context fills up. A year ago I would not have expected that to be fast enough for my own daily work, and for focused tasks it is.

FIG. 03OLD CARD, USABLE SPEED
One older 8 GB card runs Qwen3.6-35B at usable speed One older 8 GB Turing card runs Qwen3.6-35B, a mixture-of-experts model, with its expert layers in the machine's main memory. With 8,000 tokens in the context it reads the prompt at about 740 tokens per second (prefill) and writes the answer at about 24 tokens per second (decode). Both rates fall as the context fills up. My own measurements. 8 GB One Turing card Expert layers in main memory Qwen3.6-35B · mixture of experts ~740 tok/s Prefill, reading the prompt ~24 tok/s Decode, writing the answer 8k-token context · both fall as it fills One older 8 GB card runs Qwen3.6-35B at usable speed One older 8 GB Turing card runs Qwen3.6-35B, a mixture-of-experts model, with its expert layers in the machine's main memory. With 8,000 tokens in the context it reads the prompt at about 740 tokens per second (prefill) and writes the answer at about 24 tokens per second (decode). Both rates fall as the context fills up. My own measurements. 8 GB One Turing card Experts in main memory Qwen3.6-35B · MoE ~740 tok/s Prefill, reading the prompt ~24 tok/s Decode, writing the answer 8k-token context Both fall as it fills
My own measurements, with 8,000 tokens in the context. Prefill is the model reading the prompt; decode is the model writing the answer.

Two things surprised me. The first is how much the harness matters: the tools, prompts and context around a model change its behaviour as much as the model does. The second is how often a smaller open model is good enough.

I keep testing. When a new model looks promising for the main job, I run it against the one already doing it. Most recently that was Gemma4-26B-A4B against Qwen3.6-35B, on the same card, with the same speed and accuracy tests. Qwen was faster at both reading and writing and just as accurate, so it kept the job.

What does not work yet

A proof of concept on modest cards shows what is possible, but it will not carry a team's everyday work. That needs more memory and newer cards, and the right size depends on how many people use it and for what. I cannot find that size on my own cards.

Long context is the harder problem, and on this hardware it is mostly a problem of time. Qwen3.6-35B can take 250,000 tokens on the 8 GB card. I hid three values in real source code and asked for all of them, once at each length, and it found all three at 100,000, 200,000 and 250,000 tokens. But it reads everything before it starts writing: about three minutes at 100,000 tokens, and about eleven at 250,000. Whether it can reason across a window that full is still untested.

To keep the context short, I built a local code indexer and serve it to the model as an MCP server. It uses Zoekt, the open-source code search engine maintained by Sourcegraph, and Universal Ctags for symbols. The model gets the relevant pieces of a codebase instead of all of it. In my tests on nine codebases it finds the key files about three times in four. I have not yet measured whether that makes the answers better.

FIG. 04THE LONG-CONTEXT PROBLEM
A full context window takes minutes to read; a local index sends only the relevant pieces An old codebase can go into the model's context window in full. At 250,000 tokens, one 8 GB card reads for about 11 minutes before the model starts writing. A local index, served as an MCP server, sends only the relevant pieces, so the context stays short and the model starts writing sooner. Old codebase everything Full window 250,000 tokens About 11 minutes before it starts writing Local index MCP server Relevant pieces Short context, it starts writing sooner A full context window takes minutes to read; a local index sends only the relevant pieces An old codebase can go into the model's context window in full. At 250,000 tokens, one 8 GB card reads for about 11 minutes before the model starts writing. A local index, served as an MCP server, sends only the relevant pieces, so the context stays short and the model starts writing sooner. Old codebase Everything: Full window 250,000 tokens About 11 minutes before it starts writing Or through the index: Local index MCP server relevant pieces Short context It starts writing sooner
A full window fits, but on one 8 GB card the model reads for about 11 minutes before it starts writing. The index sends only the relevant pieces.

Working from retrieved code, the model sometimes went beyond the evidence. I made the instructions explicit: if the supplied code does not answer the question, say "unknown" rather than guessing. I also broke the work into smaller tasks and checked its claims against the source. This produced more usable answers, though I cannot yet say whether it reliably reduces made-up claims.

Anything across a whole codebase is still too slow on this hardware.

Where I would start

If a company asked me where to begin, I would start with documentation and leave coding assistants for later.

Most companies have user guides, manuals and internal docs that are out of date or missing. Writing and updating them suits a local model, because speed hardly matters. The job can run overnight or over a weekend, and someone reviews the result in the morning.

Next, I would index old codebases locally. Many teams have code that only a few people still understand. A local index lets anyone ask questions about it without sending it anywhere, and it builds trust in the setup before anyone uses it to write new code.

By then you know what people actually use it for, and you can size the hardware on real use instead of a guess.

FIG. 05START WHERE SLOW IS FINE
Start where slow is fine Three steps in order. One: documentation, user guides and manuals, which can run overnight on old cards. Two: index old code with a local indexer behind MCP, so people can ask the code locally. Three: coding help, once people trust the setup, with hardware sized on real use. 1 Documentation user guides and manuals runs overnight on old cards 2 Index old code local indexer behind MCP ask the code locally 3 Coding help once people trust it size hardware on real use Start where slow is fine Three steps in order. One: documentation, user guides and manuals, which can run overnight on old cards. Two: index old code with a local indexer behind MCP, so people can ask the code locally. Three: coding help, once people trust the setup, with hardware sized on real use. 1 Documentation user guides and manuals runs overnight on old cards 2 Index old code local indexer behind MCP ask the code locally 3 Coding help once people trust it size hardware on real use
Each step builds trust before coding help needs better hardware.

What the comments added

I expected a few likes when I posted about this on LinkedIn. Instead it drew more than 20 comments, many from people who work on this every day. They taught me more than the post did.

Rent before you buy. One commenter rents bare-metal GPU clusters by the hour, with the best results on spot instances, to benchmark before buying, which could help me find the size my own cards cannot show.

Small hardware is further along than I thought. Another commenter finds a mid-sized open model works reasonably well on a small edge computer and sees compact AI machines as affordable, though slower than a top-end workstation card.

Build the wrap. An offline-first builder reinforced what I found about the harness: persistent memory, routing each job to the smallest capable model, and knowing the cost before it runs.

Memory that is never rewritten. The same person records every turn in a ledger, hashes predictions before outcomes, scores them later and adds changed facts without overwriting old ones. I want to try their approach to long context: a small fine-tuned model with a very long window.

Watch the router. A commenter pointed out that I should track how often a model-picking router chooses a model too weak for the task, because retries and corrections can eat the savings.

Dedicated cloud works for some. A commenter noted that you can rent dedicated cloud hardware without exposing your intellectual property, though the first company I described wants its code kept in the building.

Test for leaks yourself. One person checks for leaks by searching for their own distinctive terms from a clean machine and network, and has found none so far, though a search like that cannot prove there is none.

Read the data policy. Since 24 April 2026, GitHub Copilot Free, Pro, Pro+ and Max use interaction data for training by default, unless you opt out; Business and Enterprise are excluded. As I read it, code still leaves your network on every plan, under a policy that can change.

Thank you to everyone who took the time to write.

If you are considering it

If your company wants AI and your data has to stay inside, this is what I would do:

  1. Write down which data must stay inside, and why. That decides most of the rest.
  2. Pick one job to start with. Documentation is a good first one.
  3. Rent GPUs for a few hours and test that job on open models, with data that is safe to send out, before you buy hardware.
  4. Give each job the smallest model that does it well, with one front end for all of them.
  5. Next, index your own code and documents locally, so people can ask questions about them.
  6. Add coding help once people trust the setup, and size the hardware on real use.

This is the work I do at Yantrakar. Some clients want consulting hours and some want an end-to-end service, and I price the work on what it needs. To talk about your setup, use the contact form or find me on LinkedIn. More on how I work is on the Private AI page.

Running models inside also raises a safety question. I wrote about it here: Self-replication: why the network boundary matters more now.

Follow-up, 28 October: I got long-context code questions from 12 minutes to under one by letting smaller models pick what the big one reads, and tested it on a private codebase. Letting a small model choose what the big one reads.

Contact

Tell me which data and which work you have in mind.

Stavanger, Norway

Remote across EU and India time zones, on-site when needed

I read every message myself and reply within 24 hours. Your details are used only to reply to this message.