r/LargeLanguageModels

A general video on causality for non-specialists - feedback welcome
▲ 21 r/LargeLanguageModels+7 crossposts

A general video on causality for non-specialists - feedback welcome

I made a NeuralCipher video introducing causality for a broader AI/science audience.

The goal is not to present a technical tutorial on causal inference, but to make the conceptual distinction clear: association, intervention, counterfactuals, explanation, and why causal claims require more than predictive success.

I tried to avoid the shallow version of “correlation is not causation” and instead explain why causal reasoning changes the kind of question we are asking.

Disclosure: I made this. I would especially appreciate corrections from people working directly in causal inference.

▶️ https://www.youtube.com/watch?v=dzgwW2n19bE

See more at neuralcipher.net

What is the most common misconception about causality that you see outside the field?

u/NeuralCipher_NC — 4 hours ago
▲ 4 r/LargeLanguageModels+1 crossposts

Documenting My Journey of Building a Small Language Model from Scratch

I've been building a small language model from scratch for a while now.

Not fine-tuning an existing model, but building the entire pipeline myself—from datasets and tokenizers to pretraining, SFT, and inference.

Honestly, the hardest part wasn't training the model.

It was learning.

At first, I thought building a good dataset was mostly about collecting knowledge. But the more I experimented, the more I realized I was actually teaching patterns, not just information.

There were so many moments where I caught myself thinking, "Wait... I've been doing this completely wrong."

Things like choosing a vocabulary size, designing datasets, teaching reasoning, using special tokens, or even figuring out how to teach a model to rewrite text. Every experiment changed the way I think about building language models.

After a while, I realized all of those lessons were just sitting on my computer.

So I decided to start documenting the journey on Cisya Lab.

Not because I have all the answers—I definitely don't—but because maybe someone else building a model from scratch can learn from my experiments, mistakes, and discoveries along the way.

https://cisyalab.com

I'd love to hear from others building language models too. What lesson completely changed the way you approached your project?

u/BookDizzy2405 — 1 day ago
▲ 333 r/LargeLanguageModels+69 crossposts

I built an open-source, self-hosted AI gateway: 237 providers (90+ free), auto-fallback combos, and a 10-engine token-compression pipeline (MIT)

Builders-welcome post with the substance up front (disclosure: I'm the maintainer). OmniRoute is a free, MIT, self-hosted AI gateway — one OpenAI-compatible endpoint over 237 providers — built around two problems: runs dying on a provider 429, and tokens bleeding on tool/log output.

One endpoint, 237 providers — 90+ of them free. You point any tool or agent at a single OpenAI-compatible endpoint (localhost:20128/v1) and it can reach 237 LLM providers without you rewriting anything. 90+ have free tiers and 11 are free forever (no card), which aggregates to ~1.6B documented free tokens/month — and that's honest, pool-deduped math (we count each shared pool once instead of inflating it; the methodology is public in the repo). There's a one-command setup-* for 13+ coding tools (Claude Code, Codex, Cursor, Cline, Roo, Kilo, Gemini CLI…), so switching your existing setup over takes seconds.

Fallback combos — so it never stops mid-task. A "combo" is a ladder of models the router walks automatically: your subscription first, then API keys, then cheap models, then free ones. When a provider returns a 500 or you hit a rate limit, it slides to the next target in milliseconds, mid-request, and your tool never even sees the error. There are 17 routing strategies (priority, weighted, round-robin, cost-optimized, auto/coding:fast…) plus three resilience layers — a per-provider circuit breaker, a per-key cooldown, and a per-model lockout — so one dead key can't take down a whole provider.

Fusion — an ensemble mode for the hard steps. Beyond simple routing, there's a fusion strategy that fans a single prompt out to a panel of different models in parallel and then has a judge model synthesize one best answer (mixture-of-agents, built in). It's cost-aware, so easy turns stay on one fast model and it only fuses when the step is worth it.

A 10-engine compression pipeline — the part most routers don't have. Every request flows through a transparent compression pass you can toggle/stack per combo. Instead of one trick, it stacks the best of the open-source ecosystem: RTK filters command/tool output (git diffs, test logs, builds) at 60–90%, Microsoft's LLMLingua-2 does ML semantic pruning, Caveman handles prose, session-dedup strips repeats across turns. Critically, code, URLs and JSON are preserved byte-perfect, and a default-on inflation guard throws the compressed version away and sends the original if compressing would actually grow the prompt — it never makes things worse. On tool-heavy sessions that's ~89% average input-token reduction (an 8k-token git diff becomes a few hundred). Full credit to every upstream project (RTK, Caveman, LLMLingua-2, Troglodita) is in the README.

Agent-native — the agent can drive the router itself. There's a built-in MCP server (95 tools across 30 audited scopes, over stdio / SSE / streamable-HTTP), plus A2A (v0.3, JSON-RPC 2.0) support. That means an agent can query providers, switch combos, read its own remaining quota and manage memory through the gateway — not just consume tokens through it.

It's 100% local (zero telemetry, AES-256-GCM at rest), MIT-licensed, has a prompt-injection guard on every LLM route, opt-in memory, and runs on npm, Docker, desktop or your phone via Termux.

For context on whether it's worth your time: it's grown to ~9.8K GitHub stars, 1,490+ forks and 280+ contributors in ~4.5 months, with 21,000+ automated tests and 1,830+ issues closed — so it's a battle-tested project, not a brand-new experiment.

npm install -g omniroute

GitHub: https://github.com/diegosouzapw/OmniRoute · Site: https://omniroute.online

Would value a critique of the routing/compression architecture from this crowd.

u/ZombieGold5145 — 3 days ago
▲ 9 r/LargeLanguageModels+4 crossposts

Made a semantic search over accepted AI/ML conference papers (search by meaning, not keywords)

I kept losing papers because I remember what they're about, not what they're called, and keyword search on conference sites needs the exact title words. So I built a search that works by meaning instead: https://aiconfpaper.com

It covers accepted papers from the main AI/ML/CV/NLP/robotics conferences (NeurIPS, ICML, ICLR, CVPR, ACL, CoRL, and more), 2015-2026. You describe the idea in a sentence and it finds matching papers, then "similar papers" lets you walk outward into related work.

It's been genuinely useful for my own related-work scoping, so figured I'd share. There's also an API if you'd rather have an agent search it (docs are on the site). One-person project, so if a search gives you something off, tell me the query and I'll take a look.

u/kyowoon — 2 days ago

Which AI research trend is getting too much attention at conferences, and which one deserves more?

With AI evolving so quickly, it feels like every conference has sessions on LLMs, generative AI, and AI agents. While these are exciting topics, I'm curious whether some areas are getting more attention than they deserve.

reddit.com
u/CulturalEffort612 — 3 days ago

LLMs are not the focus of discussions anymore or is it just me?

I feel like we're entering a weird phase with AI.

A year ago everyone was asking, "What's the best LLM?"

Now the more interesting question seems to be, "How do you get multiple AIs to work together?"

Memory, planning, tools, events, shared context, evaluation... it feels like AI agents are becoming more about systems than models.

Curious what everyone here is building.

reddit.com
u/Naive_Maybe6984 — 5 days ago

Why the heck these models weigh so much in memory?

WHY! Why do I have to load hundreds of gigabytes of parameters of GLM 5.2 in my GPU to make him do intelligence? It's crazy that researchers think that this is the most efficient way. Not trying to be arrogant, I know pretty much nothing about training and inference, but as someone who tinkers with computers I feel this is so naive. Like, MoE isn't enough I believe. My model can weigh even 2 terabytes ON DISK but not on gpu memory boy! Why has nobody thought about it?!

reddit.com
u/Midk_1 — 5 days ago
▲ 10 r/LargeLanguageModels+5 crossposts

Can We Really Read AI's Mind? Mechanistic Interpretability Honestly

We can read every weight and activation in an LLM — and still not know what computation it learned.

A 20-min field report on mechanistic interpretability: what each tool — attention, circuits, SAEs, attribution graphs — proves, and what it doesn't.

▶️ https://youtu.be/GHxjwsoerzo

u/NeuralCipher_NC — 4 days ago

So, today when I was researching AI as a beginner.

I wanted to research how to understand AI better. But suddenly, I found that before LLMs, I learned that in the market, there are different categories of LLMs.

Some LLMs are instant, like within seconds, they reply. And some LLMs, they take time to give the answer.

So, if I talk about the first category, what I learned about was

speed models, meaning imagine, like you gave a prompt, and you got your answer immediately without wasting any time. So, these are the speed models. Speed tells you that it gives you a speedy, immediate answer. For example, GPT4o mini or Gemini Flash.

Then we have reasoning models. So, reasoning models give you a slightly slow answer, but they try to give an accurate answer. So, reasoning models are those that take time to process. For example, Claude Opus.

Then we have hybrid models. This hybrid model is the owner of its company, which means it will give you an answer quickly, but when it feels like it, it processes for a long time, and when it feels like it, it answers within seconds. So, we call it a hybrid model. For example, Gemini 1.5 and Claude 3.5.

Then we have SLMs, Small Language Models. So, these are capable enough that on your laptop and phone, they can live and work without any internet, without any cost. These are very pocket-friendly.

So, its examples are Mistral and Gemma.

What changed my perspective is realizing that bigger models equal better..

I was wrong. It depends completely on which category of model it is.

So, curious which category of model you all are most interested in or currently using.

reddit.com
u/DevelopmentNo7939 — 6 days ago

Whats the best Llm, offline, for deep reasoning, not for code

Whats the best Llm, offline, for deep reasoning, not for code, so far Calude has given the best written and competent responses, impressed by the short stories i tested it with

​

GPT is awful

​

I feel parts of me die when using Grok, too much yes man

​

I want a local llm that isnt afraid to go into deep topics, if needed to could do psychological horror, (NSFW fiction) if needed, unscencored to provide more accurate data or run more advanced problems, exploring topics that could fall on the lines of morally ambigious, even if sensitive

​

I want a model that can accurately handle social psychology, and normal psychology competently, whilst outputting responses as well versed as my time using claude 4.8

​

My specs are 32 gb ddr4 ram, or 16 gb ddr5

​

Swift 9070 16gb model

​

In between cpus rn, but will decide soon

​

1tb hdd

​

256 ssd

​

​

reddit.com
u/VanillaBrie1 — 12 days ago
▲ 2 r/LargeLanguageModels+1 crossposts

Why does ChatGPT struggle to count letters in a word? The answer is Tokenization

Hey everyone! 👋

I recently went deep into one of the most foundational — yet most overlooked — concepts in LLMs: Tokenization.

Here's what blew my mind: almost every weird behavior you've noticed in ChatGPT or Claude — struggling to count letters, making arithmetic mistakes, performing worse in non-English languages — all of it traces back to how tokenization works.

https://medium.com/@harshitha1579/understanding-tokenization-in-llms-fc353da48667

In my latest blog, I cover:

- 🔤 What tokenization actually is and why it exists

- ⚖️ Why word-level and character-level approaches both fail

- ⚙️ The 3 main algorithms — BPE, WordPiece, and Unigram — and which models use which

- 🔁 The full tokenization pipeline (normalization → pre-tokenization → model → post-processing)

- 🤯 Why LLMs can't count letters, struggle with math, and are unfair to non-English languages

- 🔮 The future — can we get rid of tokenization entirely?

I tried to keep it beginner-friendly but technically solid, so whether you're just getting into LLMs or you've been in the space for a while, hopefully there's something useful here.

reddit.com
u/Old_Law8248 — 13 days ago

Will large LLMs become accessible on-prem? The cost/benefit math isn't adding up.

I'm at a hardware SME where we write system software. Management is wary of public cloud tools leaking source code, so on-prem is the only option. A few of us run local models. I have an RTX 4070 mobile with 8GB VRAM running starcoder2:7b under ollama. It's useful but nowhere near as good as Copilot.

I'm thinking about persuading management to invest in on-prem hardware. Options range from roughly 4k for a dual RTX 3090 setup, which barely runs 70b models, to enterprise-grade systems that cost six figures. The math is brutal when you factor in power, cooling, and maintenance.
But there's also the software layer. Even if we buy hardware, we still need a way to route requests across models, cache responses, and observe performance. Most of the tooling assumes you're calling cloud APIs. Self-hosting means building that infrastructure yourself or finding something that works in air-gapped environments.

Has anyone successfully deployed on-prem LLM infrastructure at a mid-sized company? What was the actual cost and what broke? Did you find any tooling that made self-hosting manageable?

reddit.com
u/Terrible-Market1264 — 12 days ago