Notes on gotchas while migrating 35kb preprompts from Opus to self-hosted Ollama

patrickmccanna.net

139 points by 0o_MrPatrick_o0 2 days ago


DiabloD3 - 2 days ago

The article doesn't really describe the problem: if your prompt is 35kb, your prompt is confusing, unfocused, and doesn't work right on any LLM, and is needlessly bloating your context.

At this point in time, due to how most people and companies run their inference engine, regardless of the model (yes, this includes the newest from OpenAI and Anthropic and the Chinese Tigers and Dragons), you run out of useful context that the model can accurately attend to around the 250k mark no matter how much they advertise their context size is.

You need to cut your prompt up. If you believe LLMs work, have the LLM help you shape the overall plan, and then have multiple sessions run each step in the plan without being bloated with the context of previous successful steps.

I don't see LLMs being production-ready until the context rot and sampling problem is fixed forever. This has not occurred, and the big inference providers aren't even bothering to integrate any of the research on that subject.

If anything, many of the bigger companies are actively making inference quality worse just to extend their runway a tiny bit farther before they go bankrupt.

The only thing the article gets right is this: if you're serious about LLMs, abandon Big AI and infer locally only. This is the only way you have control over the quality of the output.

cube00 - 2 days ago

Friends Don't Let Friends Use Ollama https://news.ycombinator.com/item?id=47788385

andai - 2 days ago

> Everyone who begins learning exploitation hits a phase of exploitability grief about 3 month into dedicated, practiced study. They hack something they didn’t think they had the skill to break into and it terrifies them. They’re smart enough to know that, relatively speaking, they are an idiot, and if an idiot can do this then nothing is safe. That feeling is correct.

Woodi - 6 hours ago

Funny times!

How many years after "public clouds" and non-local "disks" and "drives" we are ? :) And you still need to tell peoples that other have access to your private data :)

Wait, no... They even have access to a thingie you just about to think about! ;) That is a superpower, no less :>

And managers are firing peoples just to outsource "thinking" to some not owned by them cloud computer :>

SyneRyder - 2 days ago

TLDR: Local models have a smaller context window, so your 35kB prompts that worked fine against a hosted 1 Million token window, crash out when you only have a 65K (!) token window locally.

I dislike being negative, but I was really hoping for more substance when reading this. It would have been an interesting topic.

robotswantdata - 2 days ago

Why are you using Ollama? Just use llama.cpp

fghorow - 2 days ago

I've been using Claude Code Extension in VSCode (no phone-home configured), backed by DwarfStar on a LAN local MBPro 128GB M5. The context bloat is horrendous, leading to 5-10 minute prefills.

I've recently been exploring tools like headroom to help manage context, with some limited "success" (for some definition of success). What do others with similar setups do?

(I kind of hate to abandon Claude Code, as it seems to be the most capable coding assistant of the limited set of tools I've tried. But that horrendous context bloat is really painful!)

airspresso - a day ago

From what I'm seeing elsewhere, context size up to 128k should be possible on this hardware. It really matters for agentic workloads to push that context size headroom up. Anthropic are spoiling us with models that do 500k context and beyond.

dell2024 - 2 days ago

I had hoped to get some new information out of this topic, but unfortunately found the same local "dead-ends" that I explored myself.

It unfortunately feels like we will be stuck waiting for a burst bubble before local hardware can be reasonably acquired for personal LLM usage.

Havoc - a day ago

Can a 27b model even do meaningful security tasks?

I thought the interesting cyber stuff is really at the edge of frontier

stackedinserter - 2 days ago

The main gotcha for local models is insane hardware requirements.

Even for $10K you get mediocre performance.

- 2 days ago
[deleted]
onesandofgrain - a day ago

What model are you using?

krttherealest - 2 days ago

attention is the key

roschdal - 2 days ago

Self-hosted Ollama is the best.

sdafa - a day ago

[flagged]

novaapi - 2 days ago

[flagged]

wonkofatlatl - 2 days ago

[dead]

YavenTeam - 2 days ago

[flagged]