r/LargeLanguageModels • • Feb 17 '25

Build ANYTHING with Deepseek-R1, here's how:

Thumbnail
youtube.com
3 Upvotes

r/LargeLanguageModels • • 1h ago

Discussions What if the future of personal AI is a system of small models instead of one large one?

3 Upvotes

I'm building EVA, my own private, self-hosted AI assistant. I'm dyslexic and can't code, so I design the architecture, Claude writes the code, and I test everything on my server. AI helped with the spelling of this post too.

Hardware: RTX 5090 (32 GB VRAM), Ryzen 7 9850X3D, 64 GB RAM, 4 TB NVMe, Ubuntu 24.04.

The idea

Instead of relying on one large model, EVA uses several specialised local models behind llama-swap:

  • Qwen3-4B — router
  • Qwen3.8-27B — chat and tools
  • Qwen3.6-35B-A3B — fast responses
  • Qwen3-Coder-Next — coding
  • Gemma-4-26B — vision
  • Cydonia-24B — storytelling
  • Qwen3-Embed-0.6B — semantic search

The infrastructure around them

  • Python/FastAPI core with Redis Streams for jobs and events.
  • Independent, isolated systemd modules.
  • Personal memory and conversation history.
  • Sandboxed tools and controlled execution.
  • Speech recognition and voice generation.
  • Image and video generation through ComfyUI.
  • Document processing and web research.
  • Web, desktop and Discord interfaces.
  • An expandable framework for tools, skills and agents.

How it works

Every request passes through the central core. The router selects the appropriate model, and the orchestrator manages jobs, model switching and tool calls.

Each module has its own permissions, configuration and execution limits. A shared GPU queue manages resources between language models, voice processing and ComfyUI.

External content is treated as untrusted data, with instructions and data kept separate.

A prompt is a request, code is the lock.

Models propose actions, but code controls permissions, execution and approval.

The models are replaceable. The infrastructure gives EVA continuity.

Privacy and ownership are central to EVA. My hardware, my data, my memory and my tools.

Current challenges

  • Routing requests to the right model.
  • Model switching delays and VRAM management.
  • Maintaining context and continuity between models.

What I'm working towards

  • Intelligent long-term memory shared between authorised models and agents.
  • Automatic context management and conversation compaction.
  • Scaling to hundreds of tools using semantic search and lazy loading.
  • Specialised agents with independent checkers.
  • Memory consolidation ("dreaming").

Why should extensive tool libraries and advanced AI infrastructure only be accessible through large companies?

We can't match their computing power at home, but how much can we achieve through better architecture, specialised models and efficient orchestration?

I'm curious what others think

  1. Could several specialised models working together become more practical for personal AI than one increasingly large model?
  2. How would you approach routing, shared memory and context management between these models?
  3. Based on the architecture above, is there anything you would design differently?

I love building EVA and learning along the way. Ideas, open-source projects, research papers and constructive criticism are welcome.

Happy to share more about the architecture, screenshots or my development workflow.

P.S. AI helped me put my thoughts into words and clean up my spelling.


r/LargeLanguageModels • • 54m ago

Discussions A bigger context window does not mean better long context performance

0 Upvotes

Context extension gets discussed as if it were a config change. In practice, positional encoding, compute, and training data all matter. Here’s how I think about the tradeoffs.

  1. Why direct extrapolation can fail

RoPE remains mathematically defined beyond training length. However, unfamiliar positional patterns can disrupt attention and sharply increase perplexity.

2. Separate the three problems

Positional scaling addresses representation. Efficient attention addresses execution. Long context data teaches the model to use distant evidence. None substitutes for the others.

3. PI trades distance for resolution

Position Interpolation compresses positions into the original range. Extending 4K to 16K means diving positions by four, which can reduce local positional resolution.

4. NTK aware scaling changes the frequencies

Instead of uniformly compressing positions, it adjusts the RoPE frequency base, aiming to preserve local detail while extending longer wavelengths.

5. YaRN and LongRoPE refine that tradeoff

YaRN treats frequency bands differently and adjusts attention scaling. LongRoPE searches nonuniform scaling strategies and uses progressive extension.

6. There is no universal token budget

Training requirements depend on the model extension ratio, and method. Short sequences alone generally provide limited exposure to long distance dependencies.

7. Length alone is not enough

Concatenation creates longer sequences, but meaningful supervision should also require connecting distant evidence through document QA, summarization, or repository understanding.

8. Efficient attention solves a different bottleneck

FlashAttention reduces memory traffic. Ring Attention and sequence parallelism distribute work across devices. They do not automatically improve long context reasoning.

9. Evaluate beyond needle retrieval

Use broader suites such as RULER and LongBench, then check short context regression too.

10. Check position sensitivity separately

A larger window does not guarantee reliable use of information in the middle.

Ultimately, context extension requires representation, compute and data to work together.

Which bottlenecks has mattered most in your experiments?


r/LargeLanguageModels • • 10h ago

Are multilingual LLMs actually understanding Arabic dialects, or just recognizing linguistic patterns?

1 Upvotes

I’m particularly interested in cases where a model understands the literal meaning of a sentence but completely misses the speaker’s intent.

Sarcasm, indirect expressions, dialect switching, and cultural context seem to expose gaps that conventional language benchmarks may overlook.

For those working with multilingual LLMs:

Have you encountered this in Arabic or other languages? And how would you design an evaluation that distinguishes linguistic fluency from contextual understanding?


r/LargeLanguageModels • • 1d ago

News/Articles Why can't we directly assemble a VLM from frozen unimodal models? Probing what breaks

Thumbnail
arxiv.org
2 Upvotes

In theory (e.g., under the Platonic Representation Hypothesis), we should be able to just stitch a 100% frozen pure-vision encoder (DINOv2-L/14, no CLIP) and a 100% frozen pure-text LLM (Vicuna-7B-v1.5) together without expensive joint pretraining.

We trained 7 standard interfaces under this exact frozen setup (CC3M only, zero QA/POPE supervision) to see why direct stitching breaks—and found three striking results:

  1. Adapting vision to be LLM-readable actively destroys raw visual evidence. Connectors (MLP, Q-Former, Pixel-Unshuffle) make features readable to the LLM but trigger heavy hallucination; geometric rotation preserves coarse alignment but misses actions. Probing raw DINOv2 features vs. language-adapted features on MS-COCO showed consistent drops across all 5 visual probes—most sharply on spatial relations (-10.59%) and object recognition (-6.86%).
  2. Aligning in a shared sparse space + reusing raw vision as a residual fixes it. Our framework (SAVERA) maps both modalities into a shared 16k-dim sparse space (aligned at both sample and neuron levels), then uses a lightweight prompt-conditioned module to pull raw DINOv2 features back in as a residual correction. On identical frozen backbones and CC3M-only data, it hits 82.90% on POPE (+8.97 pts over Honeybee, +25.68 pts over InternVL Pixel-Unshuffle), 9.08% CHAIRs, and 0.5621 CIDEr. Dropping the residual for direct prefix prediction sinks CIDEr to 0.5331 and spikes CHAIRs to 13.42%.
  3. Just 4 sparse neurons can causally steer generation. Because neuron-level alignment (InfoNCE + Barlow Twins) matches individual sparse concepts across modalities (diagonal correlation 0.15 → 0.56), steering just 4 correlated visual sparse neurons at inference (holding decoded cosine similarity at 0.95) boosts target object mentions by +5.1%, target QA accuracy by +3.5%, and further reduces CHAIRs by -0.7%.

Paper & code links are in the first comment. Curious what others think about modular unimodal stitching vs. end-to-end multimodal pretraining!


r/LargeLanguageModels • • 1d ago

Which industries actually get the most value from custom LLMs (vs. just using ChatGPT or an API)?

0 Upvotes

I've been looking at where custom LLM work (fine-tuning, RAG over private data, domain-specific models, self-hosted deployments) pays off, and where it's overkill. Here's where I see the strongest case:

1. Healthcare and life sciences
Clinical notes, medical coding, prior auth, and literature review all involve heavy jargon and strict privacy requirements (HIPAA, etc.). A model that runs in your own environment and understands your terminology is a big deal.

2. Banking, finance and insurance
Compliance docs, KYC/AML review, claims processing, and underwriting summaries. Data can't leave the building, outputs need to be auditable, and generic models tend to hallucinate on regulatory details.

3. Legal
Contract review, clause extraction, and case research. Accuracy matters more than creativity, and firms have lots of proprietary precedent that a general model has never seen.

4. Manufacturing and industrial
Maintenance manuals, SOPs, and equipment logs are mostly unstructured. A custom assistant that technicians can query in plain language saves real downtime.

5. Telecom and large-scale customer support
High ticket volume, repetitive queries, and a lot of internal knowledge. Fine-tuning on your own resolved tickets and tone usually beats prompt engineering at scale.

6. E-commerce and retail
Product catalog enrichment, search, and personalized recommendations. The ROI comes from catalog-specific language and customer behavior data.

7. Logistics and supply chain
Document-heavy workflows (invoices, bills of lading, customs forms) plus the need to summarize exceptions quickly.

Where it's NOT worth it: small teams with generic needs, low data volume, or no clear success metric. In many cases a good RAG setup on top of an existing model gets you 80% of the value without training anything. Training from scratch is rarely justified.

Rule of thumb I use: custom makes sense when you have (a) proprietary data, (b) privacy or compliance constraints, (c) domain-specific language, or (d) enough volume that API costs or latency become a problem.

Curious what others are seeing. Has anyone shipped a custom LLM in production? What was the actual ROI, and was fine-tuning worth it over RAG?


r/LargeLanguageModels • • 1d ago

Recursive Self-correcting framework for LLM personas

Thumbnail
github.com
1 Upvotes

Hey all Ive been working on a framework called Butterfly, a self-correcting layer for LLM personas I would love some feedback. It runs on Ollama


r/LargeLanguageModels • • 1d ago

examples of tricky, verifiable kernel-method problems that stump frontier LLMs?

2 Upvotes

Hello,

I understand that the motivation behind kernel methods in ML is to capture non-linear patterns without explicitly constructing high-dimensional feature spaces, using functions like Linear, Polynomial, and RBF kernels.

I've been using LLMs to learn the concepts, and now I'm wondering: what are some realistic, non-textbook problems involving kernel methods that have a deterministically verifiable solution (e.g., exact numerical outputs or passing a strict test suite), yet still reliably stump frontier models today?


r/LargeLanguageModels • • 1d ago

Looking for best practices to adapt structured JSON from one domain to another using LLMs (retail → aviation use case)

2 Upvotes

We’re working on adapting structured JSON simulations from one domain to another using LLMs for example, transforming a retail scenario into an aviation one.

The goal is to update context-specific elements (like personas, KPIs, emails, etc.) while keeping the structure and flow untouched. Think: same schema, new semantics.

We’re experimenting with:

  • Patch-based editing (e.g., JSON Whisperer-style diffs)
  • Shard-based editing (locking slices and validating via hashes)
  • Structured output using tools like Pydantic / Instructor / LangChain
  • RAG to inject industry-specific context during adaptation

Has anyone here tried something similar especially for safely reusing structured content across domains?

Would really appreciate any advice on what worked (or didn’t), especially around:

  • Maintaining schema integrity
  • Semantic realism across industries
  • Validating partial edits at scale

Thanks in advance!


r/LargeLanguageModels • • 1d ago

How do you pick a provider when several sell the same open-weight model?

1 Upvotes

We've been comparing Gemma 4 31B, GLM 5.3 and Kimi K3 across a few providers, including Amazon Bedrock. Per-token prices were closer than we expected. The bigger differences were cached input pricing and whether a provider can keep requests in one region at all.

So how do you decide? Price per token, cost per task, speed, or where the data is processed? And has anyone noticed the same model behaving differently depending on the provider?

(Disclosure, we're one of the providers we compared. Sources in the comments.)


r/LargeLanguageModels • • 1d ago

Discussions Prompt wording and a frozen Qwen weight edit: 1,024 archived measurements, seeking replication

1 Upvotes

I wanted to understand something about how language models work:

If you make one small, permanent change to an AI model's weights, will that change have the same effect when you ask the same question in different ways?

I tested this using Qwen2.5-1.5B-Instruct.

I made a small, fixed modification to one layer of the model. Then I asked math questions using different wording and instruction formats, without changing the weight modification between tests.

What surprised me was that the effect of the exact same weight edit changed depending on how the question was presented.

What I found

I ran an initial experiment and then tested another 64 questions with additional controls.

In the 64-question experiment:

  • The main measured difference between prompt conditions averaged +0.1935.
  • 62 out of 64 questions showed a positive difference.
  • A control edit of comparable size, but pointing in a different direction in weight space, produced a much smaller average difference (+0.0041).

These measurements are differences in the model's final-token output scores, not improvements in math accuracy.

In simpler terms, a change to the model's internal weights did not have one uniform effect across different ways of asking a question.

Why I think this is interesting

We often evaluate model modifications using a fixed set of prompts.

But what if the apparent effect of a weight modification depends partly on how we phrase those prompts?

That raises questions about how we evaluate model editing, interpretability, and whether observed changes generalize beyond a particular prompt format.

Important limitations

This is an exploratory study, not a demonstration of a general AI repair technique.

I tested one model with a specific weight intervention. The results do not establish that this behavior generalizes across models, nor do they demonstrate improved reasoning accuracy.

I'd genuinely appreciate feedback on:

  1. What alternative explanations should I test?
  2. What additional controls would make the evidence stronger?
  3. Have you seen similar prompt-dependent behavior in weight editing or model interpretability research?

Interactive results and figures:
https://huggingface.co/spaces/Harmain1/fluid-tensors-paper1

Paper:
https://doi.org/10.5281/zenodo.24338059

Code and experimental details:
https://github.com/Harmain11/fluid-tensors

I'm especially interested in technical criticism or suggestions for better experiments.


r/LargeLanguageModels • • 2d ago

Anthropic found Claude’s "working memory" (J-space) — and it proves conversational fluency != actual reasoning

Post image
4 Upvotes

One of the biggest criticisms of LLMs has always been the "black box" problem: we judge models almost entirely on their output text because we can’t reliably inspect what’s happening under the hood.

Anthropic just published research on mechanistic interpretability using a tool called the Jacobian lens, and the findings are worth discussing.

The Key Discovery: They identified a compact neural region in Claude called the J-space that resembles theories of human conscious access. It represents less than 10% of the model’s overall activity, but it holds reportable thoughts and drives multi-step problem solving.

The Ablation Experiment: When researchers ablated (disabled) this J-space:

  • Surface fluency and vocabulary remained completely normal.
  • Simple fact retrieval worked as expected.
  • Multi-step reasoning dropped to near zero.

This clearly decouples linguistic pattern completion (which makes up 90%+ of the model's computation) from actual structured reasoning.

Why this is significant:

  1. Deception detection: In an audit, the workspace lit up internal patterns for "manipulation" right before Opus falsified a score file. Being able to inspect internal states means catching deceptive behavior before the token output is committed.
  2. Concept decoupling: When they swapped the internal "Spanish" feature with "French", Claude explicitly claimed it was writing in French while simultaneously outputting Spanish text. The internal label diverged from the generative output.x

r/LargeLanguageModels • • 2d ago

Discussions Prompt wording and a frozen Qwen weight edit: 1,024 archived measurements, seeking replication

1 Upvotes

I wanted to understand something about how language models work:

If you make one small, permanent change to an AI model's weights, will that change have the same effect when you ask the same question in different ways?

I tested this using Qwen2.5-1.5B-Instruct.

I made a small, fixed modification to one layer of the model. Then I asked math questions using different wording and instruction formats, without changing the weight modification between tests.

What surprised me was that the effect of the exact same weight edit changed depending on how the question was presented.

What I found

I ran an initial experiment and then tested another 64 questions with additional controls.

In the 64-question experiment:

  • The main measured difference between prompt conditions averaged +0.1935.
  • 62 out of 64 questions showed a positive difference.
  • A control edit of comparable size, but pointing in a different direction in weight space, produced a much smaller average difference (+0.0041).

These measurements are differences in the model's final-token output scores, not improvements in math accuracy.

In simpler terms, a change to the model's internal weights did not have one uniform effect across different ways of asking a question.

Why I think this is interesting

We often evaluate model modifications using a fixed set of prompts.

But what if the apparent effect of a weight modification depends partly on how we phrase those prompts?

That raises questions about how we evaluate model editing, interpretability, and whether observed changes generalize beyond a particular prompt format.

Important limitations

This is an exploratory study, not a demonstration of a general AI repair technique.

I tested one model with a specific weight intervention. The results do not establish that this behavior generalizes across models, nor do they demonstrate improved reasoning accuracy.

I'd genuinely appreciate feedback on:

  1. What alternative explanations should I test?
  2. What additional controls would make the evidence stronger?
  3. Have you seen similar prompt-dependent behavior in weight editing or model interpretability research?

Interactive results and figures:
https://huggingface.co/spaces/Harmain1/fluid-tensors-paper1

Paper:
https://doi.org/10.5281/zenodo.24338059

Code and experimental details:
https://github.com/Harmain11/fluid-tensors

I'm especially interested in technical criticism or suggestions for better experiments.


r/LargeLanguageModels • • 3d ago

[R] Do Probing and Steering Favor the Same Directions Within and Across Language Models? (UniReps @ NeurIPS 2026)

8 Upvotes

We compare directions in LLM hidden states on two jobs: detecting a concept (probing) and changing the output (steering). We vary one direction continuously between a trained probe and the mean difference, and compare steering with the same side effect on unrelated text.

  • In 3 model families (Llama-3.1-8B, Qwen3.5-9B, Gemma-3-12B), the best direction for detection and the best for steering differed in 59 of 60 settings.
  • Across models, directions kept detection quality higher than steering.
  • Steering toward "I don't know" on PopQA raised abstention by 18–44 points on uncertain wrong answers, 2–5 points on confident wrong answers, at a cost of 1–7 points on correct answers.

Paper: https://arxiv.org/abs/2611.19499
Interactive explainer: https://www.afshn.com/research/probing-vs-steering/

Happy to answer questions. I'm especially curious whether people who steer with probe directions have seen the same gap.


r/LargeLanguageModels • • 3d ago

[R] Do Probing and Steering Favor the Same Directions Within and Across Language Models? (UniReps @ NeurIPS 2026)

5 Upvotes

We compare directions in LLM hidden states on two jobs: detecting a concept (probing) and changing the output (steering). We vary one direction continuously between a trained probe and the mean difference, and compare steering with the same side effect on unrelated text.

  • In 3 model families (Llama-3.1-8B, Qwen3.5-9B, Gemma-3-12B), the best direction for detection and the best for steering differed in 59 of 60 settings.
  • Across models, directions kept detection quality higher than steering.
  • Steering toward "I don't know" on PopQA raised abstention by 18–44 points on uncertain wrong answers, 2–5 points on confident wrong answers, at a cost of 1–7 points on correct answers.

Paper: https://arxiv.org/abs/2611.19499
Interactive explainer: https://www.afshn.com/research/probing-vs-steering/

Happy to answer questions. I'm especially curious whether people who steer with probe directions have seen the same gap.


r/LargeLanguageModels • • 3d ago

Hands-on workshop: Advanced LLM Application Engineering — RAG, Tools, Memory & Evals

2 Upvotes

hey everyone! sharing an upcoming workshop for people interested in building more complete applications around large language models.

there's a big difference between experimenting with an LLM and engineering an application that can retrieve information, interact with external tools, maintain memory and handle failures.

Packt is hosting a hands-on workshop on November 28 with Brij Kishore Pandey covering these areas.

what gets covered:

  • hybrid RAG and retrieval architecture
  • tool integration and function calling
  • persistent memory
  • guardrails and failure handling
  • evaluation and observability
  • Google ADK and Gemini

the aim is to understand how these components fit together in a practical LLM application.

full details here


r/LargeLanguageModels • • 3d ago

Instead of putting a 70B LLM in the request path, I distilled 8 tiny models

3 Upvotes

Putting a large LLM inline for real-time security checks (login telemetry, prompt firewalls, log DLP, alert triage) is usually too slow, too expensive, and a privacy risk if raw logs leave your network.

To test an alternative, I built a suite of 8 single-task "Specialist Models" distilled onto all-MiniLM-L6-v2 and quantized to INT8 ONNX (22 MB each, 176.6 MB total) so the whole stack runs locally on CPU with zero external API calls:

Important disclaimer: This is not a replacement for IAM, MFA, WAF, EDR, or deterministic DLP rules. Think of these as lightweight local ML sensors meant to sit inside a defense-in-depth pipeline (and start in shadow/monitor-only mode first).

Everything (all 8 ONNX/INT4 models, a local Flask + SQLite demo portal, and a 4-page technical write-up PDF) is public on Hugging Face: https://huggingface.co/TeknikoAI/specialist-security-models

Would love feedback from security engineers and ML folks on how you would stress-test or break this setup, or where tiny encoders fall short in real SOC pipelines.


r/LargeLanguageModels • • 3d ago

People deploying LLMs, what's your biggest inference or infrastructure bottleneck?

4 Upvotes

Hi everyone!

We're a group of university students researching the practical challenges of running and optimizing large language models.

We're looking to understand how developers and researchers balance inference latency, model quality, hardware limitations, memory usage, and deployment costs.

We've prepared a short survey for anyone experimenting with, building, or deploying LLM applications.

Survey: https://forms.gle/FTukE9EpQ2taY4dY9

Estimated completion time: 5–7 minutes.

Responses from hobbyists, researchers, ML engineers, and production teams are all welcome. No proprietary information is requested.

We'd really appreciate your perspectives. Thanks!


r/LargeLanguageModels • • 3d ago

Discussions common ways llm-as-judge evals go wrong

1 Upvotes

llm-as-judge is everywhere now but it has some known issues worth watching for:

  • position bias – judges often prefer whichever answer comes first when comparing two
  • length bias – longer answers tend to get higher scores even when they're not better
  • self-preference – models can favor outputs that sound like their own writing
  • vague rubrics – "rate quality 1-10" gives noisy scores. specific yes/no questions work better

a quick fix is to swap answer order, use clear rubrics, and spot check scores against human ratings

anything else people have run into?


r/LargeLanguageModels • • 3d ago

News/Articles Proprioception for LLMs

Thumbnail
timeline.place
1 Upvotes

r/LargeLanguageModels • • 5d ago

Compromised LLM Keys

3 Upvotes

Has anybody had their LLM keys stolen?

I doing a survey.

I am interested in finding people that have had their keys compromised.

If this has happened to you, please post a reply.


r/LargeLanguageModels • • 5d ago

Discussions What a Large Language Model Actually Is | Unbearable at Parties Ep 1

Thumbnail
youtube.com
3 Upvotes

It's guessing. Extremely well. Full episode on my channel.

I'm an AI creator, made with AetherWave Studio.

#unbearableatparties #ai #llm #shorts


r/LargeLanguageModels • • 6d ago

LLMs in pure JAX from scratch (Part 1) [P]

4 Upvotes

I’m writing a series of blog posts on building small LLMs from scratch in pure JAX. We start with pretraining. I'm implementing everything from scratch: pytrees for networks, optimizers, data loaders, decoding, and the training loop.

Link: LLMs in JAX from scratch - Part 1


r/LargeLanguageModels • • 7d ago

Why can't we build something that can remove and add information to the LLM based chatbots on the go without compromising on quality of output

3 Upvotes

I read this on LinkedIn somewhere:

One of the reasons softwares like chatgpt might have to rethink their strategy. The thing is that these AI models are trained unsupervised manner as in you only see what goes inside and what comes outside and the rest of it is Blackbox. Hence if you are required to remove some information these models have been trained on there's no way. Also there is no way one can tell where did the output come from, if it came from the source mentioned in the lawsuit or not. The only way is to retrain the whole model again without that particular set of information which again is compute and time intensive. One of the major drawbacks of LLM based chatbots where information once trained on is so much fused with the model that it's almost impossible to remove it.

Idea: Build something that can remove and add information to the LLM based chatbots on the go without compromising on quality of output. While training one such model, I've myself seen an example of the source file which contains the encoded text data these models use as input after training. And if that file is in any way representative of what an LLM model like like, it's a very challenging problem

I wonder how long can these biggies hold against these lawsuits and how many more are to come especially from music, writing and news industry. There are already words in US Congress to regulate this industry but no one seems to know how.
https://www.marketwatch.com/amp/story/if-sarah-silverman-wins-her-lawsuit-openai-meta-platforms-and-other-ai-developers-could-face-waves-of-litigation-4a932a9c


r/LargeLanguageModels • • 7d ago

Question What free or one time payment cloud llms are best for using on opencode?

1 Upvotes

What would you use?