r/LargeLanguageModels • u/One-Bluebird-6838 • 10m ago
LLM models
What is the best LLM model (GPT, Sonnet etc.) for academic papers, my thesis is based on agent system comparisons
r/LargeLanguageModels • u/TernaryJimbo • Feb 17 '25
r/LargeLanguageModels • u/One-Bluebird-6838 • 10m ago
What is the best LLM model (GPT, Sonnet etc.) for academic papers, my thesis is based on agent system comparisons
r/LargeLanguageModels • u/Handwritten_note • 8h ago
Title: A Practical Roadmap to Understanding Generative AI: From Neural Networks to LLMs
Generative AI is one of the most exciting areas of computer science. But understanding how it actually works requires more than just learning how to use ChatGPT or Stable Diffusion.
Here is a practical roadmap for understanding the core technologies behind modern generative AI.
Start with the mathematical foundations:
\- Probability distributions
\- Maximum Likelihood Estimation (MLE)
\- KL Divergence
\- Gradient Descent and Backpropagation
These concepts help explain how generative models learn patterns from data.
2. Autoencoders and VAEs
Variational Autoencoders (VAEs) learn compressed representations of data called latent spaces.
Important concepts:
\- Encoder and decoder architecture
\- Latent space representations
\- Evidence Lower Bound (ELBO)
\- Reparameterization trick
\- β-VAE and VQ-VAE
3. Generative Adversarial Networks (GANs)
GANs use two neural networks:
\- Generator: Creates synthetic data.
\- Discriminator: Tries to distinguish generated data from real data.
Both networks compete during training, improving the quality of generated samples.
Popular architectures include DCGAN, WGAN-GP, Pix2Pix, CycleGAN and StyleGAN.
4. Diffusion Models
Diffusion models generate images by learning to reverse a gradual noise-adding process.
Important concepts include:
\- DDPM and DDIM
\- U-Net architectures
\- Stable Diffusion
\- Classifier-Free Guidance
\- ControlNet
\- Flow Matching
5. Transformers and Large Language Models
Transformers are the foundation of modern LLMs.
Key concepts:
\- Tokenization
\- Self-attention
\- Positional encoding
\- Scaling laws
\- Decoding strategies
\- KV Cache
\- Quantization
6. Building Real Applications
Once you understand the fundamentals, explore:
\- LangChain and LCEL
\- Retrieval-Augmented Generation (RAG)
\- AI agents
\- Prompt engineering
\- Fine-tuning
\- Model evaluation
\- Responsible AI and guardrails
Some practical projects to try:
My recommendation: Don't just learn the names of different architectures. Understand their mathematical foundations, implement small versions, and experiment with real datasets.
Basic Python and familiarity with neural networks are good starting points.
Happy Learning!
r/LargeLanguageModels • u/dotdev_software • 12h ago
Are companies such as OpenAI and Anthropic using the same models as their customers when they claim they solved equations or made discoveries?
r/LargeLanguageModels • u/MeliousAI_HQ • 1d ago
Running DeepSeek or GLM on your own hardware or with a European host solves the data question. Nothing goes to the model maker, the weights don't phone home.
It doesn't settle what the model was trained to do. NIST found an older DeepSeek model repeating Chinese state narratives in some answers, and CrowdStrike saw R1 write less secure code when prompts touched politically sensitive topics. On the other side, Anthropic's Sleeper Agents work showed hidden behaviour can be trained into any model, and closed US models have changed overnight for everyone.
(Disclosure, we run some of these models on EU servers.)
Would you use a Chinese open-weight model at work if it ran on European servers, or is the origin a dealbreaker?

r/LargeLanguageModels • u/xtrakeekey • 2d ago
I've been comparing open source model with commercial services and the gap feels smaller than it's used to be though it had not disappeared. The open models I've tried can produce a decent shape for clear image, especially when the subject is simple and well lit.
Where they tend to fall behind is in the finish, like texture quality,small details and how clean the mesh is when it arrived . The gap matters less when you are comfortable cleaning things up yourself, if you need result that is ready to use in minimal fuss.
The generated model is only starting point, retopology, mesh repair and texture pass may still follow. I've used tripo studio as my commercial reference point while testing and which help me clearly see where the open models are closed and where they are still catching up.j would check before choosing, since both the sides keep changing. I only use reference image I made or permission to use will check any character, logo and third party material. Which open model had surprises you the most when you compare side by side with paid services?
r/LargeLanguageModels • u/matsbror • 3d ago
I am trying to understand how large language models are used in practice and particularly the rise of open models. I would appreciate if you could take some minutes and answer the survey in the link.
r/LargeLanguageModels • u/SoftMonk2026 • 3d ago
Hi Everyone,
I'm new here. I'm actually testing a tool on AI, so anyone familiar or having knowledge on AI end-to-end can join me on this project.
It won't take long. I will tell you how I will secure communication between AI agent and LLM, and you will help me with building that AI agent-to-LLM connection and fix any breaks.
r/LargeLanguageModels • u/rexShail • 4d ago
https://www.youtube.com/watch?v=i7XMlCImUSE
I built a Hello World RAG App in Python
Normal LLM = Answers from training data (can hallucinate)
RAG LLM = Answers from YOUR documents
I asked it Saudi it didn't say Saudi Arabia.
It said "Contractor at Saudi Aramco" - because it read MY LinkedIn PDF.
This is how it works:
Tech: Python + LangChain + ChromaDB + Groq + Gemini Embeddings
r/LargeLanguageModels • u/Familiar-Sign8044 • 5d ago
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 • u/mrphil85 • 5d ago
I tested this by asking ChatGPT and Claude for a 3D model in the most direct way I could, and the answer was more nuanced than a yes or no. Neither chatbot handed me a finished mesh file in my test. What they did well was help me plan the model, write a prompt, and generate code or a script that another tool could use. ChatGPT gave me a clear description and a structured plan for a simple object, while Claude helped me refine the wording and think through the proportions. The actual geometry came from a dedicated generator or from code I ran in a 3D app. That split makes sense once you see how the tools work. A chatbot is strong at language and reasoning, and a 3D generator is built to turn an image or a text description into a mesh with texture. Generation is only a starting point in that second step too. Retopology, mesh repair, part splitting, and texturing may still be needed before the model is useful. I compared the two chatbots by giving them the same task and reading how useful the output was for the next step. Tripo Studio documents a dedicated image to 3D and text to 3D flow in its docs, so I used that as the comparison point for the geometry step. If your reference image shows a logo, character, or artwork you did not create, check the rights before using the result commercially. Have you found a chatbot workflow that reliably hands off to a generator, or does it stay a planning aid for you?
r/LargeLanguageModels • u/minedroid1 • 6d ago
Hi everyone, I recently made a satire AI model and released its weights on huggingface, as well as all of its datasets. It has 4B parameters, and was fine-tuned on top of Qwen3.5-4B-Base. From my research, this is the only model of its kind.
You can download it here (I can't afford a public API or chat interface for it).
r/LargeLanguageModels • u/EVA-prime • 6d ago
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:
The infrastructure around them
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
What I'm working towards
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
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 • u/brightmoon442 • 6d ago
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.
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 • u/Strict_Novel1973 • 6d ago
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 • u/LK_Lucascc • 7d ago
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:
Paper & code links are in the first comment. Curious what others think about modular unimodal stitching vs. end-to-end multimodal pretraining!
r/LargeLanguageModels • u/Early_Protection6814 • 7d ago
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 • u/Own_Scientist1634 • 7d ago
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 • u/Familiar-Sign8044 • 7d ago
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 • u/POOVENDHAN_KIDDO • 8d ago
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:
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:
Thanks in advance!
r/LargeLanguageModels • u/MeliousAI_HQ • 8d ago
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 • u/False_Expression5610 • 8d ago
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.
I ran an initial experiment and then tested another 64 questions with additional controls.
In the 64-question experiment:
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.
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.
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.
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 • u/False_Expression5610 • 9d ago
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.
I ran an initial experiment and then tested another 64 questions with additional controls.
In the 64-question experiment:
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.
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.
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.
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 • u/Large-Beginning-9388 • 10d ago
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.
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 • u/Large-Beginning-9388 • 10d ago
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.
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.