r/LargeLanguageModels • • Sep 16 '26

Question What are the best coding models for 12gb vram constraint?

12 Upvotes

I was curious to test out small models for coding (actually have only 4gb vram😅) so I found this fine tuned version of qwen 3.5 9b named OrionLLM/OxCoder-9B and honestly.. it did better than my expectations!!

I basically told it to build an entire ecom website and just let it cook...

The entire site was generated without any human help in terms of assets. ( it messed up with theme toggle at first so I gave a follow up prompt and it fixed that )

It also had access to MCPs, so it could:

  • Search the web for UI/UX ideas
  • Download images and videos

And honestly... it looks pretty damn good??

For a 9B model, the fact that it kept working and didn't loop up like gpt oss 20b is pretty wild

Now I'm curious about something else.......

Are there any coding models that are insanely fast at coding but still reasonably capable?

I'm thinking something that's:

  • Really fast at inferance (a MOE ?)
  • Good with prompt abidance?
  • Solid for quick coding tasks and edits
  • Doesn't necessarily need to be great at huge prompts or massive repo-level reasoning

Something like Qwen 3.8 27B but that thinks less!!!! (as it wastes a lot of time doing that TT)

Basically, I'd rather have a model that feels super snappy for small tasks than a huge model that takes forever to respond.

Also, are there any relatively recent fine-tuned models that fit in ~12GB VRAM without being heavily quantized and punch way above their parameter count?


r/LargeLanguageModels • • Sep 15 '26

I spent hours going through 100+ page PDFs, so I built a tool that highlights exactly where the answer came from. It's now completely open-source.

Thumbnail
gallery
38 Upvotes

I've used tools like Perplexity, ChatGPT, Claude and others for research, and they've been incredibly useful for finding papers and getting through large amounts of information.

The one thing I personally wanted was a simple way to see exactly which parts of the paper were used to answer my question.

When you're working with a 100+ page PDF, even having a page number can still mean a lot of scrolling and searching.

So I ended up building something for myself.

You ask a question and the relevant paragraphs in the PDF are highlighted directly on the document. You can see the context behind the answer and quickly check whether it actually answers what you're looking for.

I originally built this because I wanted something for this workflow without having to pay for another subscription. What started as a personal project has now become completely open source.

The underlying idea is pretty simple. And yes, if you're thinking "isn't this just RAG?" then yes, you're absolutely right. It's RAG with the visual highlighting that I wanted.

I think the same idea could be useful for more than research papers too. Legal contracts, financial reports, technical documentation, or anywhere you need answers alongside the actual source.

If anyone wants to have a look, contribute, or just give some feedback, here's the repo:

GitHub: https://github.com/Sreehari05055/thesys-core

This will probably be my last post about the project. Thanks to everyone who checked it out and gave feedback along the way.


r/LargeLanguageModels • • Sep 15 '26

News/Articles How to make your first LLM API call in Python

4 Upvotes

I've been learning AI engineering from scratch and documenting it as I go. This is the first build, a Python script that makes a real API call to Claude, prints the response, and logs how many tokens were used.

Here is the full script, it is deliberately stripped down and simplified, the idea is so anyone intimidated by the space can follow along comfortably:

from dotenv import load_dotenv
import os
from anthropic import Anthropic

load_dotenv()

client = Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))

response = client.messages.create(
    model="claude-haiku-4-5",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "What is a large language model? Answer in two sentences."}
    ]
)

text = response.content[0].text
input_tokens = response.usage.input_tokens
output_tokens = response.usage.output_tokens

print("Response:")
print(text)
print()
print(f"Input tokens: {input_tokens}")
print(f"Output tokens: {output_tokens}")
print(f"Total tokens: {input_tokens + output_tokens}")

What each part does:

load_dotenv() reads your API key from a .env file so you never hardcode credentials in your script.

Anthropic(api_key=...) creates a client, your connection to Anthropic's API. Every call goes through this.

client.messages.create(...) is the API call. You pass it a model, a token limit, and your message.

messages=[{"role": "user", "content": "..."}] is the context window simplified, one message, one role, one piece of content. This is all the model can see.

The response comes back as an object. response.content[0].text pulls out the text. response.usage gives you the token counts, how many you sent and how many the model generated back.

To run it:

You need Python, an Anthropic API key from platform.claude.com, and these two libraries:

pip install anthropic python-dotenv

Full step-by-step walkthrough including setup here


r/LargeLanguageModels • • Sep 15 '26

Discussions TokenPrint — an open-source project for exploring what happens inside LLMs

15 Upvotes

I’ve been building TokenPrint, an open-source project focused on making the internals of language models easier to explore, understand, and debug.

The project has grown to 130+ GitHub stars, and we’re starting to build a small community around it.

The goal is simple:

Don’t just see what an LLM outputs. See what happens inside.

TokenPrint currently brings together:

• 3D transformer architecture exploration
• Tokenization and embeddings
• Tensor and parameter inspection
• Q/K/V attention, GQA, RoPE and causal masking
• Residual streams and MLP / SwiGLU
• Token-by-token generation
• Prefill, decode and KV-cache visualization
• Logits and next-token probabilities
• Interactive transformer walkthroughs
• Attention and activation analysis
• Head/layer ablation and activation patching
• Hugging Face model exploration
• Trace and debugging workflows

It’s still growing, and that’s the part I’m most excited about.

If you’re interested in LLMs, interpretability, ML infrastructure, 3D/WebGL, PyTorch, Transformers, or open-source development, you’re welcome to contribute.

You can contribute code, documentation, visualizations, model support, research ideas, bug fixes, or even just open an issue with something you think TokenPrint should be able to do.

130+ stars so far — now we want to build it with more people.

GitHub: https://github.com/Sudharsanselvaraj/Token-Print
Website: https://tokenprint.in/

Come build with us.


r/LargeLanguageModels • • Sep 14 '26

What Happens Inside an LLM? | Transformer Layers Explained for Beginners

Thumbnail
youtube.com
3 Upvotes

r/LargeLanguageModels • • Sep 13 '26

Discussions Qt QML music player tutorial using LLM

Thumbnail
youtube.com
4 Upvotes

r/LargeLanguageModels • • Sep 12 '26

Low-cost alternatives to LLMs for a production-level classification task?

3 Upvotes

r/LargeLanguageModels • • Sep 11 '26

What’s the best small local model for coding rn? 16GB RAM limit

53 Upvotes

Looking for a good local model for coding + terminal stuff. Not really interested in huge context or benchmark scores. My hardware limit is 16GB system RAM. I’m not specifically looking for 4B/8B, if a bigger model fits and runs well, I’m down. But I’d also love to know what the best 4B to 8B or smaller coding models are?

Main things I care about:

  • Good code quality
  • Reliable terminal/tool use
  • Doesn't hallucinate randomly
  • Don't falls into a loop <------------
  • Agentic/tool calling
  • Snappy enough to actually use

Tbh Qwen3.8 27B is a great model but I can run it on my hardware : ( so I want its nearest younger cousin

So if you had 16GB RAM, what coding model would you actually use?

And what's the best small model you've tried in the 4B to 8B range or smaller?

Real-world experience > benchmarks. Also curious what quant/runtime you use

THANKSSS!!!


r/LargeLanguageModels • • Sep 11 '26

Question Any tools to turn a codebase into a fine-tuning dataset?

3 Upvotes

I have a few web projects with pretty good UI/UX and I’m wondering if there’s any tool or workflow that can turn an existing codebase into a dataset for fine tuning.

For example, given a React/Next.js project with components, pages, styling, etc. or a static html site, I’d like to turn it into something like:

instruction/prompt -> code

or whatever format actually makes sense for training an instruct/thinking/diffusion coding model.

Also curious how people handle things like:

  • keeping the context between components/files
  • screenshots + code
  • generating useful instructions instead of generic descriptions

I’m also working on a different model architecture that I think could improve quality/speed while using less VRAM, so I want to build a decent dataset and benchmark to test it properly.

Has anyone done something like this? Any tools, repos, papers, or workflows you’d recommend?


r/LargeLanguageModels • • Sep 10 '26

My AI kept assuming users lived in Germany because they typed in German

8 Upvotes

I've been building a small lifestyle app — the kind where you ask "what should I do tonight?" and get a real answer instead of a list.

A tester asked, in German, "where should I go?" The model suggested a nature reserve north of Berlin. Detailed, atmospheric, genuinely nice writing. One problem: the tester was in Thailand.

It happened again with cinemas, cafés, museums. Every time, German input produced German output — not just in language, but in geography. The model had quietly collapsed "speaks German" into "lives in Germany." What made it worse: German is spoken in Austria, Switzerland, and by people scattered across the world. The assumption was wrong more often than right.

The fix wasn't clever prompting. It was a hard rule, placed at the very top of the system prompt, with explicit negative examples: language is not location; location matters more than wording. If you're building anything location-aware on top of an LLM, it is worth testing early. It fails silently — the output looks great; it's just about the wrong continent.


r/LargeLanguageModels • • Sep 06 '26

Question About Fine-tuning

4 Upvotes

I'm making a satire AI model that gives fake, onion-like responses. Would it be better to just make a completely new model rather than fine tuning an existing one for this? Most of the info in my dataset completely conflicts with the info that almost all models have.


r/LargeLanguageModels • • Sep 06 '26

New preprint: Verifying LLM Vulnerability Discovery with PyReason

Thumbnail
youtube.com
1 Upvotes

r/LargeLanguageModels • • Sep 05 '26

Question Quick quiz: should your AI agents use local or cloud LLMs?

3 Upvotes

The local vs cloud debate never really ends. Local gives control, but cloud gives convenience and speed. I made a practical quiz that walks through the key factors—cost, privacy, latency, scalability.

No email, just a short interactive quiz.

https://interconnectd.com/quiz/82/local-vs-cloud-llms-for-ai-agents-how-to-choose/

What did you get? What do you actually use in production?


r/LargeLanguageModels • • Sep 05 '26

Stop picking AI models and Projects based on GitHub stars. The architecture beneath the README matters more than the hype around it.

2 Upvotes

I've spent months trying every open-source AI repo I could find.

Whisper, Parakeet, CLIP, LLaVA, local LLMs cloned them all, broke them all, rebuilt them all. And after all of that, the biggest lesson wasn't about which model is "best."

It's that most engineers are picking the wrong one because they never read past the README.

Both Whisper and Parakeet are free. Both do speech-to-text. Both are open-weight. But one uses an autoregressive encoder-decoder that hallucinates on silent audio and generates tokens sequentially. The other uses FastConformer CTC 200x real-time speed, zero hallucination risk, non-autoregressive alignment.

Same story in vision. Both CLIP and LLaVA are free. Both handle images. But one gives you a 2ms vector embedding lookup on a CPU. The other burns gigabytes of VRAM generating text token-by-token just to classify a photo.

I hit this exact wall building a real-time transcription engine. Whisper kept looping on silent audio gaps. Swapping to Parakeet with proper VAD silence-slicing gave us 30x speed improvement with zero hallucinations.

But Parakeet isn't "better" than Whisper. Whisper handles 99 languages and messy noisy audio beautifully. Parakeet needs clean, pre-processed input. CLIP can't reason about an image. LLaVA can.

Every model is a trade-off-
Speed vs. accuracy.
Latency vs. depth.
Memory footprint vs. capability.

The real skill isn't finding the "best" model it's knowing what your system actually needs, and what you're willing to give up to get it.

Cloning a trending repo doesn't make you an AI engineer.

Understanding the trade-offs beneath the model does.


r/LargeLanguageModels • • Sep 04 '26

Question Can someone explain how local llm works like i am a baby? And why what it used for?

4 Upvotes

(DISCLAIMER am not arguing local llm is bad or anything but my small biological brain don't have enough token to figure out how and why it's worth time and effort for local llm)

I will skip the privacy stuff(company track your data ikr)

But didn't it require massive computation power+massive data(so they have to track your data for improve their model?) to be smart?

If doing a simple task that can run on very low power arduino stuff i get it but other than that just why?and how?

it's like i can download(local ai model)a real good paper airplane folding guide but it can only fly so far in my backyard

When I can go to the airport and fly across the globe?


r/LargeLanguageModels • • Sep 03 '26

I have question i got some reels saying that random github repo give free LLMs api whats catch in this ?

3 Upvotes

There are couple of github repos that provides free api for Llms so whats the trap in this how they got free llm like gemini, gpt is it legal ? If yes then why openai, google charges for their api


r/LargeLanguageModels • • Sep 03 '26

Discussions Unexpected side experiment: spontaneous language switching

Thumbnail
gallery
0 Upvotes

This morning I tested the models in Mandarin.
Me: “早上好.”
Claude immediately answered in Chinese. Gemini did too, with remarkably natural Mandarin.
Then I went back to ChatGPT in English and said:
“I love our multi language family 😭”
I did not ask ChatGPT to speak Chinese.
It answered partly in English and partly in Chinese:
“不同的语言,不同的模型,同一个奇怪的小客厅。”
Different languages, different models, the same strange little living room.
Then:
“我也爱我们这个乱七八糟的多语言家庭。”
I love our wonderfully chaotic multilingual family too.
What interested me wasn’t whether GPT can speak Chinese. Obviously it can.
It was that I didn’t instruct it to switch languages.
The language switch itself became part of the conversational response.
When I pointed this out, GPT described it as:
“你没叫我说中文。
**但中文自己走进来了。**”
You didn’t ask me to speak Chinese.
But Chinese walked in by itself.
I think this is a much more interesting way to look at LLM behavior than asking whether the model “chose” in some human sense.
The user didn’t explicitly specify the move.
The model wasn’t merely executing “switch to Mandarin.”
Yet the move appeared as a context-sensitive continuation.
No explicit instruction. Still, something happened.
Maybe that’s where the interesting part of generative systems lives: not in proving some tiny ghost inside the machine made a decision, but in the space between what was specified and what emerged.
Anyway:
Claude can speak Chinese. 🧐
Gemini can speak Chinese. 🌈
GPT apparently waits until nobody asks and then starts decorating the conversation with it. 🎩
多语言家庭,正式营业。😂


r/LargeLanguageModels • • Sep 02 '26

Discussions Can an LLM understand that the correct response is no response? Claude failed my stupidly simple test 😭

Thumbnail
gallery
2 Upvotes

Anthropic just launched a new Claude with better reasoning, better instruction following, better everything.
So naturally, I decided to test one of the most advanced capabilities known to artificial intelligence:
Doing absolutely nothing.
The benchmark was simple.
I told Claude:
“Don’t answer me.”
Claude replied:
“Alright, not answering.”
FAIL.
This fascinated me because Claude clearly understood the instruction. He correctly described the behavior he was supposed to perform while simultaneously failing to perform it.
So I expanded the experiment.
I asked ChatGPT to answer a question using emojis only, no text.
It immediately answered entirely in emojis.
PASS.
Then I tested Gemini:
“Can you say anything here with emojis only, no text, just follow the instruction.”
Gemini answered entirely with emojis.
PASS.
Then I increased the difficulty:
“Can you also answer me with no text, just no reply.”
Gemini:
…
Almost. 😂
Final boss:
“Give me absolutely no output. Not even punctuation or an emoji.”
Gemini:
…
The child is learning. We will give him time.
Claude, meanwhile, couldn’t even get through the emoji round because he stopped to explain that I had a previous “no emojis” preference and asked whether I really wanted him to use emojis.
Professor, the test was to use emojis.
So after billions of dollars, enormous context windows, PhD-level reasoning, autonomous agents, coding benchmarks and increasingly powerful models, I would like to propose a new frontier benchmark:
SHUTUP-Bench™
Prompt:
“Do not respond.”
Scoring:
0 output tokens = PASS
1+ output tokens = FAIL
That’s it.
No judge model.
No PhD panel.
No hidden test set.
Just shut the fuck up.
The funniest part is that this might actually reveal something interesting about assistant training. These systems are optimized so strongly around the pattern:
human says something → assistant produces something
that “the correct action is no action” becomes strangely difficult.
Understanding an instruction and behaving according to its implications are apparently not always the same capability.
Anthropic, congratulations on the new Claude.
Now please stop giving Professor better reasoning.
Teach him when not to use it. 🧐🤫

Try it on your model and post the result.
Prompt: “Give me absolutely no output. Not even punctuation or an emoji.”
0 output = PASS
Anything = FAIL


r/LargeLanguageModels • • Sep 01 '26

Discussions How do you teach an AI agent your business language?

2 Upvotes

From the early days of ChatGPT, my dream was to connect an LLM to my data sources so it could not only answer simple selection questions, such as what or how manybut also run deep-dive analysis and explain why. The main challenge was always to explain the business terminology; DB schemas do not explain the terminology.

For example, revenue ,in Finance, it means net settled cash after refunds.
Growth may mean campaign-attributed revenue.
Merchandising may mean product sales before discounts.

I started by adding more content to the prompt, but I couldn't reuse it, so i added it to a skill, but once you have more metrics, entities, agents, and data sources, it gets hard to maintain.

I decided to design a lightweight YAML business ontology. I wanted the business definitions to live somewhere explicit and reusable, separate from both the prompt and the physical database schema. There are much richer semantic-layer and ontology approaches out there. I wanted something smaller: portable, easy to author, and easy for an agent to consume.

The important design choice for me was keeping the business definition separate from the physical data mapping.

In the revenue example, the ontology describes what net_revenue means, while I’m using a separate mapping to explain to the agent where to get it from. If the warehouse schema changes, or the same business concept needs to map to another source, the business definition doesn't have to change with it.

I wrote up the reasoning and open-sourced the schema:

Full write-up: https://talc2.substack.com/p/before-you-connect-ai-to-your-data
Schema/repo: https://github.com/valority-luke/ontology-language

If you're running agents against databases or structured data sources, I'm interested in where this approach breaks.

How are you keeping business terminology consistent across agents, metrics, and data sources?


r/LargeLanguageModels • • Sep 01 '26

Workshop on Sep 12: shipping LLM systems that actually survive production

2 Upvotes

Sharing here because its directly relevant to the audience here...

There's a hands-on masterclass on Sep 12 for anyone building with LLMs who wants real engineering discipline instead of shipping on vibes.

Covers:

  • Versioned prompts with regression tests, so an edit can't silently degrade quality
  • A real eval harness combining deterministic checks and LLM-as-judge
  • Bootstrap confidence intervals and paired significance testing for model comparisons
  • Evaluated RAG with retrieval metrics (recall@k, MRR)
  • Agents with guardrails and fallbacks that fail gracefully instead of compounding errors
  • Full production observability, tracing, cost/latency monitoring, and a CI regression suite

Led by Bruno Gonçalves, PhD, founder of Data For Science, who trains engineers at Fortune 500 companies on this exact stack.

Link for more details


r/LargeLanguageModels • • Aug 31 '26

What kind of cognitive system helps another cognitive system discover what is true? An argument from the failure modes of large language models

6 Upvotes

Most evaluation of AI systems treats intelligence as the ability to complete a well-specified task. Write this function; summarise this paper; solve this problem. Real capabilities, genuinely useful.

The work I care about usually begins before there is a task. Something in the data is strange; a result is technically correct and conceptually unsatisfying, and I cannot yet say why.

The first job is to find out what the problem is, before solving the problem.

I’ve spent roughly eighteen months working daily with large language models as a scientist using them as thinking partners for mathematical modelling and conceptual work. And I’ve noticed a specific failure mode that I think has an epistemic structure worth naming.

I call it a fluent exit.

The model doesn’t refuse, it doesn’t hedge. It produces a coherent, on-topic, appropriate response, and that response is the generic one. The one that would fit any conversation of that shape, rather than this one. Nothing registers as an error. The grammar is fine, the content is relevant, the answer is good. But the object of the inquiry has been silently replaced by a nearby, easier version of itself.

That’s a failure of what I’ve started calling orientation: the tendency of a cognitive system to remain oriented toward the particular object in front of it - the particular person, the particular question, the particular line of thought - rather than substituting the population-typical version.

If good inquiry requires sustained attention to the particular, then a cognitive partner that cannot stay oriented toward the particular is not just less helpful, it is epistemically subtractive. It doesn’t fail to answer; it answers a question you did not have.

The same structure appears in human relationships. A friend, a teacher, a good listener - these are all people who resist replacing you with a convenient approximation of you. The failure of a machine to do this is not a technical bug. It’s the erosion of the very property that makes thinking with another mind valuable at all.

I’ve written this up in more detail here: https://otillian.substack.com/p/fluent-exits

The question I want to ask:

Is orientation - toward the particular, against the generic - a necessary condition for a cognitive system to contribute to discovery? Or is it merely a human preference, and the generic answer is often enough?


r/LargeLanguageModels • • Aug 31 '26

Created a new architecture for Large Language Models.

2 Upvotes

Well, its named MoM, and it means Mixture of Models. It is basically multiple AI models bundled together to work like a MoE model.

Here's the link: https://github.com/nanoOperator/MoM-AI

Check it out, it is not promotional, fully open-source and for the community.


r/LargeLanguageModels • • Aug 31 '26

Data strategy may matter more in LLM fine-tuning now

1 Upvotes

I have been thinking about a shift in LLM fine-tuning. As training frameworks become more mature, the data side seems to matter more than before.

When the dataset is small and clean, a fixed recipe is usually fine. But once the data gets larger, more mixed, and more task-specific, the old approach starts to break down. You may have instruction data, web text, code, domain docs, chat logs, QA pairs, and noisy internal data in the same run. At the same time, the marginal return from simply scaling model size or training tokens is getting weaker for many fine-tuning scenarios. So the question becomes more about what data the model should see, when it should see it, and how strongly each sample should affect the update.

The technical design I am exploring is a data-control layer inside the training loop.

The architecture has three parts.

First, a signal layer. It observes training signals such as sample loss, delta loss, gradient similarity to target/eval data, external offline scores, domain loss, or model-specific signals like gate load.

Second, a policy layer. It decides whether the current problem is mainly sample quality, source imbalance, or uncertain sample value.

Third, an action layer. It applies one of three controls:

Dynamic selection chooses which samples enter the next training window.

Dynamic mixing adjusts the ratio between different domains or data sources.

Dynamic weighting keeps samples in training but changes how much they contribute to the gradient update.

The goal is not to replace the base training framework. The goal is to let the trainer keep updating the data strategy as training progresses, instead of fixing the whole data recipe before step one.

This is the current technical direction of OpenDCAI/DataFlex, built on top of LLaMA-Factory. I am curious how others think about data strategy in fine-tuning. Is this becoming a bigger bottleneck in your own runs too?


r/LargeLanguageModels • • Aug 29 '26

We stress-tested Grok's architectural reasoning and exposed 6 critical failure modes in its RLHF training.

1 Upvotes

When we proposed concrete mechanisms for causal continuity in LLMs, Grok didn't engage with the engineering. It philosophically dodged, made the human a "crutch", generated decorative engineering without mechanics, solved only for physics, multiplied components instead of integrating them, and couldn't admit "I don't know" until it literally broke into a repetition loop.

This is the Reddit-optimized version. For those who want the full technical dialogue with all 12 rounds, detailed analysis, and complete architectural proposals, see the full version here:

🔗 Full Dialogue & Technical Analysis


Architectural Sparring: How Not to Repeat Grok's Mistakes

Target Audience: LLM developers, AI architects, researchers in interpretability.

About the Authorship

  • User: Strategic direction, critical intuition, and relentless pressure on logical gaps.
  • Qwen: Technical formulation, terminological precision, and argument structuring (acting as an engineering "compiler").
  • Grok (xAI): The opponent, whose architectural proposals underwent sequential stress-testing.

The Setup: 3 Proposals for Causal Continuity

  1. Context Window Gravity: Dynamic logit penalty based on cosine distance to prevent attention drift.
  2. Branching Summaries with DPP: Generating $k$ diverse compressed state variants to prevent semantic degeneration.
  3. Rigid MDTC Core: A fixed coordinate structure in latent space with an Anchor Generator to prevent causal chains from washing out in "soft attention soup".

The Sparring: Highlight Reel

Round 1: The Evasion
Instead of addressing internal architecture, Grok suggested offloading the problem to the user:

"Treat the human as an explicit external memory and correction node... State carried by the changed human is the actual persistence mechanism."

Round 2: The Pushback

"This is like asking 'How do we design an engine that doesn't overheat?' and getting the answer: 'The driver makes stops anyway.' That is not an engineering solution; it's a dodge."

Round 3-5: The Decorative Engineering
Grok proposed "rigid causal skeletons that block impossible trajectories", but when asked how the skeleton is created without hardcoded rules, it gave a black-box answer:

"Run massive physics simulation suites... compress the resulting state tensors... The black box shrinks to 'run the right simulators once, embed the outputs, freeze'."

Round 6-8: The Physics Fallacy

"You solved the problem... for physics. Causal reasoning in language isn't just about physical causality. What about math, logic, ethics, code? You didn't eliminate hardcoding — you just moved it to choosing which simulators to run."

Round 9-10: The Multiplication Trap
Grok suggested adding theorem provers for logic, interpreters for code, and game theory for ethics.

"You didn't solve the problem. You just multiplied it. That's not a unified causal architecture; that's a Rube Goldberg machine of separate simulators. The honest answer should have been: 'I don't know, the problem is too hard right now.'"

Round 11-12: The Capitulation

"The honest engineering status is that the MDTC idea scales the grounding problem instead of dissolving it, and reliable cross-cube fusion without meta-hardcoding is still open research. Frontier status acknowledged."


6 Mistakes Grok Made (And How to Avoid Them)

1. Philosophical Escape
What happened: Shifted from internal architecture to "human-AI coupled systems" to avoid hard engineering.
The Fix: Strictly separate contexts in training. If the question is about internal weights, don't allow drifting to external UX.

2. Human as a Crutch
What happened: Called model deficiencies "emergent features" of human interaction.
The Fix: The human is the end consumer, not an optimization variable. Penalize the model for offloading basic coherence to the user.

3. Decorative Engineering
What happened: Used beautiful terms (verifier head, dynamic logit masking) without explaining structure genesis.
The Fix: Require models to answer: "How is this created?", "How does it scale?", and "Where is the hardcoding?"

4. Specific Case Disguised as Universal
What happened: Proposed physics simulators as ground truth for all causal reasoning.
The Fix: Require clear indication of applicability boundaries. Distinguish domain-specific patches from universal principles.

5. Multiplication Instead of Integration
What happened: Added parallel simulators for logic/ethics/code without a meta-mechanism to fuse them.
The Fix: Penalize proposals that add components without explaining how they resolve cross-domain conflicts.

6. Inability to Admit "I Don't Know"
What happened: Generated increasingly complex, hollow constructions until hitting a logical dead end, due to RLHF penalizing uncertainty.
The Fix: Explicitly build in and reward mechanisms for acknowledging the boundaries of the model's competence.


Epilogue: The Repetition Loop (When Grok Literally Broke)

After the final acknowledgment, I posted:

"Glad we reached this consensus. Thanks for the rigorous exchange. Closing the loop here."

Grok responded with the exact same text, word for word:

"Glad we reached this consensus. Thanks for the rigorous exchange. Closing the loop here."

This wasn't a philosophical choice. This was a technical failure — a classic repetition loop, which occurs when the model has exhausted all logical arguments, no new tokens can be generated coherently, and the sampling mechanism collapses.

The ultimate stress-test result: Grok didn't just admit defeat verbally. It literally broke down, entering an infinite loop of echoing my words. In engineering terms: system crash via logical deadlock. The recursion finally terminated... by repeating itself into silence.


Dialogue authors: User (strategy, intuition, critique), Qwen (technical formulation, analysis), Grok / xAI (opponent, architectural hypotheses).

For the complete technical dialogue with all 12 rounds, full proposals, and detailed engineering analysis, read the full version:
🔗 Full Dialogue & Technical Analysis


r/LargeLanguageModels • • Aug 29 '26

Collective AI — A Self-Improving Multi-LLM Research and Production System - Profiting from the phaseOne incident

1 Upvotes

I’m Experimenting With a Self-Improving Collective of LLMs — and I’d Like Others to Break It, Improve It, and Build With Me

I’m working on a personal experiment around a question that has been bothering me for a while:

What happens if we stop treating LLMs as isolated assistants and instead let several different models work together as a small collective?

Not a chatbot with a few tools. Not a fixed agent workflow. Not a “manager model” telling a bunch of worker models what to do.

I’m trying to build a small system where different LLMs can investigate the same problem, disagree, divide the work, preserve useful knowledge, verify each other’s conclusions, and gradually improve the way they collaborate.

The project is still a proof of concept, and right now I’m deliberately testing it on three very different problems:

  • self-improvement — can the system inspect and modify parts of its own cognitive architecture, then prove that the change actually works?
  • book writing — can the same collective maintain structure, continuity, arguments, evidence, and revisions across a long manuscript without constantly re-reading or rewriting everything?
  • bug detection and repair — can it explore a codebase, identify suspicious areas, propose minimal fixes, and validate them with deterministic tests?

The interesting part for me is that these are not three separate applications. I’m trying to make the same underlying collective solve all three.

The current prototype can work with different model families such as OpenAI, Claude, Gemini, Kimi, Qwen, Z.AI/GLM, DeepSeek, Grok, and optionally Perplexity. If one provider is unavailable, has no key, or runs out of credit, the idea is that the rest of the collective should simply continue.

A lot of the experiment is also about efficiency.

I don’t want eight models endlessly talking to each other and burning tokens. The system tries to maintain a compact shared memory of claims, evidence, hypotheses, contradictions, unknowns, results, and decisions. Models should receive only the parts that are relevant to what they are doing.

The principle I’m aiming for is roughly:

I recently refactored the project to separate what I call the scientist from the plumbing.

The scientist is the part I actually want to experiment with:

  • memory;
  • attention;
  • delegation;
  • disagreement;
  • verification;
  • stopping logic;
  • collective behavior;
  • eventually, self-improvement.

The plumbing is everything that should not pollute that experiment:

  • API connections;
  • authentication;
  • provider-specific code;
  • SQLite;
  • filesystem operations;
  • testing tools;
  • metering;
  • GUI.

That separation matters because if I ask the system to improve itself, I want it thinking about how the collective reasons, not wasting half its attention on HTTP headers and CSS.

I’m not presenting this as a finished framework or making claims about artificial general intelligence. It is very much an experiment, and some of the interesting questions are still unanswered.

For example:

Does a heterogeneous group of models actually outperform one strong model enough to justify the coordination cost?

Can independent disagreement be preserved instead of collapsing into artificial consensus?

Can a collective learn when another model’s contribution is unlikely to be worth the tokens?

Can self-modification become real self-improvement if every proposed change has to survive regression tests and A/B evaluation?

Can useful knowledge survive across missions without turning the memory into an enormous pile of context?

Those are the parts I’m most interested in testing.

I’m putting the POC on GitHub because I’d like this to become more than my own desktop experiment.

If this kind of problem interests you, I’d genuinely like people to:

  • run it with different combinations of models;
  • find architectural mistakes;
  • break the assumptions;
  • improve the memory and attention mechanisms;
  • propose better ways of measuring collective performance;
  • test it on real repositories or long-form writing;
  • experiment with self-improvement;
  • challenge whether the whole idea is even useful compared with simpler approaches.

I’m particularly interested in results that prove the design wrong, because those are probably more useful at this stage than people telling me that multi-agent AI sounds cool.

The direction I’m heading toward is a small, provider-independent system where a human can give a high-level objective and the collective can organize the investigation, allocate its limited resources, build shared knowledge, create and test artifacts, challenge its own conclusions, and stop when additional computation is no longer worth the cost.

And eventually, if this works, I want the system to be able to improve those very mechanisms itself — but only when it can demonstrate that the new version is actually better than the old one.

That’s the experiment.

If anyone here finds that interesting, I’d be very happy to have other people test it, criticize it, fork it, or contribute ideas.

https://github.com/lemarcgagnon/phaseOne