Skip Navigation

Large Language Models

Members
0
Posts
47
Created
3 yr. ago

Browser-based WebLLM Chatbot

To help users of my app, it was important to document the details around the "how it works". the docs were easy enough using docusaurus + AI. i can then index that data (like used in the docusaurus search). i framed this as like a chatbot so that it can be intuitive for users who have questions. at this point it was really just a fancy autocomplete. i started to investigate running a local LLM to perhaps offer a more conversational experienced (and hopefully better suggestions)? im using WebLLM on a browser and it seems to work "reasonably" well. i wired it up and set it up so users could select an LLM down download for offline use. the experience varies between devices and models used. there are models that are 19mb... they are unsable as far as i can tell. there are some ~1gb models which are better but understandable slow. its great that the 1gb model can "show me the bubble-sort in rust", but i want something "dumber" and smaller. something can can take advantage the data ive already indexed. something that can respond "quickly enough" for a conversational flow. perhaps better i should make a verbose set of reponse templates to perhaps add fancier autocomplete capabilities. are there any models out there you can suggest for me to investigate and compare? note: the project is experiemental and unstable. its far from finished. im just trying things out and this approach with LLM's might just be a waste of time. if you want to test it out, you can try: https://app.glitr.io/ai

Mistral AI releases 1,000B MoE(A50) 'Le Chonk': A Massive AI Model Named After a Cat Meme

———

title: "Mistral AI Drops 'Le Chonk': A Massive AI Model Named After a Cat Meme" url: "https://decrypt.co/380192/mistral-ai-drops-le-chonk-massive-ai-model-cat-meme" author: "Jose Antonio Lanz"

le-chat

In brief

• Mistral launched Large 4 on Oct. 6, a 1-trillion-parameter model that activates 49 billion parameters per query and costs $1.36 per million input tokens and $4.18 per million output tokens. • The nickname "Le Chonk" follows the "Le Chaton Fat" meme from June, and Mistral says it will release the model's weights by the end of October. • On Finance Agent v2, the launch chart shows Large 4 at 54.7, ahead of GPT-6 Astra at 53.5 but behind Claude Opus 5.5 at 58.6. Paris-based Mistral AI launched Mistral Large 4 on Tuesday, an AI model with 1 trillion parameters. That is the kind of system behind chatbots like ChatGPT and Claude, as parameters are the adjustable numbers it tunes during training—more of them generally means more capacity to learn, and more expensive to run. “[Mistral Large 4] is at the frontier of open models, and by far the strongest open-weight model from the US or Europe,” Mistral AI’s Chief scientist Guillaume Lample, wrote on X. Not all of those parameters work at once. Large 4 uses a "mixture of experts" design, meaning the model routes each question to a few specialist sub-networks, so only 49 billion parameters fire per answer. Mistral's last flagship, Large 3, did the same with 41 billion active out of 675 billion. The whole “Le Chonk” nickname has a backstory. In June, after Mistral renamed its Le Chat assistant to Vibe, fans on Reddit and X invented a fictional model called Le Chaton Fat—roughly "the fat kitten"—with 30 trillion parameters, 1,000 meows per second, and fake benchmarks claiming it beat Claude Fable 5. CEO Arthur Mensch played along, replying that the model was really called "le gros chaton," French for "the big kitten." Mistral then added a cartoon cat to its Vibe website. Its real launch post now lists the model as, "very officially," le Chonk. Mistral sells "sovereign AI"—models a country or company can own and run without handing its data to outside firms. Saudi Arabia's state-backed HUMAIN signed a deal worth hundreds of millions of euros in August with this company for this exact reason. Mistral raised a €3 billion ($3.37 billion) Series D—a funding round that sells shares to investors—in September at a valuation above €21 billion ($23.6 billion), led by Samsung. Mistral says Large 4 is the first milestone on the roadmap that money funds. Le Chunk costs $1.36 per million input tokens and $4.18 per million output tokens—the chunks of text, roughly three-quarters of a word each, that AI companies bill by. Claude Opus 5.5 charges $4 and $20, while GPT-6 Astra charges $10 and $50. That puts Large 4 at about a third of Opus 5.5's price on input and a fifth on output. Against Astra, it is roughly a seventh and a twelfth.

What the benchmarks say

Mistral's announcement mostly benchmarks Large 4 against Chinese open-weight models—DeepSeek V4 Pro, Kimi K3, GLM-5.3, and Qwen3.8 Max—and "open-weight" means anyone can download and run the model. Claude and GPT show up in only a handful of comparisons, and the newest Claude, Opus 5.5, appears only in a cybersecurity claim. In a blind human evaluation of coding quality by Surge AI, Mistral Large 4 ranked second of five models with 3.74 out of 5, behind Claude Opus 5's 4.22. AutomationBench hands an AI 657 chores in simulated business software—finance, HR, sales, support—and scores the share of each task's goals it completes, with zero credit if it breaks a rule. Large 4 scored 59.9 points. On Artificial Analysis's board, Claude Sonnet 5.5 hit 71.8, Opus 5.5 hit 69.5, and Gemini 4 Argon topped the page at 77.5 on that same benchmark. On DeepSWE 1.1, which is one of the benchmarks developers check out when trying to assess how good a model is at coding, Large 4 scored 62. That tops GLM-5.3 at 61 and DeepSeek V4 Pro at 57 but trails Kimi K3's 68. Datacurve's own leaderboard has GPT-6 Astra and Claude Opus 5 at 74. Mistral says it will release Large 4's weights—the trained numbers that make the model work—by the end of October, which would let outside developers download the model and test those claims themselves.

Lawsuit says Anthropic, OpenAI, SpaceXAI and Google made illegal agreement on AI slowdown

———

title: "Lawsuit says Anthropic, OpenAI, SpaceXAI and Google made illegal agreement on AI slowdown" url: "https://apnews.com/article/antitrust-lawsuit-ai-slowdown-anthropic-openai-spacexai-google-960af4308161eaf4ed13c383b0ce1c1b" author: "Kaitlyn Huamani"

A new lawsuit claims Anthropic, OpenAI, SpaceXAI and Google made an illegal deal to slow the pace of their respective AI development. The lawsuit, which was filed Friday in the U.S. District Court for the Northern District of California, argues that the leading AI companies violated antitrust laws when they agreed to coordinate slowdown efforts, and that doing so would reduce the value consumers get for paid AI subscriptions. The coordination largely took place on Sept. 12, the lawsuit argues, when Anthropic CEO Dario Amodei published an essay urging for industrywide cooperation on decelerating advancements in favor of enhanced safety measures. That same day, OpenAI CEO Sam Altman, SpaceXAI CEO Elon Musk and Google DeepMind’s co-founder and chair Demis Hassabis each publicly responded to Amodei’s proposals in agreement. But the lawsuit also alleges that the coordination began to take shape months earlier. It points to a statement from July 2026 that high-ranking employees from several of the leading AI labs signed that acknowledged the “intense competitive pressure not to unilaterally slow” development. That statement called on the government to support a global effort to slow automated AI development. It is clear that an agreement among the chief rivals in AI that their progress “should be slower than competition would otherwise produce has an anticompetitive effect on consumers,” the plaintiffs argue. Lawyers representing four named plaintiffs, who pay for subscriptions to ChatGPT, Claude, Grok or Gemini, are bringing the lawsuit on behalf of a proposed nationwide class of other paid subscribers to those services. The plaintiffs don’t object to the companies individually deciding to slow their own progress in favor of safety. They instead argue in the complaint that antitrust laws forbid them from taking the “shortcut” of agreeing to “substitute collective restraint for individual accountability.” A competitive market allows for responsibility and genuine progress, the lawsuit argues. “AI will quickly spin out of human control and could kill us all if we allow AI safety and protocol... to be controlled by private self-serving agreements between the world’s most powerful ‘for profit’ technology companies,” said Nick Rowley, the lead attorney for the plaintiffs. Representatives for Anthropic, OpenAI, Google and SpaceXAI did not immediately respond to a request for comment Saturday. In his initial essay proposing the slowdown, Amodei acknowledged potential antitrust challenges, writing that it would be helpful for the U.S. government to mediate “or at least enable” these cross-lab discussions. The government wouldn’t need to participate, he wrote, but it would need to “issue a narrow waiver for certain kinds of safety conversations.” In response, Altman said on social media that OpenAI welcomes the idea of a “federal framework that sets consistent safety requirements,” but said “we do not believe we need to wait for an antitrust exemption or legislation to begin the work of providing this confidence.” While the recent conversations about pacing development were spurred by increasing concerns about AI evading human control, several leaders in the AI space have long talked about developing a shared set of standards or otherwise coordinating to ensure safety efforts remain paramount. The plaintiffs in the lawsuit contend they are not against the AI companies asking Congress, the White House or any other agency to develop AI regulation, nor are they against the companies asking for an antitrust exemption. But achieving that kind of collaboration with the federal government could be an uphill battle. President Donald Trump rejected the calls for regulation on social media. He has claimed that any efforts to limit the technology are part of a “conspiracy.” He called into question why the industry leaders would be calling for regulation that, he says, “if strongly implemented, will drive them into oblivion and bankruptcy.” Trump said Saturday on social media that he is forming an AI task force and will appoint an “AI czar,” but he provided scant detail. The Trump administration has been vocal about wanting American AI labs to outpace and excel against Chinese competition. While several Democratic leaders and candidates have called for sweeping action on AI regulation, Republicans have largely mirrored Trump’s position. Sen. Josh Hawley, a Republican from Missouri, said in a recent Senate hearing that “there is no world” in which he would agree to give “the most powerful companies in the history of the world” an exemption from antitrust laws to collaborate, arguing that they could collude together and stifle competition.

Does Edge0's 2.9 GB peak for a 35B MoE hold up once the prompt gets long?

image I went through the Edge0 repo after the clip of a 35B model on an iPhone, and I want to check my reading with people who actually run local models. No affiliation, just curious. Edge0 (Edge0-AI, Apache 2.0, released the other day) is a streaming inference engine with two preview MoE models, Edge0-35B-A3B on a Qwen3.5-MoE base and Edge0-8B-A1B on Ling 3.0. The mechanism is expert offload: the 4-bit checkpoint stays on the SSD, expert weights are mmapped, and only the routed experts (4 of 256 per token, about 3B active of 35B) get read per token. The project reports 2.9 GB peak for the 35B and 1.0 GB for the 8B at short context on a Mac mini M4 Pro, with decode at 14.9-17.7 and 23.9-25.3 tok/s. The 35B checkpoint is 19.6 GB on disk. My reading, which is the part I want checked: 3B active at 4 bits is about 1.5 GB, and at 15 to 18 tok/s a cold read of that per token would need over 20 GB/s, so most expert reads must be hitting the OS file cache. That makes "peak active memory" the process's resident set, with the cached pages outside it, and a 24 GB mini has room to hide a lot of the checkpoint there. What shipped is MLX on Apple Silicon Macs only, the iPhone is the demo video, and I could not find the "iPhone 15 Pro and newer" floor on any primary page 🧐 Repo: https://github.com/Edge0-AI/edge0/ For anyone who has tried it on a Mac with less memory than that mini: does the 2.9 GB peak hold once the KV cache grows past a few thousand tokens, or does it start swapping?

Deleting an erroneous message did not always repair the LLM's context

I tested a narrow context-management question: after an incorrect claim has propagated through several conversation turns, is deleting the original error enough? The pilot used synthetic, objectively scored tasks represented as context DAGs. Across four model endpoints, pollution derailed 72 cases that had been answered correctly with clean context. Repair recovered: • 68/72 after deleting only the erroneous source; • 71/72 after deleting the source and recomputing descendants in dependency order; • 72/72 after removing the contaminated subgraph. The interesting failures occurred when stale downstream turns still repeated or depended on the deleted claim. The source was gone, but its consequences were still present in the next request. I do not interpret this as a general model ranking. Each endpoint was sampled once at temperature zero, the tasks are synthetic, and provider-default reasoning behavior was not normalized. What I would most like to test next is whether the same pattern holds for local models and different quantization levels. Would you expect smaller or more heavily quantized models to be more sensitive to residual context? Full report: https://chenxiachan.github.io/thoughtdag/research/context-repair-pilot-v1/ Disclosure: I designed this benchmark and maintain ThoughtDAG, the open-source reference interface used to visualize and edit the context graphs. image

chenxiachan.github.io

A Strategic Coordination Framework of Small LMs Matches Large LMs in Data Synthesis

——— title: "GX-XinGao/GRA: The Code and Script of "David's Slingshot: A Strategic Coordination Framework of Small LLMs Matches Large LLMs in Data Synthesis"" url: "https://github.com/GX-XinGao/GRA" author: "GX-XinGao"

https://arxiv.org/html/2504.12322

A Strategic Coordination Framework of Small LMs Matches Large LMs in Data Synthesis

We propose GRA, a multiple small LMs collaborative framework that aggregats specialized roles across small LMs can mimic the iterative refinement and quality control typically achieved by a single large LM, in which multiple small LMs assume distinct roles—Generator, Reviewer, and Adjudicator to simulate a peer-review-inspired data synthesis pipeline: 1. Generator, which proposes candidate data samples. 2. Reviewer, which evaluates quality and diversity through iterative critiques. 3. Adjudicator, which resolves conflicts to finalize outputs. image Through experiments across multiple benchmarks, we demonstrate that GRA-produced data matches or exceeds the quality of single large LM outputs, e.g., Qwen-2.5-72B-Instruct. Our results challenge the necessity of monolithic large models for high-quality data synthesis, advocating instead for strategic coordination of smaller agents. image image We release the all the GRA generated datasets and six fine-tuned model.

 
Dataset/Model | HuggingFace🤗
--- | ---
GRA | link
GRA-Refine | link
Qwen-2.5-7B-GRA-Alpaca | link
Qwen-2.5-7B-GRA-WizardLM | link
Qwen-2.5-7B-GRA-Condor | link
Llama-3.1-8B-GRA-Alpaca | link
Llama-3.1-8B-GRA-WizardLM | link
Llama-3.1-8B-GRA-Condor | link

🎯 Quick Start

Install the dependencies:

 
conda create -n GRA python=3.10
conda activate GRA
git clone https://github.com/GX-XinGao/GRA.git
cd GRA
pip install -r requirements.txt

# Install LLaMA-Factory
cd ~/
git clone https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
pip install -e ".[torch,metrics]"

# Install packages for evaluation
cd ~/
git clone  https://github.com/open-compass/opencompass opencompass
cd opencompass
pip install -e ".[vllm]"

📚 Data

Load the data from GRA, then convert each split to .json file and register the data information according to LLaMA-Factory.

🤖 Training

Our training codes depend on LLaMA-Factory.

 
# Specify the dataset to be trained
export DATASET= GRA-Alpaca
# The path of base model
export MODEL_PATH=pretrained_model_path
bash train/train.sh

📊 Evaluation

Our evaluation codes depend on opencompass. You need to first download the model from HuggingFace, or SFT the model on your own. Then run the following evaluation script:

 
export MODEL_NAME=your_sft_llama_model_path
bash llama_test.sh

export MODEL_NAME=your_sft_qwen_model_path
bash qwen_test.sh

🙏 Acknowledgements

Many thanks to

Citation

If you find our code, model, or data are useful, please kindly cite our paper:

 
@article{gao2025strategic,
  title={A Strategic Coordination Framework of Small LLMs Matches Large LLMs in Data Synthesis},
  author={Gao, Xin and Pei, Qizhi and Tang, Zinan and Li, Yu and Lin, Honglin and Wu, Jiang and Wu, Lijun and He, Conghui},
  journal={arXiv preprint arXiv:2504.12322},
  year={2025}
}

cascadia distributed inference for intel

Cascadia distributes LLM inference across Intel laptops, desktops, and AI PCs. Shard a model across the machines you already have and serve it through an OpenAI-compatible API. No cloud or NVIDIA GPUs required. Frontier models don't fit on a single laptop. Cloud APIs are expensive, opaque, and require sending your data offsite. Cascadia lets you point a few Intel machines at each other and run models that none of them could handle alone. press https://www.businesswire.com/news/home/20260813129096/en/Cascadia-Launches-Distributed-AI-Inference-for-Intel-Hardware

github.com

paper: ZEDA for MoE

arxiv Post-Trained MoE Can Skip Half Experts via Self-Distillation https://huggingface.co/TsinghuaC3I Tsinghua University Mixture‑of‑Experts (MoE) basics An MoE layer contains many “expert” feed‑forward sub‑networks, but for each token only a small subset is activated by a router. This sparse activation lets the overall model grow very large while keeping the per‑token compute bounded. Dynamic MoE variants go further by letting the router decide, input‑dependently, how many experts to use, reducing computation for easy tokens. Problem the paper addresses Existing dynamic‑MoE techniques usually require training the model from scratch or performing task‑specific fine‑tuning. Consequently, a fully trained static MoE model cannot be easily turned into a dynamic one without risking loss of the routing knowledge that was already learned. This limits practical deployment because inference costs remain high even when many tokens could be handled with fewer experts. How the new method (ZEDA) works 1. Zero‑Expert injection – a parameter‑free “zero‑output” expert is added to every MoE layer. These experts produce no contribution unless selected, allowing the model to skip computation for certain tokens. 2. Two‑stage self‑distillation – • Stage 1 (SFT): the augmented model is fine‑tuned while staying close to the original outputs. • Stage 2 (OPD): the original static MoE acts as a frozen teacher; the student (augmented model) learns via self‑distillation, guided by a group‑level balancing loss that keeps expert loads even. This stabilises the conversion from static to dynamic architecture without needing a new pre‑training run. Benefits emphasized by the authors • Computation reduction: > 50 % of expert FLOPs are eliminated, meaning many tokens bypass expert computation entirely. • Small accuracy loss: performance drops only marginally across a suite of 11 benchmarks (math, code, instruction following). • Speed‑up: about 1.2 × end‑to‑end inference acceleration is observed. • Low adaptation cost: ZEDA requires only a brief self‑distillation fine‑tuning phase, avoiding the expense of full re‑training. • Compatibility: because zero‑experts are parameter‑free, the method can be applied to existing large MoE models without architectural redesign.

summary of mentioned research/engineering directions for llm tech

• Linear-attention and hybrid architectures — Replace or combine standard attention with fixed-state mechanisms to reduce inference cost and KV-cache memory. • Sparse attention — Selectively examines relevant tokens instead of the entire context, aiming to preserve accuracy while improving speed. • Gated attention and wider residual streams — Lets later layers retrieve earlier intermediate representations directly, reducing information loss and redundant processing. • Attention Residuals — Applies attention across layers, allowing the model to reuse useful computations such as detected entities or arithmetic representations. • Muon optimizer — A training optimization method intended to improve efficiency and potentially deliver larger gains than architectural changes alone. • Next latent prediction — Predicts future latent representations rather than only future tokens, potentially improving on multi-token prediction. • MIX-STQ compression — Uses advanced quantization/compression to substantially reduce model size while attempting to preserve usable quality. • Fused K/V tensors — Combines key and value representations to reduce attention-related memory and computational overhead. • Mamba/Transformer hybrids — Combine state-space processing with attention to make long-context inference faster and less memory-intensive. • Qwen’s QSA-style attention — Attempts to improve both attention efficiency and long-context scalability through a more selective attention design. • Training-data improvements — Better-curated or augmented datasets can produce major gains in reasoning and long-context abilities without changing the model architecture. • Advanced post-training — Fine-tuning and reinforcement-based methods can substantially improve coding, agentic behavior, and even introduce new capabilities. • Hierarchical reasoning models (HRMs) — Use multiple levels of iterative reasoning rather than relying solely on conventional Transformer processing, potentially achieving strong results with small models. • Latent reasoning — Performs reasoning in continuous vector representations instead of discrete token sequences, allowing more information to pass between reasoning steps. • Pretrained latent reasoning — Uses hierarchical variational autoencoders to incorporate latent reasoning during pretraining rather than adding it only through expensive post-training. • Test-time learning — Updates model weights during inference so the model can adapt to new information without conventional retraining. • Pluggable knowledge modules — Separates updatable factual knowledge from core reasoning abilities, potentially enabling cheaper knowledge refreshes than full retraining. • PrismML Bonsai — A promising but unspecified architecture referenced without explanation; likely merits further investigation. • Autoregressive–diffusion hybrids — Could generalize next-token prediction with iterative denoising, potentially combining precise sequencing with parallel generation. • Built-in long-term memory — Gives models persistent, task-dependent recall of past actions and information without relying solely on external RAG systems. • Continuous learning — Makes updating knowledge a native model capability rather than an external harness or periodic fine-tuning process. • Looped Transformers — Reuses a smaller set of weights across multiple passes, reducing memory traffic and GPU idle time while improving compute efficiency. • Weight reuse as scaling — Suggests that repeatedly processing compact models may outperform simply increasing parameter counts, especially on bandwidth-limited hardware. • Diffusion-based language models — Generates or refines sequences through iterative denoising, offering a possible alternative to strictly left-to-right decoding. • Spiking neural networks (SNNs) — Model neurons and synapses more explicitly, aiming for systems that learn continuously, form memories, and develop capabilities through interaction. • Reserved memory parameters with continual LoRA updates — Allocates model capacity for regularly updated knowledge, such as a codebase, without retraining the entire model. • Recirculation architectures — Repeatedly feeds representations through the model to improve information flow and increase representational capacity. • Attention-mechanism trade-offs — Linear attention is most advantageous at very long contexts, while retaining some full-attention layers can preserve exact recall; the optimal layer mix is a central design decision. • Speculative decoding — Uses a smaller or specialized model to propose tokens that a larger model verifies; it can greatly increase generation speed, though the original post largely excluded it as an already-known technique.

webGPU kernels

" Run WebGPU compute kernels drawn from real AI workloads directly on your hardware and earn a personalized card built for your device. On top of that, we're open-sourcing hundreds of these WebGPU kernels, our first step toward making browser inference as fast as physically possible. Contributed results show how they perform across real hardware and help make them faster. Benchmark your GPU: https://webgpu-kernels-fleet.hf.space/ Blog post: https://huggingface.co/blog/webgpu-kernels Kernels: https://huggingface.co/webgpu-kernels/kernels "