Перейти к содержимому
ViewSocialПоиск аккаунтов
Отчеты по аккаунтуПосмотреть профиль X

В отчёте 210 публикаций · 27 июн. 2025 г. — 30 нояб. 2026 г. (UTC)

Последователи
—
Уровень вовлеченности —
Ср. просмотров на пост
105K
Медиана просмотров 64,5K
Ср. лайков на пост
1,25K
Доля лайков 1,2 %
Ср. ответов на пост
48,8
Доля ответов 0,0465 %
Ср. репостов на пост
158
Доля репостов 0,151 %
Ср. сохранений на пост
839
Доля сохранений 0,8 %
AI-анализ

Open-Source Large Model Architecture Analysis and Comparison

Типичный × 4,5

A lot of hype around OpenAI's Astra model here on my timeline today. Apparently, this goes back to a new article from The Information, which said Astra is a "recurrent depth or looped transformer".

It's always interesting to read about new or different approaches (including rumors about what the closed labs may be up to), but let's debunk this a bit. About 2 months ago, I shared the architecture details of Nanbeige, for example, where "Nanbeige4.2-3B is pretrained from scratch on 28T tokens with a Looped Transformer that reuses the layer stack to increase capacity without adding parameters." Yes, that's it. The looped transformer idea is just reusing layers in the transformer block. In the case of Nanbeige, the main idea is to reuse the same 22-layer stack (=transformer block) twice instead of once. So, effectively it extends the 22-layer architecture to 44 layers, but without duplicating the weights. In simple terms, this roughly doubles the size of the model (if we ignore the embedding and output layers for a second). But instead of requiring 2x the storage and RAM to host this model, it stays at the same size since we reuse the components. However, it's almost 2x as expensive in terms of compute, because we run the embedded text through almost 2x as many layers. Why? In the Nanbeige 4.2 technical report, the researchers found that two passes gave the best trade-off and retained about 75% of the token efficiency of a standard architecture. (More passes gave barely any gains but made the training much slower and much more expensive.) While, as far as I know, Nanbeige 4.2 is the first notable open-weight model that adopted this approach, the idea goes back to the NeurIPS paper "Mixture-of-recursions: Learning dynamic recursive depths for adaptive token-level computation". Actually, this paper proposes a mechanism that is a bit more sophisticated by adding a learned router that determines whether each token receives one, two, or more passes. So, easy tokens can exit early while harder tokens receive additional computation. In sum, Astra may be a really good model, but this shouldn't be about this "looped transformer aspect," which is just a tiny architectural tweak. Also, the statement "the new technique works in a way that obscures some or all of the AI's reasoning, otherwise known as 'chain-of-thought'" is not necessarily true with respect to the looped transformer method. It's possible that The Information journalist refers to some other technique or misunderstood the looped transformer method. Reusing layers does not by itself suppress visible chain of thought. It adds computation in hidden states before the next token is emitted, just as ordinary transformer layers do. But based on the information we have, the only plausible interpretation here is that if a model uses more of these recurrent passes, it may need to generate fewer intermediate reasoning tokens. So then more of its computation happens in latent activations that cannot be read as text. But we would get the same effect if we were scaling up the model size, like GPT 5.6 Luna -> GPT 5.6 Sol.

Изображение публикацииЗагрузка изображения…
397K4,1K1383,43K
Посмотреть исходное сообщение
Типичный × 4,5

The Kimi K3 architecture figure for yesterday's big open-weight model release, along with some observations and thoughts.

1. Yes, it looks relatively complicated, but it's essentially a scaled-up production version of their Kimi Linear model they released last year (scaled up from 48B -> 2.8T; K3 is by far the biggest open-weight model right now) 2. The one new component compared to Kimi Linear is the LatentMoE. I omitted it in the figure below since it's already very crowded, but that's essentially the same LatentMoE as in Nemotron 3 Ultra (you can find it in my LLM Architecture Gallery if you are curious). The idea here is to compress (down-project) large linear layers similar to multi-head latent attention. 3. Kimi K3's overall trend (similar to Nemotron 3, DeepSeek V4, and others) is also towards better inference efficiency. That is, there are many components that replace existing components with efficiency-tweaked versions. I.e., MoE -> LatentMoE, regular attention -> multi-head latent attention and Kimi Delta Attention. (I also have short tutorials and write-ups in my gallery if you are curious about additional details). 4. The one component change that is not an efficiency tweak is attention residuals. Like DeepSeek V4 improved the residual path with mHC (manifold-constrained Hyper-Connections), attention residuals are a way to improve the residual path, but it works a bit differently. I.e., mHC made the residual path wider. Attention residuals (also already part of Kimi Linear) connect the residuals across layers; the connection itself uses an attention score for an important/contribution weight. According to the report, it improves the validation loss and downstream performance (a bit) consistently and adds about 4% in training cost and 2% in inference cost. 5. Interestingly, Kimi K3 got rid of all RoPE layers and uses NoPE (No Positional Embeddings) everywhere instead. (Again, this is inherited from Kimi Linear). In other architectures, the recent trend was towards RoPE in local attention layers (like sliding window attention) and NoPE in the global layers. There were a few architectures that only used NoPE everywhere, but this is the first frontier-level one as far as I know. 6. Kimi K3 now also has native multimodal support, which is great! There are several other interesting training tidbits in the technical report, but that's it from the architecture front so far. A really great release overall.

Изображение публикацииЗагрузка изображения…
240K4,06K1052,4K
Посмотреть исходное сообщение
Типичный × 4,4

While waiting for DeepSeek V4 we got two very strong open-weight LLMs from India yesterday.

There are two size flavors, Sarvam 30B and Sarvam 105B model (both reasoning models). Interestingly, the smaller 30B model uses “classic” Grouped Query Attention (GQA), whereas the larger 105B variant switched to DeepSeek-style Multi-Head Latent Attention (MLA). As I wrote about in my analyses before, both are popular attention variants to reduce KV cache size (the longer the context, the more you save compared to regular attention). MLA is more complicated to implement, but it can give you better modeling performance if we go by the ablation studies in the 2024 DeepSeek V2 paper (as far as I know, this is still the most recent apples-to-apples comparison). Speaking of modeling performance, the 105B model is on par with LLMs of similar size: gpt-oss 120B and Qwen3-Next (80B). Sarvam is better on some tasks and worse on others, but roughly the same on average. It’s not the strongest coder in SWE-Bench Verified terms, but it is surprisingly good at agentic reasoning and task completion (Tau2). It’s even better than Deepseek R1 0528. Considering the smaller Sarvam 30B, the perhaps most comparable model to the 30B model is Nemotron 3 Nano 30B, which is slightly ahead in coding per SWE-Bench Verified and agentic reasoning (Tau2) but slightly worse in some other aspects (Live Code Bench v6, BrowseComp). Unfortunately, Qwen3-30B-A3B is missing in the benchmarks, which is, as far as I know, is the most popular model of that size class. Interestingly, though, the Sarvam team compared their 30B model to Qwen3-30B-A3B on a computational performance analysis, where they found that Sarvam gets 20-40% more tokens/sec throughput compared to Qwen3 due to code and kernel optimizations. Anyways, one thing that is not captured by the benchmarks above is Sarvam’s good performance on Indian languages. According to a judge model, the Sarvam team found that their model is preferred 90% of the time compared to others when it comes to Indian texts. (Since they built and trained the tokenizer from scratch as well, Sarvam also comes with a 4 times higher token efficiency on Indian languages.

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
257K4K421,37K
Посмотреть исходное сообщение
Типичный × 3,3

April was a pretty strong month for LLM releases: - Gemma 4 - GLM-5.1 - Qwen3.6 - Kimi K2.6 - DeepSeek V4

All are now added to the LLM Architecture Gallery. More details once I am fully back in May! https://t.co/HDYbWi2pcc

Изображение публикацииЗагрузка изображения…
128K2,96K741,26K
Посмотреть исходное сообщение
Типичный × 2,8

Updated & turned my Big LLM Architecture Comparison article into a narrated video lecture.

The 11 LLM architectures covered in this video: 1. DeepSeek V3/R1 2. OLMo 2 3. Gemma 3 4. Mistral Small 3.1 5. Llama 4 6. Qwen3 7. SmolLM3 8. Kimi 2 9. GPT-OSS 10. Grok 2.5 11. GLM-4.5 https://t.co/POjLPWainM

Загрузка видео…
200K2,55K413K
Посмотреть исходное сообщение
Типичный × 2,8

I put together a mega write-up on GPT-6 Astra & looped transformers.

How looped transformers / recurrent depth works, cost-tradeoffs, whether it hides reasoning traces, with lots of figures and a tour of recent looped transformer research. https://t.co/VR6HaPFVXH

Изображение публикацииЗагрузка изображения…
173K2,51K1041,88K
Посмотреть исходное сообщение
Типичный × 2,5

From GPT to MoE: I reviewed & compared the main LLMs of 2025 in terms of their architectural design from DeepSeek-V3 to Kimi 2.

Multi-head Latent Attention, sliding window attention, new Post- & Pre-Norm placements, NoPE, shared-expert MoEs, and more... https://t.co/oEt8XzNxik

208K2,26K482,11K
Посмотреть исходное сообщение
Типичный × 2,4

Now we know: The popular Ox Alpha LLM was GLM-5.3-Flash...

Compared to GLM-5.2, this new GLM-5.3-Flash model uses: - a Kimi Linear-style 3:1 (super*) hybrid attention pattern with 34 Kimi Delta Attention layers (KDA) and 11 Multi-heat Latent Attention (MLA) / DeepSeek Sparse Attention (DSA) layers; - a scaled-down GLM-5.2-style sparse MoE backbone, going from 744B-A40B to 320B-A18B; - a DeepSeek V4-style mHC residual path with four parallel streams; - plus a native vision encoder (not shown). * "Super hybrid" because both KDA and MLA/DSA are "efficient" components. E.g., Kimi only uses KDA + full attention GQA, DeepSeek V3.2 uses DSA + full attention MLA. PS: Sry for the excessive tech jargon. Explainers on all these components (MLA, DSA, KDA, mhC, etc.) in my LLM Architecture Gallery PPS: Haha, maybe justification for getting that pricey Mac Studio M5 Ultra 256 GB / 512 GB to run this locally...

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
144K2,18K561,04K
Посмотреть исходное сообщение
Типичный × 2,4

Hold on a sec, Mistral 3 Large uses the DeepSeek V3 architecture, including MLA?

Just went through the config files; the only difference I could see is that Mistral 3 Large used 2x fewer experts but made each expert 2x large. https://t.co/jHxLKHBetr

Изображение публикацииЗагрузка изображения…
287K2,18K79947
Посмотреть исходное сообщение
Типичный × 2,4

From the Hierarchical Reasoning Model (HRM) to a new Tiny Recursive Model (TRM).

A few months ago, the HRM made big waves in the AI research community as it showed really good performance on the ARC challenge despite its small 27M size. (That's about 22x smaller than the smallest Qwen3 0.6B model.) Now, the new "Less is More: Recursive Reasoning with Tiny Networks" paper proposes Tiny Recursive Model (TRM), which a simpler and even smaller model (7M, 4× smaller than HRM) that performs even better on the ARC challenge. 🔹 What does recursion mean here? TRM refines its answer in two steps: 1. It updates a latent (reasoning) state from the current question and answer. 2. Then it updates the answer based on that latent state. Training runs for up to 16 refinement steps per batch. Each step does several no-grad loops to improve the answer, followed by one gradient loop that learns from the full reasoning process. By the way, the question and the answer are grids of discrete tokens, not text. (E.g., 9×9 Sudoku and up to 30×30 ARC and Maze.) 🔹 And how does it differ from HRM? In short, HRM recurses multiple times through two small neural nets with 4 transformer blocks each (high and low frequency). TRM is much smaller (i.e., 4x) and only a single network with 2 transformer blocks. TRM backpropagates through the full recursion once per step, whereas HRM only backpropagates through the final few steps. And TRM also removes HRM's extra forward pass for halting and instead uses a simple binary cross-entropy loss to learn when to stop iterating. 🔹 Surprising tidbits 1. The author found that adding layers decreased generalization due to overfitting. And going from 4 to 2 layers improved the model from 79.5% to 87.4% on Sudoku. 2. Replacing the self-attention layer with an MLP layer also improved accuracy (74.7% -> 87.4% on Sudoku); however, note that this only make sense here since we have a fixed-length, small context to work with. 🔹 Bigger picture My personal caveat: comparing this method (or HRMs) to LLMs feels a bit unfair since HRMs/TRM are specialized models trained for specific tasks (here: ARC, Sudoku, and Maze pathfinding) while LLMs are generalists. It’s like comparing a pocket calculator to a laptop. Both serve a purpose, just in different contexts. That said, HRMs and the recursive model proposed here are fascinating proof‑of‑concepts that show what’s possible with relatively small and efficient architectures. I'm still curious what the real‑world use case will look like. Maybe they could serve as reasoning or planning modules within a larger tool‑calling system. In practice, we often start by throwing LLMs at a problem, which makes sense for quick prototyping and establishing a baseline. But I can see a point where someone sits down afterward and trains a focused model like this to solve the same task more efficiently.

Изображение публикацииЗагрузка изображения…
129K2,15K641,46K
Посмотреть исходное сообщение
Типичный × 2,3

DeepSeek finally released a new model and paper. And because this DeepSeek-OCR release is a bit different from what everyone expected, and DeepSeek releases are generally a big deal, I wanted to do a brief explainer of what it is all about.

In short, they explore how vision encoders can improve the efficiency of LLMs in processing and compressing textual information. And the takeaway is that rendering text as images and feeding that to the model results in more efficient compression than working with text directly. My first intuition was that this sounds very inefficient and shouldn't work as well as using text tokenizers (or alternatives like Byte Latent Transformer) to prepare the input. It actually reminded me of the line of research I saw years ago, where researchers represented 3D molecules as 3D inputs or 2D images for ConvNets instead of using graph neural nets. This shouldn't work well and should be prone to overfitting. In the case of DeepSeek-OCR, why even try such an approach? I imagine it started as a curiosity, but then it may have turned into an interesting idea for long-context scaling in LLMs and how to make it cheaper by using vision tokens and representations. (An image can say more than a thousand words, but who would have thought that an image of text can say 1000 words more efficiently!) In any case, this DeepSeek-OCR approach turns out to be surprisingly efficient. In particular, they found that at a fixed  precision of 97% for long-context decoding (i.e., how well the model can compress information into a latent representation and reconstruct it), the OCR version needed 10 times fewer visual tokens than text tokens. In other words, the OCRed version can compress information 10x better than the text version. How is it different compared to other VLLM architectures? - They don't use a monolithic ViT as encoder, instead they fuse local and global vision features through a clever 16x convolutional compressor (this can handle high-resolution inputs efficiently in terms of memory and token counts). - They are (to the best of my knowledge) those who use an MoE as a decoder. I think it's an interesting, refreshing approach, and the twist here is that it works surprisingly well. However, I don't think that visual representations of text will solve the limitations of LLMs. Also, while it is popular to dislike text tokenizers like BPE, image representations are messy as well (one has to deal with aspect ratios, resolutions, croppings, color intensity variations, brightness levels, etc.). Still, it’s an interesting idea. Also, if this approach is more efficient than regular black&white text, I am curious to see compression ratios when we add syntax color to code. Regarding code, this may be an interesting alternative for storing contextual information, as spacing and subword tokenization remain challenges in traditional tokenizers. (Especially when working with code that uses many custom variable names that may not be represented in vocabularies and that have to be broken down into many individual subword tokens.) Overall, it’s still such an esoteric concept to encode text in images that I am (still) surprised it could do well (and may it would only make sense for very long documents or special domains like OCR or code, not general language modeling). (PS: Personally, I expected the DeepSeek team to follow up with a V4 model using the sparse attention mechanism they tried in V3.2 recently, but maybe that's still forthcoming. Now, after reading this paper, V4 is perhaps going to be a VLLM.)

Изображение публикацииЗагрузка изображения…
158K2,06K701,21K
Посмотреть исходное сообщение
Типичный × 2,2

(Finally) wrote up "Understanding Positional Embeddings in Modern LLMs."

A RoPE from-scratch tutorial missing from my LLM building blocks collection + what recent architectures do (NoPE, partial RoPE, hybrids). Prob not the flashiest topic, but essential for understanding LLMs https://t.co/mkggue58t4

Изображение публикацииЗагрузка изображения…
69,2K1,99K1211,41K
Посмотреть исходное сообщение
Типичный × 2,1

Just caught up with the recent GLM-5.2 release. The best open-weight model today.

Architecture-wise, it's build on the GLM-5 and GLM-5.1 architecture that I covered previously, which means it's reusing the Multi-head Latent Attention (MLA) and DeepSeek Sparse Attention (DSA) mechanisms from DeepSeek V3.2. (I wrote about it here: https://t.co/tuunazfQ8y) What's new is that they added an IndexShare mechanism. (That's a cross-layer reuse trick for DSA where instead of recomputing the sparse-attention top-k indexer in every layer, GLM-5.2 runs the full indexer only once every four layers and lets the following layers reuse those selected token indices. This keeps the same DSA idea but makes 1M-token inference much cheaper.)

Изображение публикацииЗагрузка изображения…
107K1,87K58905
Посмотреть исходное сообщение
Типичный × 1,9

I really didn't expect another major open-weight LLM release this December, but here we go: NVIDIA released their new Nemotron 3 series this week.

It comes in 3 sizes: 1. Nano (30B-A3B), 2. Super (100B), 3. and Ultra (500B). Architecture-wise, the models are a Mixture-of-Experts (MoE) Mamba-Transformer hybrid architecture. As of this morning (Dec 19), only the Nano model has been released as an open-weight model, so this post will focus on that one (shown in my drawing below). Nemotron 3 Nano (30B-A3B) is a 52-layer hybrid Mamba-Transformer model that interleaves Mamba-2 sequence-modeling blocks with sparse Mixture-of-Experts (MoE) feed-forward layers, and uses self-attention only in a small subset of layers. There’s a lot going on in the figure above, but in short, the architecture is organized into 13 macro blocks with repeated Mamba-2 → MoE sub-blocks, plus a few Grouped-Query Attention layers. In total, if we multiply the macro- and sub-blocks, there are 52 layers in this architecture. Regarding the MoE modules, each MoE layer contains 128 experts but activates only 1 shared and 6 routed experts per token. The Mamba-2 layers would take a whole article itself to explain (perhaps a topic for another time). But for now, conceptually, you can think of them as similar to the Gated DeltaNet approach that Qwen3-Next and Kimi-Linear use, which I covered in my Beyond Standard LLMs article. The similarity between Gated DeltaNet and Mamba-2 layers is that both replace standard attention with a gated-state-space update. The idea behind this state-space-style module is that it maintains a running hidden state and mixes new inputs via learned gates. In contrast to attention, it scales linearly instead of quadratically with the input sequence length. What’s actually quite exciting about this architecture is its really good performance compared to pure transformer architectures of similar size (like Qwen3-30B-A3B-Thinking-2507 and GPT-OSS-20B-A4B), while achieving much higher tokens-per-second throughput. Overall, this is an interesting direction, even more extreme than Qwen3-Next and Kimi-Linear in its use of only a few attention layers. However, one of the strengths of the transformer architecture is its performance at a (really) large scale. I am curious to see how the larger Nemotron 3 Super and especially Ultra will compare to the likes of DeepSeek V3.2.

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
172K1,74K441,09K
Посмотреть исходное сообщение
Типичный × 1,8

Catching up on the 10 (!) open LLM architecture releases from the past month. Quite a lot happened in October. I guess we can call it "Open October"!

1. Kolibri-1 (78B): A notable model from Germany. Features classic Grouped Query Attention (GQA) and Sliding Window Attention (SWA) attention module. 2. Ling 3.1 Flash (560B): Uses Kimi Delta Attention and the eighth uses gated Multi-head Latent Attention (MLA) inspired by DeepSeek. 3. Muse Spark Open (816B): Besides Musse Glimmer, the first major open weight release from Meta (since Llama). Uses classic GQA + SWA but adds a LatentMoE. 4. Nemotron 3.5 Super VL (120B): Combines Mamba-2 layers with just eight attention layers. Also LatentMoE 5. Dory1.0 (4B): A looped transformer design. 6. Reflection Beam (501B): GQA+SWA architecture. 7. Recursive Flint (40B): Note that "Recursive" is the company name; the architecture is a fairly standard MoE with GQA and SWA. 8. MiniMax M3.1-Flash (428B): Uses their own MiniMax Sparse Attention module. 9. LFM3 (1.7B): Hybrid architecture that mixes short convolutions and attention. 10. Mistral Large 4 (1T) combines MLA with sparse attention. Will probably cover/discuss things in more depth in the coming weeks!

Изображение публикацииЗагрузка изображения…
67,3K1,66K1091,3K
Посмотреть исходное сообщение
Типичный × 1,8

Pretty cool that they open sourced the actual full-sized production model. Here’s the Grok 2.5 architecture overview next to a roughly similarly sized Qwen3 model. The MoE residual is quite interesting. Kind of like a shared expert. I don't think I've seen this setup before. https://t.co/3t3c2buu3A

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
144K1,61K39864
Посмотреть исходное сообщение
Типичный × 1,8

Yes, open-source / open-weight models are important for a healthy AI ecosystem. That's how we can verify things, check claims, and keep up outside the closed labs. Plus, it gives us the freedom to run AI on our own hardware if we are not ready to share personal data and IPs with closed labs through using their models. (Not that proprietary models are bad, actually I use them a lot as well, but it wouldn't healthy not to have any alternatives.)

Anyway, while pretty much everyone is waiting for the Kimi K3 and Ling 3.0 weights to land on the model hub any day now, there were quite a few other interesting new open-weight model releases the past week. Yes, one of those weeks! So, here are the architecture pics along with some notes on what I found most interesting: 1) Nanbeige 4.2 3B uses looped depth sharing. This basically means it runs the same 22-layer (=transformer block) stack twice. So, it extends the 22-layer architecture to 44-layers, but without duplicating the weights. (2x the transformer block compute but same memory footprint.) Why? The info is a bit sparse, but section 2.1 of the Nanbeige 4.2 technical report says two passes gave the best trade-off and retained about 75% of the token efficiency of a standard architecture. More passes gave barely any gains but made the training much slower and much more expensive. 2) Laguna S 2.1 is poolside's Laguna model in a really nice size: 118B sparse MoE with 8B active parameters and a 1M-token context window. Otherwise, the architecture is pretty standard. It uses 36 sliding-window and 12 global (gated-)GQA layers. However, given this size, and the fact that it (just barely) runs on my DGX Spark (uses about <80 GB of RAM), this is right now the most interesting model for me personally. It's 3x bigger and thus a tad slower but maybe a good candidate as daily-driver-Qwen3.6-35B-replacement. (Still waiting on some more independent performance benchmarks though.) 3) Motif-3-Beta is a new 314B-A13B sparse MoE that is somewhat based on DeepSeek V4 in terms of mHC and latent attention. But it uses a new component, Grouped Differential Latent Attention, which is inspired by Multi-head Latent Attention. I probably should write an article about this some time, but for now, the tl;dr is as follows. Regular MLA compresses the keys and values into a smaller latent representation to mainly reduce the KV cache size. GDLA does a similar low-rank compression but puts the attention heads into groups and also learns a noise head for each group where the noise gets subtracted for filtering purposes... Anyway, a topic for another day! 4) Solar Open 2 is a new 250B-A15B hybrid MoE by Upstage that interleaves three Kimi Delta Attention layers with one GQA layer. 5) Antares 1B is a small model (and there is also an even smaller 0.3B variant) from Cisco starts that with the IBM Granite 4.0 1B backbone and uses SFT plus GRPO for terminal-based cybersecurity stuff. It is a nice example of task-specific post-training on a genuinely small model. 6) BTL-3 is a rank-32 LoRA adapter for Qwen3.6-27B aimed at coding agents and structured tool use. The really strong benchmark performance suggests that LoRA adapters are still a useful tool/technique in 2026. I added all six to the LLM Architecture Gallery for some additional details: https://t.co/JDtfup3ncn

Изображение публикацииЗагрузка изображения…
75,6K1,6K92879
Посмотреть исходное сообщение
Типичный × 1,8

Whoa, Meta released a new open-weight LLM yesterday, something that hasn't happened since the good old Llama days.

Their Meta Muse Glimmer model is a 30B multimodal reasoning model with a Gemma-like architecture design. (“Glimmer” is probably a wordplay on “Spark,” the more likely capable model from which Glimmer was distilled. Muse Spark is only available through Meta’s Model API, though.) Architecture-wise, here are some of the main points: 1. "Only" a 131k context window, compared to Qwen3.6 and Gemma 4, which support 2x that natively; it's reasonable, but maybe on the shorter end in the age of agent harnesses 2. It's a dense model, not a mixture-of-experts. (So, it's fairer to compare it to Qwen3.6 27B than Qwen3.6 30B-A3B.) 3. Hybrid attention with grouped-query attention (GQA) and sliding window attention (SWA); the SWA:GQA pattern is a 3:1 local:global ratio. Other models like Gemma 4, which uses similar components, have a 5:1 ratio for comparison. 4. It adopts gated attention for both GQA and SWA; gated attention has become quite common in recent months. It basically applies a sigmoid gate to the attention output to decide how much of the attention information enters the residual connection. The interesting point is that it uses relatively standard GQA and SWA rather than hybrid attention mechanisms such as Nemotron or Qwen3.6. 5. A very extreme GQA ratio: 32 query heads and only 2 KV heads; for comparison, Gemma 4 31B uses 32 Q / 16 KV in the local heads and 32 Q / 4 KV in the global heads. This means that Meta Glimmer has a very small KV cache. Overall, the probably most similar architecture is Gemma 3 27B (including the Gemma-style pre/post RMSNorm placement) and Gemma 4 31B, but with some tweaks like SwiGLU instead of GeGLU activations, gated attention, and the more extreme GQA:SWA pattern mentioned before. What stands out is its extreme KV-cache efficiency. I.e., the KV CACHE / TOKEN ratios (in BF16) are: - Muse Glimmer: 52 KiB (lower is better) - Qwen3.6 27B: 64 KiB - Gemma 4 31B: 840 KiB Modeling-performance-wise, their own benchmarks show that it's mostly ahead of Qwen3.6. According to the independent composite benchmarks on the Artificial Analysis Intelligence Index, it's slightly behind Qwen3.6 (see figure below). So, a few days of using it will tell where it really ranks. Overall, it looks like a solid model, particularly for agentic workflows. What stands out most is its very low memory footprint and also pretty fast prefill and decode speed. It’s also just great to see Meta releasing open weights again :).

Изображение публикацииЗагрузка изображения…
89,8K1,59K71730
Посмотреть исходное сообщение
Типичный × 1,7

MiMo-V2.6 is "simply" the best (for now). Despite its simple architecture design it's currently No.1 in the open-weight benchmarks (weighted average).

With "simple," I mean a classic Grouped Query Attention (GQA) with Sliding Window Attention (SWA) at a tiny 128-token window size. So, that underlines one of the points I've been trying to make in recent months: most of the progress still comes from the data and post-training recipe improvements. Fancy attention variants are just mostly efficiency tweaks. What are some of the training data improvements and recipe improvements? The MiMo team shared a pretty detailed technical report. Lots to carefully digest there, but in short, there are a few things that stood out: 1. An increase in agent tasks; also training across different harnesses (the average DeepSWE pass@1 accuracy on held-out harnesses improved from approximately 50% -> 66%). 2. Better reward signals: they replaced a simple correctness verifier with an agentic grader that looks at the execution traces as well. 3. Large RL batches (1,568 prompts × 16 rollouts = 25,088 trajectories) and 2.7–3.7 billion training tokens per update (unclear, though, what the predecessor used).

@1
Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
104K1,53K77678
Посмотреть исходное сообщение
Типичный × 1,5

Inkling 2 Small took a while... but it's more interesting than I initially thought! Using attention residuals (like Kimi K3), but without the linear-attention hybrid. Food for discussion for the end-of-the-year architecture trends analysis! https://t.co/2U4ctJa1yw

Изображение публикацииЗагрузка изображения…
56,7K1,34K72661
Посмотреть исходное сообщение
Типичный × 1,5

Interesting surprise drop from Thinky! The Inkling model looks pretty solid on benchmarks, and it has some little surprises in its architecture:

- Small conv layers in several places - An RMSNorm for the embeddings (before the block RMSNorm) - Rel. position bias instead of RoPE https://t.co/oMl5Ta6Ttr

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
119K1,32K33671
Посмотреть исходное сообщение
Типичный × 1,4

With the release of the Kimi Linear LLM last week, we can definitely see that efficient, linear attention variants have seen a resurgence in recent months. Here's a brief summary of what happened.

First, linear attention variants have been around for a long time, and I remember seeing tons of papers in the 2020s. I don't want to dwell too long on these older attempts. But the bottom line was that they reduced both time and memory complexity from O(n^2) to O(n) to making attention much more efficient for long sequences. However, they never really gained traction as they degraded the model accuracy, and I have never really seen one of these variants applied in an open-weight state-of-the-art LLM. In the second half of this year, there was a bit of a revival of linear attention variants. The first notable model was MiniMax-M1 with lightning attention, a 456B parameter mixture-of-experts (MoE) model with 46B active parameters, which came out back in June. Then, in August, the Qwen3 team followed up with Qwen3-Next, which I discussed in more detail above. Then, in September, the DeepSeek Team announced DeepSeek V3.2 with sparse attention. All three models (MiniMax-M1, Qwen3-Next, DeepSeek V3.2) replace the traditional quadratic attention variants in most or all of their layers with efficient linear variants. (DeepSeek's sparse attention it's not strictly linear but still subquadratic). Interestingly, there was a recent plot twist, where the MiniMax team released their new 230B parameter M2 model (discussed in section 13) without linear attention, going back to regular attention. The team stated that linear attention is tricky in production LLMs. It seemed to work fine with regular prompts, but it had pure accuracy in reasoning and multi-turn tasks, which are not only important for regular chat sessions but also agentic applications. This could have been a turning point where linear attention may not be worth pursuing after all. However, it gets more interesting. Last week, the Kimi team released their new Kimi Linear model with linear attention. The tag line is that compared to regular, full attention, it has a 75% KV cache reduction and up to 6x decoding throughput. Kimi Linear shares several structural similarities with Qwen3-Next. Both models rely on a hybrid attention strategy. Concretely, they combine lightweight linear attention with heavier full attention layers. Specifically, both use a 3:1 ratio, meaning for every three transformer blocks employing the linear Gated DeltaNet variant, there's one block that uses full attention as shown in the figure below. However, Kimi Linear modifies the linear attention mechanism of Qwen3-Next by the Kimi Delta Attention (KDA) mechanism, which is essentially a refinement of Gated DeltaNet. Interestingly, it also replaces the standard full attention module by multi-head latent attention. There's no direct comparison to Qwen3-Next in the Kimi Linear paper, but compared to the Gated DeltaNet-H1 model from the Gated DeltaNet paper (which is essentially Gated DeltaNet with sliding-window attention), Kimi Linear achieves higher modeling accuracy while maintaining the same token-generation speed. Of course, I couldn't resist and added it to my The Big LLM Architecture Comparison article, which has grown to >10,000 words now (basically becoming book!?).

Изображение публикацииЗагрузка изображения…
70,3K1,25K32834
Посмотреть исходное сообщение
Типичный × 1,3

Flagship open-weight release days are always exciting. Was just reading through the Gemma 4 reports, configs, and code, and here are my takeaways:

Architecture-wise, besides multi-model support, Gemma 4 (31B) looks pretty much unchanged compared to Gemma 3 (27B). Gemma 4 maintains a relatively unique Pre- and Post-norm setup and remains relatively classic, with a 5:1 hybrid attention mechanism combining a sliding-window (local) layer and a full-attention (global) layer. The attention mechanism itself is also classic Grouped Query Attention (GQA). But let’s not be fooled by the lack of architectural changes. Looking at the benchmarks, Gemma 4 is a huge leap from Gemma 3. This is likely due to the training set and recipe. Interestingly, on the AI Arena Leaderboard, Gemma 4 (31B) ranks similarly to the much larger Qwen3.5-397B-A17B model. But as I discussed in my model evaluation article, arena scores are a bit problematic as they can be gamed and are biased towards human (style) preference. If we look at some other common benchmarks, which I plotted below, we can see that it’s indeed a very clear leap over Gemma 3 and ranks on par with Qwen3.5 27B. Note that there is also a Mixture-of-Experts (MoE) Gemma 4 variant that is slightly smaller (27B  with 4 billion parameters active. The benchmarks are only slightly worse compared to Gemma 4 (31B). I omitted the MoE architecture in the figure below because the figure is already very crowded, but you can find it in my LLM Architecture Gallery. Anyways, overall, it's a nice and strong model release and a strong contender for local usage. Also, one aspect that should not be underrated is that (it seems) the model is now released with a standard Apache 2.0 open-source license, which has much friendlier usage terms than the custom Gemma 3 license.

Изображение публикацииЗагрузка изображения…
68K1,18K43541
Посмотреть исходное сообщение
Типичный × 1,1

The new Qwen3 update takes back the benchmark crown from Kimi 2. Some highlights of how Qwen3 235B-A22B differs from Kimi 2: - 4.25x smaller overall but has more layers (transformer blocks); 235B vs 1 trillion - 1.5x fewer active parameters (22B vs. 32B) - much fewer experts in MoE layers (128 vs 384); also, experts are slightly smaller - doesn't use a shared expert (but otherwise also has 8 active experts) - alternates between dense and MoE blocks in every other layer (transformer block) - grouped query attention instead of multi-head latent attention

Key aspect to consider: Kimi is still just a base model, not trained for reasoning, yet!

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
95,2K99522458
Посмотреть исходное сообщение
Типичный × 1,1

Oh wow, Mamba-3 is here! For me, the most interesting use case of Mamba and Mamba-likes are the recent transformer attention hybrid architectures (Qwen3.5, Kimi Linear, etc.) Would be interesting to swap Gated DeltaNet with Mamba-3 (which now also has RoPE) in next gen hybrids. https://t.co/wcTg0uZ3gg

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
77,1K97226464
Посмотреть исходное сообщение
Типичный × 1,0

Finally! Will be working through the internals in more detail. The first surprising fun fact is they used bias units in the attention mechanism like ye goode old GPT-2. Super interesting, I haven't seen any other architecture doing that since then! https://t.co/vsp7KBMqS8

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
87,6K91726270
Посмотреть исходное сообщение
Типичный × 1,0

It's been a while since I did an LLM architecture post. Just stumbled upon the Arcee AI Trinity Large release + technical report released yesterday and couldn't resist:

- 400B param MoE (13B active params) - Base model performance similar to GLM 4.5 base - Alternating local:global (sliding window) attention layers in 3:1 ratio like Olmo 3 - QK-Norm (e.g. popular since Olmo 2) and NoPE (e.g., SMolLM3) - Gated attention like Qwen3-Next - Sandwich RMSNorm (kind of like Gemma 3 but depth-scaled) - DeepSeek-like MoE with lots of small experts, but made it coarser as that helps with inference throughput (something we have also seen in Mistral 3 Large when they adopted the DeepSeek V3 architecture) Added a slightly longer write-up to my The Big Architecture Comparison article: https://t.co/uCt4rFAK3a

Изображение публикацииЗагрузка изображения…
43,7K90939482
Посмотреть исходное сообщение
Типичный × 0,9

Just saw the MiniMax-M2 benchmarks, and the performance is too good to ignore :). So, I just amended my "The Big LLM Architecture Comparison" with entry number 13!

1️⃣ Full attention modules: As shown in the overview figure below, I grouped MiniMax-M2 with the other decoder-style transformer LLMs as it does not use the efficient lightning attention variant proposed in MiniMax-M1. Instead, the developers went back to using full attention, likely to improve modeling (and benchmark) performance. 2️⃣ Per-layer QK-Norm: Overall, MiniMax-M2 is surprisingly similar to Qwen3. Besides changing the number of layers, sizes, etc., it uses the same components overall. Perhaps the one noteworthy highlight here is that MiniMax-M2 uses a so-called “per_layer” QK-Norm instead of the regular QK-Norm. A closer look at the code reveals the "per_layer" means that the RMSNorm (used for QK-Norm as explained earlier) is defined in each transformer block (as in regular QK-Norm), but, in addition, instead of reusing it across attention heads, it's a unique QK-Norm for each attention head. 3️⃣ Sliding-window attention: The model configuration file also includes a sliding-window attention setting (similar to Gemma 3), but, as in Mistral 3.1, it is disabled by default. Otherwise, besides the per-layer QK-Norm, the architecture is very similar to Qwen3, as shown in the figure below. 4️⃣ MoE sparsity: A perhaps interesting tidbit, as shown in the figure below, includes the fact that they don't use a shared expert (similar to Qwen3 but unlike Qwen3-Next). As mentioned earlier, in my opinion, shared experts are useful because they reduce redundancy among the other experts. Also, as apparent from the figure above, MiniMax-M2 is twice as "sparse" as Qwen3. I.e., at roughly the same size as Qwen3 235B-A22B, MiniMax-M2 has only 10B instead of 22B active experts per token (that is, 4.37% of the parameters are used in each inference step in MiniMax-M2, whereas Qwen3 uses 9.36% active tokens).

Изображение публикацииЗагрузка изображения…
49,8K84225476
Посмотреть исходное сообщение
Типичный × 0,9

Olmo models are always a highlight due to them being fully transparent and their nice, detailed technical reports. I am sure I'll talk more about the interesting training-related aspects from that 100-pager in the upcoming days and weeks. In the meantime, here's the side-by-side architecture comparison with Qwen3.

1) As we can see, the Olmo 3 architecture is relatively similar to Qwen3. However, it's worth noting that this is essentially likely inspired by the Olmo 2 predecessor, not Qwen3. 2) Similar to Olmo 2, Olmo 3 still uses a post-norm flavor instead of pre-norm, as they found in the Olmo 2 paper that it stabilizes the training. 3) Interestingly, the 7B model still uses multi-head attention similar to Olmo 2. However, to make things more efficient and shrink the KV cache size, they now use sliding window attention (e.g., similar to Gemma 3.) Next, let's look at the 32B model. 4) Overall, it's the same architecture but just scaled up. Also, the proportions (e.g., going from the input to the intermediate size in the feed forward layer, and so on) roughly match the ones in Qwen3. 5) My guess is the architecture was initially somewhat smaller than Qwen3 due to the smaller vocabulary, and they then scaled up the intermediate size expansion from 5x in Qwen 3 to 5.4 in Olmo 3 to have a 32B model for a direct comparison. 6) Also, note that the 32B model (finally!) uses grouped query attention.

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
245K83217472
Посмотреть исходное сообщение
Типичный × 0,9

Currently working towards a bigger open LLM roundup. But in the meantime, just one of the interesting trends that stood out. I.e., looks like the transition from full to hybrid attention continues.

In 2025, there were still lots of full attention models, with a shift to "some full attention" hybrids. In the first half of 2026, the trend towards "some full attention" hybrids continued. And now, in the second half of 2026, we have a 50/50 split between "some full attention" hybrids and models that don't use full attention at all anymore. And yes, there are also no full attention models anymore. The plot legend here means, - Full attention throughout = Global MHA, GQA, dense MLA, CCA in EVERY layer. - Some full attention = Full global attn mixed with: sliding-window/chunked attention, Gated DeltaNet, KDA, Mamba-2, Lightning Attention, convolutions, sparse attention. - No full attention = Zero dense global layers. The main implication is that the trend goes towards making long contexts cheaper to use. This means, it makes the architectures more suitable for long documents and conversations, large code bases, and of course agent usecases that rely on a lot of tool calls. In particular, there are two distinct efficiency gains here: 1) Less attention computation, since sparse attention and the like select tokens or blocks from the context and performs the expensive attention operation from only that subset. (Note that it can still retrieve information from distant positions.) 2) Less memory for retaining context in some architectures, meaning that recurrent layers such as Gated DeltaNet maintain a fixed-size state. Of course, this saves memory, but compressing the history creates challenges for exact retrieval, so they are usually intermixed with traditional attention methods (sparse or full).

Изображение публикацииЗагрузка изображения…
33,8K78166407
Посмотреть исходное сообщение
Типичный × 0,8

Another week, another noteworthy open-weight LLM release. Nvidia’s Nemotron 3 Super 120B-A12B looks pretty good.

Benchmarks are on par with Qwen3.5 122B and GPT-OSS 120B, but the throughput is great! Below is a short, visual architecture rundown. https://t.co/eqSOPAeqQz

Изображение публикацииЗагрузка изображения…
37,4K76937333
Посмотреть исходное сообщение
Типичный × 0,8

Cool new open-weight model by Cohere: a new lightweight 30B open-weight model for agentic coding tasks.

This one builds on Command A+ using the parallel transformer design. Interestingly, even though it's almost half as big, it almost doubles the number of layers. Also, they say that it's been specifically developed for agentic coding, not just coding. I.e., the evaluation is inside a workflow, not just on a single prompt-to-code-answer task. For Terminal-Bench, the model has to use a terminal, inspect the environment, run commands, read outputs, etc. For SWE-Bench the model works on real GitHub-style software issues where it has to understand the repository, find relevant files, make a patch, pass tests, etc. SciCode and LiveCodeBench are more traditional because they mostly test whether the model can produce correct code for a specified problem. Sure, this still requires reasoning, but it's more like “Implement a numerical routine to compute a scientific quantity from given equations and inputs.” which doesn't require any interaction with the environment, existing files, tests, etc. The focus on the agentic code benchmarks is probably why it's far ahead of Gemma 4 on those. Overall, it's pretty competitive although not quite Qwen3.6-level performance.

Изображение публикацииЗагрузка изображения…
52,9K75445386
Посмотреть исходное сообщение
Типичный × 0,7

It's been *almost* a bit quiet around LLM architecture releases in the past two weeks 😅

Interesting tidbit is the parallel block design. Via the Cmd-A the tech report "equivalent performance but significant improvement in throughput compared to the vanilla transformer block." https://t.co/znIyINCgI0

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
68,9K66030345
Посмотреть исходное сообщение
Типичный × 0,7

And another open-weight release. Nemotron 3 Ultra has an ultra impressive capability:efficiency ratio!

Design-wise, it carries forward the Mamba-2-attention hybrid stack and LatentMoE introduced in the previous Super variant. But everything is a bit bigger. https://t.co/nRjbMtY2aI

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
45,9K65833259
Посмотреть исходное сообщение
Типичный × 0,7

The weights are out! Here's the GLM-5 architecture comparison. GLM-5 is: - bigger than its predecessor (mainly more experts) but has rel. similar active parameter counts - uses multi-head latent attention - uses DeepSeek Sparse Attention https://t.co/7pEoaKBvdh

Изображение публикацииЗагрузка изображения…
42K61739237
Посмотреть исходное сообщение
Типичный × 0,6

The MiniMax M2 series was one of the most widely used open-weight LLM series earlier this year. Now, we got a technical report with some interesting tidbits. I summarized some of them below:

1. Full attention as an anti-trend?: They tried hybrid sliding-window attention variants (like so many others, like Xiaomi MiMo, Laguna, Gemma 4, Arcee, Olmo 3, etc.). But even though there were efficiency gains, they said that the production-quality tradeoffs were not worth it for M2. 2. Linear and sparse attention deployment issues: They found that linear and sparse attention are attractive on paper because they reduce the cost of long-context attention, but they are harder to make work well in a production agent system. In particular, they found that these efficient attention variants may be more fragile when KV-like state or intermediate memory is stored in lower precision. Also, they have worse prefix caching support, which matters a lot when using coding agents (which reuse a lot of the context). 3. Fine-grained Mixture-of-Experts (MoEs) are useful: Finally a recent MoE ablation study! It's only on the 2B-active parameter scale, but hey, better than nothing. Concretely, they compare a baseline with 32 experts and top-2 routing against a fine-grained setup with 128 experts and top-8 routing. The fine-grained setup improves MATH from 19.6 to 24.1 and HumanEval from 29.7 to 32.5. That's clearly a win for more fine-grained experts (confirming what the DeepSeek MoE paper reported ~2 years ago). 4. Sophisticated agent pipeline It's probably no surprise, but this papers confirms that training for agent-like behavior on software engineering task is now a big component of the training pipeline. They mine GitHub pull requests, builds runnable Docker environments, extracts task-specific test rewards, etc. 5. Interleaved thinking for context management Interestingly, they found that removing reasoning blocks from previous turns results in worse performance, especially in multi-step agent tasks. (Another point why long-context support is so important these days). 6. Speed rewards It's common to have token usage penalties, but what's interesting is that the MiniMax team adds a task-completion-time reward that depends on wall-clock time. This is to minimize unnecessary (slow) tool calls. Also, I'm thinking that this would encourage agent parallelization (if supported by the harness) 7. Self-evolution Looks like self-evolution is also already a big design component of open-weight LLMs. E.g., the paper says that M2.7 already handles 30 to 50 percent of the daily RL iteration workload, modifies its own scaffold, and completed a 100-round autonomous scaffold optimization cycle with a 30 percent gain on internal evaluations.

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
41K53436254
Посмотреть исходное сообщение
Типичный × 0,5

Whoa, great and even excessive Marin Mochi (535B-A23B) checkpoint drop (in a good way!)

Comes with great tech report btw with insights into why / how components were picked (for training stability and GPU throughput). Short fact sheet: 1) Latent MoE with an extra RMSNorm on the latent that made latent MoE actually work (better) 2) Classic 3:1 sliding-window/global gated GQA, partial RoPE (local) and NoPE (global) 3) Adding short convolutions on keys, attention output, and MoE output 4) Exclusive self-attention (XSA) -- I guess the end-of-the year architecture roundup this year won't be boring 😅

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
23,4K48543239
Посмотреть исходное сообщение
Типичный × 0,5

Back from a little family break! Lots has happened, and I’m planning to do a deeper dive into the most interesting architectural components (soon).

Btw, are there any major architectures I missed below? https://t.co/HEhXUjxaDY

Изображение публикацииЗагрузка изображения…
34,7K44728197
Посмотреть исходное сообщение
Публикации
66
Доля постов
31,4%
Среднее количество лайков
1 310
Наибольшее кратное
8,9×

Model Evaluation, Benchmarks, and Industry Observations

Типичный × 6,0

I seriously think US open-weight models wouldn't be this good without Chinese open-weight models and vice versa. And proprietary models wouldn't be this good (and cheap) without open-weight models.

Competition is a good thing. https://t.co/8HOVFHxyn9

Изображение публикацииЗагрузка изображения…
283K5,43K2352,81K
Посмотреть исходное сообщение
Типичный × 5,1

For agentic coding, one can say:

- Unless you need Terra Ultra perf, it's always better to use a Luna model with higher effort setting (same or better performance but cheaper). - Forget everything below Sol High, use Luna with higher effort settings here - Forget Sol Extra High, use Terra Ultra here - The extra cost of Sol Ultra is probably not worth it over Max

Изображение публикацииЗагрузка изображения…
982K4,63K3293,98K
Посмотреть исходное сообщение
Типичный × 2,7

Took a while, but here it is, a mega write-up on language models for text classification and, of course, Jev.

It's basically a visual guide to RNNs, CNNs, transformers, and calibration, with hands-on experiments on accuracy and efficiency. https://t.co/fVHpuKvu5o

Изображение публикацииЗагрузка изображения…
163K2,48K822,31K
Посмотреть исходное сообщение
Типичный × 2,6

I put together a new article on setting up local coding agents with open-weight models. Everything runs 100% locally.

I thought it might be useful putting this together because many people asked me about my setup in the past, and I thought it would also motivate people to get started tinkering with local models for serious work (yes, things got incredibly capable this year with better LLMs and better harnesses). So, here's a walkthrough of how to connect a local LLM to a local coding harness (could be Claude Code or Codex, which you may already be familiar with). I also included some assessment notes that are useful as a checklist to select between and consider certain LLMs over others: - Checking RAM usage at long contexts to see if the model is suitable for real work - Measuring prefill and decoding tok/sec to see whether it's fast enough to not be annoying - Making sure the model has sufficient tool-calling capabilities in theory - Assessing whether the model can solve some more challenging tasks when used in a coding harness. Of course, there are always more specialized tools that can squeeze a bit more performance out of things, but I hope this is a good starter kit that stays flexible; that is you can easily switch to newer models as they are released or even tap into cloud models in your familiar harness if the current ones are not sufficient enough for a given task.

Изображение публикацииЗагрузка изображения…
136K2,33K932,47K
Посмотреть исходное сообщение
Типичный × 2,5

My biennial update to the "Hello World"s of ML &amp; AI:

2013: RandomForestClassifier on Iris 2015: XGBoost on Titanic 2017: MLPs on MNIST 2019: AlexNet on CIFAR-10 2021: DistilBERT on IMDb movie reviews 2023: Llama 2 with LoRA on Alpaca 50k 2025: Qwen3 with RLVR on MATH-500

130K2,3K421,68K
Посмотреть исходное сообщение
Типичный × 2,4

It’s easy to dismiss Jev it as “just a classifier”.

But people (me included) who have been training encoder-style models for classification for many years know they were usually special-purpose and limited in some way. The breakthrough of Jev is that it generalizes well. And I’d say the secret sauce is probably more in the data than in the training algorithm. (Plus a nice API design on top of it.)

Открыть цитируемое сообщение
243K2,17K1341,11K
Посмотреть исходное сообщение
Типичный × 2,1

A short illustration of how the Claude's watermarking is supposed to work (based on my read of their released materials).

In general, when we are generating tokens, there can be multiple high-scoring tokens at certain next-word positions. Usually, we sample with top-k or top-p sampling so the highest-scoring token is most often selected (if we repeat the sampling many times), but other tokens may be selected as well. With watermarking, there is a key that says which of the (ideally equally) highest-scoring tokens to select. Or, more concretely, the secret key and previous token influence the randomness here. Now, if we repeat this at many token positions, this creates the watermark as it will be a pattern that is statistically unlikely to get otherwise (due to combinatorics). One thing I am confused about: They basically say that they HAVE to do this for everyone due to EU regulation. Why? Sure, but this is an inference-time technique that doesn't require retraining or training a separate model, so, if they wanted, they could only do that for EU users? 🤔

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
229K1,92K1651,53K
Посмотреть исходное сообщение
Типичный × 1,8

I like choices... but now I have:

2x modes (Codex vs. Work mode) 3x GPT-5.6 models (Sol, Terra, Luna) 5x effort levels (Light, Medium, High, Extra High, Ultra) That's 2 x 3 x 5 = 30 possible configurations for a query 🤯 What happened to "Auto" mode? https://t.co/LhwIiezLWq

Изображение публикацииЗагрузка изображения…
133K1,59K146252
Посмотреть исходное сообщение
Типичный × 1,1

February is one of those months...

- Moonshot AI's Kimi K2.5 (Feb 2) - z. AI GLM 5 (Feb 12) - MiniMax M2.5 (Feb 12) - ByteDance Seed-2.0 (Feb 13) - Nanbeige 4.1 3B (Feb 13) - Qwen 3.5 (Feb 15) - Cohere's Tiny Aya (Feb 17) (+Hopefully DeepSeek V4 soon) Anything I forgot?

54,7K99943236
Посмотреть исходное сообщение
Типичный × 1,0

Saw that DGX Spark vs Mac Mini M4 Pro benchmark plot making the rounds (looks like it came from @lmsysorg). Thought I’d share a few notes as someone who actually uses a Mac Mini M4 Pro and has been tempted by the DGX Spark.

First of all, I really like the Mac Mini. It’s probably the best desktop I’ve ever owned. For local inference with open-weight LLMs, it works great (the plot above captures that well). I regularly run the gpt-oss-20B model on it. That said, I would not fine-tune even small LLMs on it since it gets very hot. The DGX Spark probably targets that type of sustained workload. (From those who have one, any thoughts on the noise and heat levels?) The other big thing that DGX Spark gets you is CUDA support. If you use PyTorch, that’s pretty essential since MPS on macOS is still unstable, and fine-tuning often fails to converge. E.g., see https://t.co/XSz5qcTJTX and https://t.co/8ASr0Q0fS8 I also like the Spark’s for factor (hey, it really appeals to the Mac Mini user in me). But for the same money, I could probably buy about 4000 A100 cloud GPU hours, and I keep debating which would be the better investment. Sure, I could also build/get a multi-GPU desktop. I had a Lambda system with four GTX 1080 Ti cards back in 2018, but it was too loud and hot for my office. And if I have to move it to another room and SSH into it anyway, I might as well use cloud GPUs instead?

@lmsysorg
Изображение публикацииЗагрузка изображения…
189K94674454
Посмотреть исходное сообщение
Типичный × 1,0

Have been taking different local open-weight LLMs for a test drive in different harnesses (Qwen-Code, Codex, Claude Code).

30B Mixture-of-Expert models are kind of a nice sweet spot and can solve challenging problems. And they get roughly 40 tok/sec on a Mac or DGX Spark, which is similar to GPT 5.5 in a Pro subscription and totally useable for everyday work. More interesting is also the harness choice! Claude Code seems to be using 2x many tokens as Codex. Gemma 4 E2B is here just for reference to show that the tasks can't be trivially solved by smaller models. Just finishing a longer write-up about this and will share soon (likely tomorrow)!

Изображение публикацииЗагрузка изображения…
78K900117390
Посмотреть исходное сообщение
Типичный × 1,0

The open-source LLM ecosystem could really benefit from an LLM building-block API.

We have so many LLM components across different models now. Whether you are using PyTorch or C++ and CUDA code directly, there is a major switching cost when you want to run experiments or ablation studies, say swapping GQA with MLA, dense FFNs with MoE, attention layers with Mamba2 or Gated DeltaNet, or standard residual connections with attention residuals. Currently, it’s very messy even with LLM-assisted coding. It could maybe be on top of PyTorch or CUDA directly, but it needs to be carefully engineered and maintained (versus quickly vibe-coded on a weekend) and efficient enough that people trust it to use in production (which is really a requirement to move beyond toy examples). Maybe some food for thought for a big, well-funded lab :) (There are some efforts that go into that direction, like torchtitan, torchtune, Megatron Core, OLMo-core, but they are not quite that level of abstraction, I'd say. And, as always, there’s the chicken-and-egg problem: it needs to be popular to get widely adopted, and it needs to get widely adopted to become popular.)

Изображение публикацииЗагрузка изображения…
46,1K887123607
Посмотреть исходное сообщение
Типичный × 0,9

Wow that escalated quickly. Was gone for a few weeks and now pretty much everyone launched their own decision model copycats:

- Sep 23: Together AI, Tev1-4B - Sep 24: Alibaba Cloud, decision-model - Sep 29: Liquid AI, d1 - Sep 30: Databricks, ai_decide - Oct 1: Amazon AWS, Strands Decider 2B - Oct 1: Cloudflare, Clef and Clef-flash (Clef-omni on Oct 9) - Oct 1: Perplexity, Decider (v1.3 on Nov 12) - Oct 6: OpenAI, Decisions API (GPT-6 Luna) - Oct 7: https://t.co/s8O5rwbq5z, H2O-Lightning-4B - Oct 7: Snowflake, Snowflake Decision - Oct 9: Microsoft, Microsoft-Decision-1 - Oct 15: IBM, Granite Switch 4.1 with Decision adapter - Oct 21: Baseten, Mammoth-1 and Elephant-1 - Nov 6: Salesforce, Koa Decisions - Nov 11: Google DeepMind, Gemini Decision 1 According to a Vercel report, 26% of requests are now routed through decision models 📈

Открыть цитируемое сообщение
43,8K77857580
Посмотреть исходное сообщение
Типичный × 0,8

I think of it as this: LLMs lower the barrier of entry, and they make coders (beginners and experts) more productive. It's still worth investing in becoming an expert, because then you will get even more out of LLMs and will be able to deliver even better results. https://t.co/xVqT99Y0TT

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
74,1K71458210
Посмотреть исходное сообщение
Типичный × 0,7

LLMs are quite capable coders. Now, people say they are limited by programming languages designed for humans.

I think it is the opposite: they are enabled by programming languages designed for humans. You cannot just design a new programming language for LLMs because where would the training data and project examples come from? It’s also interesting how, for that reason, Python acts as a reasoning trace for LLMs. I.e., ask to code up something in Python, then port it to CUDA or Rust (versus coding it in CUDA or Rust) directly.

76,7K66160181
Посмотреть исходное сообщение
Типичный × 0,7

I love this upgrade. Lightning AI is my go-to cloud compute platform due to its user-friendliness (great UI, persistent environment, multi-GPU and multi-node support, etc), and now the prices are also really great.

An A100 for $1.55/hour through Lambda Labs or an H100 for $2.70 through Voltage Point. What's not to like! Disclaimer: This is NOT a sponsored post (I have never done those!). And I was NOT asked or contacted to say this; it's genuinely my preferred platform. I did work at Lightning AI at one time though.

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
94,1K63819485
Посмотреть исходное сообщение
Типичный × 0,6

Comparing new LLM releases via benchmarks is now a bit like using IQ tests for hiring decisions.

Sure, benchmarks are useful baselines and so on, but beyond that, I don't know how indicative they are of our individual tasks and needs. (Yes, also looking at that release yesterday)

54,8K55712575
Посмотреть исходное сообщение
Типичный × 0,6

Maybe a good analogy for how we should use AI in a sustainable way is chess.

Chess engines surpassed human players decades ago, yet professional chess played by humans is still active and thriving. I am not a chess expert, but I'd say the game has probably even become richer and more interesting. Based on what I heard (e.g., based on Kasparov's Deep Thinking book and podcasts featuring Magnus Carlsen), modern players have been using AI to explore different ideas, challenge their intuitions, and analyze mistakes with a level of depth that simply was not possible before. I think this is a useful model for how to think about AI in other forms of intellectual work. Used well, AI can accelerate learning and expand what a single person can reasonably take on. I think we should treat it more as a partner rather than a replacement. But I also think if AI is used to outsource thinking and coding entirely, it risks undermining motivation and long-term skill development.

133K53162152
Посмотреть исходное сообщение
Типичный × 0,5

Whoever gets their hands on the most battle-tested enterprise code...

This is how the ChatGPT vs Claude vs Gemini vs Muse vs Grok race is going to be decided in 2027 and beyond. (And smart enterprises will play multiple fronts.) https://t.co/F9VPgyGhzK

Изображение публикацииЗагрузка изображения…
42,2K47962183
Посмотреть исходное сообщение
Типичный × 0,5

Job roles in 2027: We let LLMs focus on the “how”. We focus on the “why”.

Programmer → Code Composer Before: Writing code line by line After: Designing logic & structuring systems Web Dev → Experience Designer Before: Building layouts and components After: Defining flow, behavior, and structure Data Scientist → Analytics Strategist Before: Cleaning data, structuring queries After: Framing questions, interpreting outcomes

43,2K45427201
Посмотреть исходное сообщение
Типичный × 0,5

There were many people who asked me about joining their startup & co-founding a startup in the past 2 weeks.

Not career advice, but just my 2 cents: I actually think it’s a great time to start a bootstrapped startup compared to going the VC-backed route. These days, there are so many open-weight models available that you can build on top of, or you can use pay-as-you-go APIs. That means you don’t need to burn massive amounts of compute training yet another base model. Meanwhile, most VC-backed startups seem to be pouring money into compute (often without clear differentiation) and at some point, VCs will expect a return on that investment…

41,3K43922117
Посмотреть исходное сообщение
Типичный × 0,5

A little Ember-1 tl;dr.

Seems like a great model! (Was recently asked on a podcast, given $ xx million, what's the best way to develop a frontier LLM today? My recommendation was: start with an existing one and spend that budget on post-training. Great example here.) https://t.co/RjXWtqMxvK

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
48,9K43649240
Посмотреть исходное сообщение
Типичный × 0,5

A couple of days ago, I did a quick explainer on Claude’s new watermarking process and implementation. Since it’s such a popular topic and sparked such a lively discussion, I thought it might be interesting to go into a bit more detail when explaining how it works.

So, instead of the usual text article, I recorded a little lecture on the topic (to change it up a bit from my usual articles). It ended up a bit longer than intended, but I hope it clarifies a lot of things: - Sampling the next token in an LLM and pseudorandom number generators - How watermarking relates to the regular LLM sampling process - Whether watermarking makes text "worse" - How to remove watermarks - Tournament sampling - How new text is checked for watermarks without rerunning the LLM I ended up with ~50 slides, but I hope that these explain it well, though! Happy watching!

Изображение публикацииЗагрузка изображения…
47,4K42038270
Посмотреть исходное сообщение
Типичный × 0,4

Am currently putting together an article, and yeah, the SWE-Bench Verified numbers are definitely a bit sus across all models -- the benchmark suggest they are more similar than they really are.

So, I went down a rabbit hole looking into SWE-Bench Verified issues... And it looks like OpenAI already did really nice work there in their "Why SWE-bench Verified no longer measures frontier coding capabilities" analysis: https://t.co/MqiZb0k4Gx The gist is: 1. After auditing 27.6% of frequently failed tasks, at least 59.4% had flawed tests that reject correct solutions 2. Since SWE-Bench draws from widely used open-source repos, frontier models sometimes reproduced the exact “gold patch” or problem details, which suggest data leakage. (Probably a "duh" given that the dataset has been out since 2023.) Long story short, SWE-Bench Pro seems to a bit of an improvement (for now).

Изображение публикацииЗагрузка изображения…
41,4K3333390
Посмотреть исходное сообщение
Типичный × 0,3

A small follow-up to my DGX Spark post. Courtesy of NVIDIA, I got to try the DGX on my workflows (coding LLMs from scratch in pure PyTorch) and wanted to share my first impressions after using it for a week.

Before getting to the performance, there was a neat bonus I didn't expect: It comes with NVIDIA Sync software that lets you conveniently connect (I fully expected I would have to find my SSH tunneling notes from back when I set up Jupyter Lab, etc, on a remote machine). The setup is a breeze and a delight. Now, how does it fare against my Mac Mini? I included the tokens/sec inference speed for a small 0.6B model I am currently working on. The DGX is much faster than the Mac Mini M4 CPU and still noticeably faster than the M4 GPU (via PyTorch MPS). More importantly, though, as I mentioned before, it is a CUDA device and thus much better supported in PyTorch. This, in turn, results in more stable training and higher benchmark accuracy. (And no compile errors, yay!) Both devices get hot under my workloads (e.g., a constant-load run like evaluating a model with batched mode on MATH-500; or fine-tuning a model), but I feel like the DGX Spark is (probably) made with that in mind. Plus, due to its larger 128 GB RAM, I can run larger batch sizes. Then there's also the aspect that when I have the DGX (vs the Mac Mini) running computations, it keeps my Mini free for other tasks :). Overall, a neat little package and CUDA prototyping machine that I can keep on my desk. It's super quiet similar to the Mac Mini. Of course, it's not as capable as a 6x more expensive H100 for training, but hey, you don't need a server room for that and can keep it in your office without worrying about heat or noise (this was not possible with the Lambda workstation I had a few years ago). tl;dr: So, I've been seeing lots of others using it for LLM inference (Ollama, vLLM, etc) but my first-week impression is that this is also a neat box for local dev and prototyping (e.g., coding and running PyTorch models) thanks to the CUDA support, which comes in handy before starting larger, more expensive training runs. PS: Plus also find another benchmark versus the H100 in the comments below. Will run more experiments over time. In the meantime, let me know if you have any questions.

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
64,7K31620166
Посмотреть исходное сообщение
Типичный × 0,3

Since I had to discuss the "pacing" with a lot of people this weekend, here are my two cents: I don't think pacing literally means that these companies will be "slowing down" training and development in any way.

"Pacing" here means adding a framework for more checks. We have seen some of that "pacing" already in recent months, when Mythos wasn't released as-is but instead a delayed, nerfed Fable variant was released. Or when Astra wasn't released right away / there is an existing Astra model that hasn't been released yet. These Mythos/Fable and Astra pacing decisions were ad hoc. If you are a company, you have to weigh the pros and cons of a delayed release in terms of keeping up with the competition, making money, pleasing shareholders, mitigating risks and harms, and so on. I f there is a formal framework that everyone has to abide by, that essentially relieves some of the pressure on a company to rush out its model just to take the top spot on the leaderboard, since it knows that the competition "has to" play by the same rules. Based on the discussions today, I think "pacing" primarily means just that, rather than a halt in training the models. TL;DR: Pacing != pacing development.

38,1K2906063
Посмотреть исходное сообщение
Типичный × 0,3

Some food for thought when designing benchmarks...

So, here's a little computer-use (visual) comparison between GPT-5.6 Astra and Qwen3.8 Max. The task here was to recreate the image in the center using the Paint UI. Super interesting how the two different LLMs+Harnesses approached this totally differently by default. I.e., Astra tried to approach this by drawing and layering geometric shapes. Qwen approached this pixel by pixel. (Of course, the pixel-by-pixel result looks closer to the original, it's essentially a low-res version of that by nature.) So, the Qwen-generated image would surely score higher in the sense that it's closer to the original. But I wouldn’t conclude from this example that one LLM generalizes better than the other on other tasks. Also, I wouldn't say Qwen has better compute-use capabilities or better visual understanding than Astra. But it highlights an interesting point about how slippery benchmarks are when they only compare final results.

Загрузка видео…
26K2766365
Посмотреть исходное сообщение
Типичный × 0,3

&gt; "Less than half the tokens of 5.2-Codex for same tasks"

That one line already says a lot. There is no assumption anymore that compute or budget is infinite in 2026. But if you can get better modeling performance while using fewer tokens, that's a win-win. https://t.co/JaCdTRMDZx

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
30,1K2491933
Посмотреть исходное сообщение
Типичный × 0,3

Had a great time at PyCon &amp; PyData DE. Highly recommend it. Great open-source, community-focused conference with lots of builders in the Python AI, LLM and agent space.

Taking a short family break, my first "vacation" in years (hopefully, I won't miss the DeepSeek V4 drop 🤞😆) https://t.co/kbKtRZK9aa

Изображение публикацииЗагрузка изображения…
19,8K2391837
Посмотреть исходное сообщение
Типичный × 0,2

LLM versioning rules:

1.If performance is mid → don’t bump (e.g. see GPT-4 → 4.5) 2.If &lt; 4 months since last release → don’t bump (e.g. Qwen3-Next) 3.Else → bump (I hear DeepSeek v4 releases in October )

27,4K2202354
Посмотреть исходное сообщение
Публикации
57
Доля постов
27,1%
Среднее количество лайков
531
Наибольшее кратное
6,0×

Books, Courses, and Video Series

Типичный × 6,6

After 18 months of writing, coding, and experimenting, Build a Reasoning Model (From Scratch) is finally out!

My first copies just arrived! 📚 440 full-color pages. Inference scaling, reinforcement learning, and distillation from scratch. https://t.co/647ksI7sLc

Изображение публикацииЗагрузка изображения…
536K5,94K2813,35K
Посмотреть исходное сообщение
Типичный × 5,4

When I started LLMs-from-scratch I just hoped it might help a few people learn.

Just saw the GitHub the repo has now been forked 10k times! More than the stars, the best part is seeing thousands of people actually use and build on the code ☺️ https://t.co/NoQ7gJNd0y

Изображение публикацииЗагрузка изображения…
234K4,87K574,17K
Посмотреть исходное сообщение
Типичный × 4,3

Just saw that the LLMs-from-scratch repository passed 100,000 stars on GitHub! This is super cool and motivating. I am really happy to see that this open-source repo has helped so many people. Thanks also to everyone who shared ideas and opened PRs with improvements!

Of course, I plan to keep adding new material, including new attention variants and architectures (while bigger projects like RL and Reasoning From Scratch live in their separate repositories). I am also currently working on a larger applied custom “small” LLM project. It has been keeping me super busy this month, but I will share more on that soon. If you are new to it, some of the highlights include 1. Of course, the complete code path from tokenization and attention to pretraining, classification, and instruction fine-tuning, etc. All of it FROM SCRATCH, of course! (RL lives in a companion repo.) 2. From-scratch implementations of Llama, Qwen, Gemma, and Olmo (smaller variants that run locally and can be plugged into the training scripts). 3. From-scratch implementations of attention alternatives and other architecture components, such as GQA, MLA, sliding-window attention, Gated DeltaNet, DeepSeek Sparse Attention, cross-layer KV sharing, and mixture-of-experts 4. Materials on KV caching, training performance, memory-efficient weight loading, DPO, evaluation, and LoRA So, if you don’t have any weekend plans yet, happy tinkering!

Изображение публикацииЗагрузка изображения…
173K3,93K823,35K
Посмотреть исходное сообщение
Типичный × 3,2

I’ve been working on something new: 📚 Build a Reasoning Model (From Scratch).

The first chapters just went live! (The book will cover topics from inference-time scaling to reinforcement learning) https://t.co/m0gXnhATKC

Изображение публикацииЗагрузка изображения…
160K2,93K1062,11K
Посмотреть исходное сообщение
Типичный × 2,8

It’s done.

All chapters of Build A Reasoning Model (From Scratch) are now available in early access. The book is currently in production and should be out in the next months, including full-color print and syntax highlighting. There’s also a preorder up on Amazon. https://t.co/ANaJHjpC2s

Изображение публикацииЗагрузка изображения…
121K2,52K1231,39K
Посмотреть исходное сообщение
Типичный × 2,2

Thanks everyone for all the kind words and feedback. Super happy that you are enjoying Build a Reasoning Model (From Scratch)!

Unfortunately, there's small typo in listing 6.5 on page 198 (see video below). The line "torch.manual_seed(0)" should be "torch.manual_seed(5)" This correction is needed to reproduce the generated response in listing 6.5 and the corresponding log-probability outputs later in Chapter 6. If you use 0, the generated response and the results that follow will be different. This will be fixed in the next printing. I am sorry about the oversight, and I hope this note saves you some debugging time.

Загрузка видео…
107K1,99K601,16K
Посмотреть исходное сообщение
Типичный × 2,2

Since it's summer, and more or less internship and tech interview season, I made all 30 chapters of my Machine Learning Q and AI book freely available for the summer:

https://t.co/vzZHdwTSuF Hope it’s helpful! Happy reading, and good luck if you are interviewing!

153K1,97K372,3K
Посмотреть исходное сообщение
Типичный × 2,0

Btw if you're learning how to build LLMs from the ground up, there's now a 17h companion video course for my LLMs From Scratch book on Manning: https://t.co/jStayj2byi

It follows the book chapter by chapter, so it works great either as a standalone or code-along resource. It's similar to the videos I shared on YT earlier this year, but w/o ads, better navigational structure than YT.

Изображение публикацииЗагрузка изображения…
126K1,79K302,14K
Посмотреть исходное сообщение
Типичный × 1,8

Reasoning from scratch, round number 6! An introduction (and implementation) of Reinforcement Learning with Verifiable Rewards (RLVR) and Group Relative Policy Optimization (GRPO).

00:00 Introduction 01:54 What makes a reasoning model different? 04:25 Reasoning traces and model capability 08:29 Accuracy and format rewards 11:34 Aha moments and DeepSeek-R1 training 14:41 Reasoning effort and answer length 18:38 RLHF and RLVR 23:04 GRPO vs. PPO 26:40 GRPO explained with a cooking analogy 31:43 The KL term and simplified GRPO 35:04 Loading the pretrained model 36:07 Loading the MATH training data 39:26 Sampling model responses 46:30 Computing verifiable rewards 49:55 Computing advantages 51:54 Token and sequence log probabilities 55:29 Implementing sequence log probabilities 57:37 Fixing the inference-mode error 1:02:24 Computing the GRPO loss 1:04:37 Putting the GRPO step together 1:09:19 The GRPO training loop 1:12:57 Training settings, logging, and checkpoints 1:17:24 Running training and inspecting outputs 1:19:28 Loading and evaluating checkpoints 1:22:33 MATH-500 results and training stability 1:24:05 Memory requirements and next steps

Загрузка видео…
77,1K1,61K811,53K
Посмотреть исходное сообщение
Типичный × 1,4

Reasoning from scratch round 2: In this video, I cover the text generation process in LLMs and KV caching (to prepare the base model before adding reasoning techniques in the upcoming ones).

00:00 Introduction and reasoning model demo 01:55 How to work through the book 05:00 Chapter 2 overview 08:25 Checking PyTorch and hardware support 10:26 Apple silicon and MPS caveats 15:00 Cloud GPU options 16:08 Tokens and tokenization 18:20 Qwen3 and the Reasoning From Scratch package 23:05 Encoding and decoding text 26:24 Downloading weights and selecting a device 31:01 Loading the pretrained Qwen3 model 34:32 How LLMs generate text 36:47 Input tensors and batch dimensions 41:48 Running the model in inference mode 44:11 Logits and next-token predictions 49:21 Greedy decoding with argmax 52:28 Building a streaming text generator 01:01:28 Generating text and handling end-of-sequence tokens 01:06:00 Benchmarking text generation 01:14:34 How KV caching works 01:17:22 Adding KV caching and measuring the speedup 01:24:31 Model compilation with torch.compile 01:30:33 Combining compilation with KV caching 01:32:53 Comparing CPU and GPU performance 01:35:32 Recap and next steps

Загрузка видео…
68,5K1,27K471,2K
Посмотреть исходное сообщение
Типичный × 1,4

Reasoning From Scratch: Reinforcement Learning with Verifiable Rewards (RLVR) round 2. Covering clipped policy ratios, KL loss term, format rewards, and other GRPO tips & tricks.

00:00 Introduction and recap 01:52 Interpreting basic GRPO training metrics 06:34 Planned improvements to GRPO 08:58 Running longer training jobs with Python scripts 13:39 Running the baseline GRPO training script 17:29 Loading and plotting training logs 19:29 Diagnosing unstable training 23:55 Evaluating checkpoints on MATH-500 26:26 Downloading existing checkpoints 30:09 Tracking advantage statistics 34:53 Understanding entropy 40:32 Computing entropy in PyTorch 44:17 Interpreting entropy values 48:58 Adding entropy tracking to GRPO 53:36 Analyzing advantage and entropy metrics 56:18 Stabilizing GRPO with clipped policy ratios 1:03:27 Implementing the clipped policy loss 1:09:39 Analyzing clipped policy training results 1:11:25 KL divergence and reward hacking 1:15:12 Adding a KL loss term 1:20:34 Limitations of the simplified KL loss 1:23:04 Format rewards and think tags 1:25:47 Adding special tokens to the tokenizer 1:30:29 Implementing the format reward 1:35:56 Analyzing format reward training 1:38:25 Rewarding format only for correct answers 1:40:48 Further GRPO improvements from research 1:45:43 Next steps and distillation

Загрузка видео…
61,5K1,25K801,17K
Посмотреть исходное сообщение
Типичный × 1,1

Reasoning from scratch, round number 5! This time, talking about log-probability scoring (also a great fundamental concept for loss functions like cross-entropy in pre-training and distillation) and self-refinement.

00:00 Introduction and inference-time scaling recap 05:02 Loading the pretrained LLM 08:00 Comparing and scoring model answers 10:18 Building a rule-based scorer 17:53 Token probabilities and sequence likelihood 26:47 Computing token probabilities in PyTorch 30:12 Token indexing and shifted targets 37:27 Log probabilities and numerical stability 45:57 Scoring answers with average log probabilities 56:24 How self-refinement works 59:07 Generating critiques and revised answers 1:01:00 Implementing the self-refinement loop 1:05:57 MATH-500 evaluation results 1:07:35 Takeaways and next steps

Загрузка видео…
61,2K1,03K43903
Посмотреть исходное сообщение
Типичный × 1,1

Excited to be (finally) heading to the PyTorch Conference!

I’ll be giving a talk tomorrow at 11:00 AM on “The LLM Landscape 2025”, where I’ll discuss the key components behind this year’s most prominent open-weight LLMs, and highlight a few architectural developments that go beyond the mainstream, off the main track. I also look forward to doing a book signing session at 3:20 PM, thanks to the kind invite from the organizers. It’s my first trip since my injury last year, and I’m really looking forward to reconnecting with the community in person after such a long time. If you’re there, please come say hi! (I couldn’t make it for the first day of the conference due to a mandatory appointment, but better late than never! See you all tomorrow.)

Изображение публикацииЗагрузка изображения…
61,7K98531416
Посмотреть исходное сообщение
Типичный × 1,0

Inference scaling part 1. Starting with a modded text generation function (temperature scaling, top-p filtering, multinomial sampling) to generate diverse outputs for self-consistency and best-of-N (improving answer accuracy by>2x)

00:00 Introduction and recap 00:31 Training-time and inference-time scaling 07:52 What we'll implement 11:47 Notebook setup and model loading 17:43 Building a flexible text generation function 24:40 Chain-of-thought prompting 28:26 Sampling and output diversity 33:43 Next-token logits and greedy decoding 38:20 Temperature scaling step by step 42:46 Softmax and token probabilities 47:42 Multinomial sampling 54:51 Adding temperature sampling to text generation 59:31 Top-p filtering step by step 1:10:23 Adding top-p filtering to text generation 1:13:43 Sampling and LLM watermarking 1:16:01 Self-consistency and majority voting 1:20:36 Implementing self-consistency 1:29:02 MATH-500 results 1:35:01 Accuracy and compute tradeoffs 1:36:50 Next steps and self-refinement

Загрузка видео…
46,6K95143820
Посмотреть исходное сообщение
Типичный × 1,0

Reasoning from scratch round 3: This time, I cover generating a verifier for...

a) ...evaluation (base model versus any future model improvement) b) ...the reinforcement learning with verifiable rewards (RLVR) training later on 00:00 Introduction 01:21 Four approaches to LLM evaluation 07:20 Verifiers and reinforcement learning with verifiable rewards 10:52 Notebook setup and dependencies 13:43 Section 3.1 Building a math verifier 18:57 Section 3.2 Loading a pre-trained model to generate text 24:34 Generating and displaying model answers 29:23 Section 3.3 Implementing a wrapper for easier text generation 34:00 Section 3.4 Extracting the final answer box 37:29 Handling answers without boxes 43:17 Section 3.5 Normalizing the extracted answer 46:56 Section 3.6 Verifying mathematical equivalence 53:32 Implementing the equality check 57:48 Section 3.7 Grading answers 59:20 Building and testing the answer grader 1:03:18 Section 3.8 Loading the evaluation dataset (MATH-500) 1:07:51 Section 3.9 Evaluating the model 1:08:34 Prompt templates for evaluation 1:10:47 Prompt sensitivity and memorization 1:13:55 A minimal evaluation example 1:15:32 Building the evaluation loop 1:20:27 Comparing CPU, MPS, and CUDA results 1:21:54 Reproducibility and floating-point math 1:23:37 Base model vs. reasoning model 1:25:30 Summary and next steps

Загрузка видео…
43,4K91534701
Посмотреть исходное сообщение
Типичный × 1,0

I often get questions from readers about how to read and get the most out of my book(s) on building LLMs from scratch. My advice is usually based on how I read technical books myself. This is not a one-size-fits-all approach, but I thought it may be useful to share:

1. Read the chapter preferably offline, away from the computer. Either classic physical form or at least on digital devices without internet. This really helps with focus time and minimizing distractions while reading. Highlighting or annotating confusing or interesting things is good, but I would not look things up at this stage. I also wouldn't run code at this stage. At least not yet. 2. On the second read-through, type up and run the code from the chapter. Copying code is tempting because retyping is a lot of work, but it usually helps me to think about the code a bit more (versus just glancing over it). If I get different results than in the book, I would check the book's GitHub repo and try the code from there. If I still get different results, I would try to see if it's due to different package versions, random seeds, CPU/CUDA, etc. If I then still can't find it out, asking the author would not be a bad idea (via book forum, public GitHub repo issues or discussions, and as a last resort, email) 3. After the second read-through and retyping the code, it's usually a good time to try the exercises to solidify my understanding. To check whether I actually understand the content and can work with it independently. 4. Go through the highlights and annotations. I would bookmark important learnings or takeaways, if relevant for a given project, in my notes documents. Often, I also look up additional references to read more about a topic of interest. Also, if I still have any questions that I feel are unanswered after my previous readthroughs and exercises, I would do an online search to find out more. 5. The previous steps were all about soaking up knowledge. Eventually, though, I somehow want to use that knowledge. So I think about which projects would benefit from what I've learned and incorporate it into them. This could involve using the main concept from the chapter, but also sometimes minor tidbits I learned along the way, e.g., even trivial things like whether it actually makes a difference in my project to explicitly call `torch.mps.manual_seed(seed)` instead of just `torch.manual_seed(seed)`. Of course, none of the above is set in stone. If the topic is overall very familiar or easy, and I am primarily reading the book to get some information in later chapters, skimming a chapter is ok (to not waste my time). Anyway, I hope this is useful. And happy reading and learning!

64,2K86529969
Посмотреть исходное сообщение
Типичный × 1,0

A little video that - explains the relationship between conventional LLMs and reasoning models (and agents), - philosophizes a about "from scratch" approaches, - and explains how to install Python &amp; PyTorch requirements with uv. https://t.co/ahZHoyPa0Q

Загрузка видео…
60,9K86144785
Посмотреть исходное сообщение
Типичный × 0,9

If you are looking for reading material for the upcoming weekend, (the long-promised) Chapter 5 on LLM self-refinement is now finally out in the early access.

Here, we continue the inference-time scaling theme, but we move beyond self-consistency and voting. More specifically, we implement a self-refinement loop, where a model iteratively critiques and improves its own answers. Along the way, the chapter implements several core pieces that will become essential in the upcoming reinforcement learning chapters like log-probability scoring (I finished the RL chapter last week, and it will hopefully be out soon, too). Like always, all of this is implemented from scratch, step by step, of course. I think that seeing it all in working code really helps with understanding how LLM reasoning methods work (versus just looking at the equations). Anyways, with Chapter 5 out, the early-access version of the book has grown quite a bit (~300 pages) and now finally wraps up inference-time reasoning before we transition into the (even more) fun part: reinforcement learning (from scratch!) in the next chapter. 🔗 Here's the link to the book's early access: https://t.co/QbKUmTyq6D Happy reading (PS: Sorry for the delay. It turns out the submitted manuscript got a bit backlogged in the publisher’s processing pipeline. The silver lining is that the reinforcement learning chapter hopefully now follows sooner! )

Изображение публикацииЗагрузка изображения…
37,8K84730491
Посмотреть исходное сообщение
Типичный × 0,9

Reasoning From Scratch round 8, the finale! This last lecture in the series covers distillation as an efficient alternative to the previous reinforcement learning training runs.

(Planning to take a brief break, but I will be back!) 00:00 Introduction and series recap 01:07 Why distill a reasoning model? 02:51 Soft vs. hard distillation 11:06 On-policy vs. off-policy distillation 18:09 Preparing data for reasoning distillation 22:35 Loading the DeepSeek R1 MATH dataset 28:04 Inspecting reasoning traces and final answers 31:27 Tokenization and chat templates 35:58 Pre-tokenizing the training dataset 39:01 Sequence lengths and the 2,048-token limit 42:38 Creating training and validation splits 45:32 Loading the Qwen3-0.6B base model 46:24 Computing answer-token log probabilities 54:10 Cross-entropy loss for distillation 57:25 Training and validation loss helpers 1:02:03 Implementing the distillation training loop 1:07:26 Running the standalone training script 1:09:41 Plotting training and validation losses 1:11:31 Evaluating checkpoints on MATH-500 1:14:09 Comparing teachers and distillation results 1:16:34 Future directions for reasoning models 1:19:41 Bonus exercises and next steps

Загрузка видео…
40,5K81365518
Посмотреть исходное сообщение
Типичный × 0,8

Build a Reasoning Model (From Scratch) is now finally also available on Amazon! Thanks so much to everyone who preordered!

One important note for readers in India: please avoid ordering through @amazon India (@amazonIN) for now since they are selling counterfeit black-and-white copies. The genuine book is printed in color this time and includes a code for registering the book on Manning’s website. If you are based in India, I recommend ordering directly from Manning. (If you received a counterfeit copy, please return it. I am very sorry about the hassle.) Unfortunately, these counterfeit sales also directly hurt my work as an independent author. And reviews from readers who received the fake copies from Amazon India also appear on the global Amazon. com page, which makes it look as if the genuine copies on Amazon. com have the same issues. Based on what I have seen and heard from readers who received the copies from Amazon. com yesterday, Amazon. com itself appears safe. I also ordered a copy through Amazon. com myself, and I can confirm that it's genuine. If you received a genuine copy and have had a chance to read it, I would be very grateful if you considered sharing your experience in a review on Amazon. com, even a short one. It would really help, especially since reviews for the fake copies from Amazon India also show up on the Amazon. com page. Thank you!

@amazon@amazonIN
Загрузка видео…
34,1K71735256
Посмотреть исходное сообщение
Типичный × 0,5

My "The Building Blocks of Today’s and Tomorrow’s Language Models" talk at the PyTorch Conference is now up on YouTube! https://t.co/bGV5w1Aqyq

If you have 25 min this weekend, it's a whirlwind tour to catch you up on the key LLM architecture design considerations in popular LLMs this year (plus, an overview of alternative architecture designs). The silver lining of my late arrival and rescheduling: Since there was no talk after mine, it's followed by a 30 min Q&A instead of just the usual 5 min :)

60,1K48611380
Посмотреть исходное сообщение
Типичный × 0,4

Hey, will be giving a talk on LLM architectures at the @PyTorch Conference next month! 👋

(There will also be an official signing session for my book.) This will be my first in-person event in more than year, and I am really looking forward to it! 😊 https://t.co/uhw6TWRaSG

@PyTorch
Изображение публикацииЗагрузка изображения…
21,2K36012111
Посмотреть исходное сообщение
Публикации
27
Доля постов
12,9%
Среднее количество лайков
985
Наибольшее кратное
6,6×

Reasoning Models and Reinforcement Learning Training

Типичный × 5,0

How can an LLM switch between low-, medium-, and high-effort reasoning? And how does an LLM learn to reason more or less?

I put together a “little” article explaining how these effort levels are implemented at inference time and during training. https://t.co/mc4qiCnq0C

Изображение публикацииЗагрузка изображения…
346K4,54K1134,76K
Посмотреть исходное сообщение
Типичный × 2,3

I have been pretty heads-down this year to finish Chapter 6 on implementing reinforcement learning with verifiable rewards from scratch (using GRPO). I just finished it this weekend, and I'd say it's the best (or at least my favorite) chapter yet!

The goal of this chapter is to explain and implement GRPO from the bottom up. This means coding and walking through each GRPO step one by one (advantages, rewards, logprobs, and loss) and then training a 0.6B base model on the 12k examples from the MATH training set. (This takes the model from 15% to 47% accuracy on the MATH-500 test set, which is about as good as the official Qwen3 reasoning model of similar size.) The focus is on readability and understanding GRPO, but the supplementary materials also contain scripts to run it in a multi-GPU setting. The code notebook is already available on GitHub if you want to take a look: https://t.co/SM58MXjf8V. (And the full chapter should make it to the early access version of the book at https://t.co/vzCr5sTjrf soon!) PS: The next chapter will introduce additional tips and tricks to improve the GRPO algorithm for better and more stable training behavior.

Изображение публикацииЗагрузка изображения…
135K2,1K471,8K
Посмотреть исходное сообщение
Типичный × 1,5

Crazy model! It actually uses the old Qwen2.5-Coder-3B stack and got really great performance with their post-training stack. Need to use it in the next days to see if vibes of VibeCoder actually check out in practice. But impressive first impression!

Based on the tech report, some of the important pieces of their post-training stack: 1. High-signal synthetic data (math problems with credible solutions, code with tests) 2. Multiple reasoning paths for each answer 3. Filtering, filtering, filtering 4. 2-stage SFT (start with broad training, then train on hard long-reasoning samples) 5. Use target (pass@k) accuracy over validation loss for checkpoint selection 6. MGPO (MaxEnt-Guided Policy Optimization) for RLVR: basically a GRPO-style RL method with an extra weighting that favors examples that are neither too easy nor too hard for the current policy 7. Single 64k long-context RL (they found that the usual progressive context expansion hurt this model because early truncation damaged long-thinking behavior) 8. Training data order: they do Math RL, then Code RL, then STEM RL in this particular oder which they found helped overall 9. After optimizing for accuracy, they add a stage that rewards shorter correct trajectories; basically making the model more efficient without accuracy degradation

@k
Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
120K1,33K51960
Посмотреть исходное сообщение
Типичный × 1,2

Evaluating reasoning models is non-trivial. But you can use a verifier to check if answers are indeed correct.

Just finished a 35-page chapter on building one from scratch. Lots of symbolic parsing, math equivalence, edge cases… quite the project. Sneak peek on GitHub below 🔗 https://t.co/Y5MZeE5dI4

Изображение публикацииЗагрузка изображения…
62K1,09K23765
Посмотреть исходное сообщение
Типичный × 1,1

Inference-scaling lets us trade extra compute for better modeling accuracy. Next to reinforcement learning, it has become one of the most important concepts in today's LLMs, so the book will cover it in two chapters instead of just one.

I just finished the first one. It is a 35-page introduction to inference-time scaling through self-consistency sampling. This chapter was a lot of fun to write because it takes the base model on MATH-500 all the way from 15.2% percent to 52.2% accuracy. Seeing that jump without additional training is incredibly satisfying. Submitted the chapter yesterday, and it should appear in the Manning Early Access program in the next few days. (In the meantime the first 176 pages that lead up to this chapter are already available.) The next chapter will focus on self-refinement techniques, where the model improves its own answers through iterative reasoning. Happy reading!

Изображение публикацииЗагрузка изображения…
184K99823735
Посмотреть исходное сообщение
Типичный × 1,0

Ch 6 on RL with verifiable rewards is now available.  Essentially GRPO from scratch, and probably my favorite chapter so far. (First 363 pages done, yay!)

I'm now working on the follow-up with more RLVR runs, more metrics & analyses, and extensions like policy clipping and KL (which were intentionally left out initially to keep the GRPO intro simple and REINFORCE-like). I also have a long list of 15 GRPO algorithmic tweaks queued to run... Fun times! Here's a link to the early access: https://t.co/vzCr5sTjrf Happy weekend!

Изображение публикацииЗагрузка изображения…
45,1K94321635
Посмотреть исходное сообщение
Типичный × 1,0

Another really interesting paper from my 2025 bookmarked papers: On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models (https://t.co/UjhiJW643U).

In short, RL is most effective when applied to data that is neither too close to nor too far from the pre-training distribution. If the data is too in-distribution, RL adds little beyond supervised training. If it is too far out-of-distribution, RL struggles because the model lacks the necessary priors. This has been known before, but it's nice to see it formalized with data and figures to reference.

Изображение публикацииЗагрузка изображения…
49,8K90720749
Посмотреть исходное сообщение
Типичный × 0,9

Could be the start of a trend in new pre-training recipes: no LR decay phase anymore. (Also seen in Kolibri.)

Instead: constant LR + averaging the last N checkpoints (or a running weight average). I guess that makes it easier in practice because you don't have to commit to a total training length upfront. A little meta analysis based on those who share training details: - Classic cosine: Llama 3, OLMo 2, OLMo 3, GLM-4.5, GLM-5, Kimi K3, Phi-4 - WSD ("Warmup-Stable-Decay"): DeepSeek V3, DeepSeek V4, DeepSeek V4.1-Flash, Kimi K2, Kimi Linear, Nemotron 3 Nano, Nemotron 3 Super, SmolLM3, MiniMax M2 - No decay (constant LR plus checkpoint averaging): Kolibri-1, DatologyAI's models

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
66,6K81569629
Посмотреть исходное сообщение
Типичный × 0,9

Looks like we got a new DeepSeek model over the holidays (again) Basically pushes RLVR &amp; self-refinement to gold-level scores on IMO 2025. Coincidentally, I am currently working on the self-refinement chapter, and this comes in handy as a nice, scaled-up case study. https://t.co/AaF1UxGWWO

Изображение публикацииЗагрузка изображения…
46,8K79517241
Посмотреть исходное сообщение
Типичный × 0,9

Workful weekend! The follow-up chapter on GRPO improvements, building on the from-scratch intro, is coming together well. Running lots of experiments. Are there other techniques, beyond the ones below, that would be worth exploring? https://t.co/WtKKdUjJmE

Изображение публикацииЗагрузка изображения…
35,8K77820558
Посмотреть исходное сообщение
Типичный × 0,5

On that note, I am currently running a large-scale experiment on the upcoming inference-scaling chapter:

A) Parallel Sampling - Self-Consistency (Majority Vote) - Rejection Sampling - Best-of-N (Verifier-Based) B) Sequential Refinement - Self-Refinement - Power Sampling - MCMC (Simple) - MCMC (Block as in "Reasoning with Sampling" paper) - Tree-of-Thought ... to decide which one(s) make(s) it for the detailed discussion into the main chapter versus which ones will be included as bonus materials. (All new chapters will of course be automatically available to all the early acessers, amd there are already 170 chapters to get started in the meantime 😊 Anything you'd think is worth adding to the list above?

Открыть цитируемое сообщение
53,6K46527306
Посмотреть исходное сообщение
Типичный × 0,4

What should we focus on, (more) LLM training or inference scaling? (A question I got asked multiple times now, so here are some thoughts.)

Training is usually very, very expensive, but it is a one-time cost. Inference-scaling is comparatively cheap, but it's a cost we pay at each query. Let's assume we have an LLM (or an LLM-powered application) that we want to improve 5% on a given benchmark or problem and do a simple thought experiment. Here are a few more assumptions: - We don't pass the extra cost for this improvement down to the customer. - We could either train the LLM longer for $5 million to achieve the 5%. - Or, for the same 5% improvement, we could pay $0.2 extra per query due to higher token usage. What strategy is better for our company? If you had to choose between the two, then it really depends on how many queries you (or the users) plan to run for the lifetime of that LLM. In this case, the break-even point is 5,000,000 dollars / 0.20 dollars per query = 25 million queries. For example, if each user runs 10 queries per day on average, we reach 25 million queries with about 25,000,000 / (10 per day) = 2.5 million user-days, which is roughly 7,000 daily active users for one year. If we have less than 7,000 daily users, or 7,000 users with less than 10 queries each day on average and plan to replace the LLM in about a year, then training is not worth it. Pro tip: You don't need to choose between the two, you can do both, more training and inference-scaling to get a >5% improvement :).

Изображение публикацииЗагрузка изображения…
26,2K38018233
Посмотреть исходное сообщение
Типичный × 0,3

Wanted to say this is because the competition focused on cheaper models. But that eve doesn't seem true. What seems more plausible is that teams with strong training pipelines and their own hardware can push much more aggressive inference-time scaling at low marginal cost? https://t.co/Zju9keeWEp

Изображение публикацииЗагрузка изображения…
Открыть цитируемое сообщение
46,2K262849
Посмотреть исходное сообщение
Типичный × 0,3

In reasoning model development, it's always been this interesting tension between training/optimizing chain-of-thoughts (CoTs) vs not touching them to preserve monitorability.

CoTs are cool because we can check what the model is up to (e.g., whether it cheats or not) as long as it spells out its thought process. And we risk losing that if we explicitly optimize CoTs. Two caveats: 1) I.e., the catch of CoT and monitorability is that this only works if the written thinking reflects what the model is actually doing. 2) Also, when models become more capable, they spell out less in the CoT (like a cleverer math student needs less note-taking when solving problems during an exam). Nothing new on that front, but an interesting thread below on how to measure "harder to monitor", with some interesting results that confirm the existing intuitions: 1) no-CoT capability (meaning how much reasoning the model can do in a single forward pass without writing anything down) - Better pretraining (lower perplexity) raises this no-CoT capability - Architecture mostly doesn't matter 2) CoT controllability (meaning how well the model can change its written reasoning when asked to add, remove, or change parts of it) - RL alone raises controllability a lot - Controllability is passed on through distillation * Higher no-CoT capability and higher controllability both make monitoring harder. PS: Perhaps the good news is that it seems that process supervision wasn't the main culprit.

Открыть цитируемое сообщение
19K24929130
Посмотреть исходное сообщение
Публикации
25
Доля постов
11,9%
Среднее количество лайков
907
Наибольшее кратное
5,0×

Other

Типичный × 0,8

Just wanted to say Happy Thanksgiving! 🦃

I'll be back in December with some cool LLM-related analyses in the pipeline. In the meantime, you know where to find my blog if you have some time for reading! https://t.co/h7LN08eIPC

Изображение публикацииЗагрузка изображения…
26,4K70846260
Посмотреть исходное сообщение
Типичный × 0,2

Just stumbled across a blog post I wrote almost exactly 10 years ago on my “productivity hacks.” Made me cringe a bit but also feels like a gift from past-me to present-me.

Still using the writing checklist today—funny enough, it even had a note about properly using em dashes 😄 https://t.co/XUDfrRNvZT

Изображение публикацииЗагрузка изображения…
26,9K2238190
Посмотреть исходное сообщение
Публикации
23
Доля постов
11,0%
Среднее количество лайков
414
Наибольшее кратное
3,1×

From-Scratch Implementation and PyTorch Teaching

Типичный × 2,7

If you're getting into LLMs, PyTorch is essential. And lot of folks asked for beginner-friendly material, so I put this together: PyTorch in One Hour: From Tensors to Multi-GPU Training (https://t.co/NWeQan8HJ3) 📖 ~1h to read through 💡 Maybe the perfect weekend project!?

I’ve spent nearly a decade using, building with, and teaching PyTorch. And in this tutorial, I try to distill what I believe are the most essential concepts. Everything you need to know to get started, and but nothing more, since your time is valuable, and you want to get to building things!

149K2,42K493,41K
Посмотреть исходное сообщение
Типичный × 2,5

So, I did some coding this week... - Qwen3 Coder Flash (30B-A3B) - Mixture-of-Experts setup with 128 experts, 8 active per token - In pure PyTorch (optimized for human readability) - in a standalone Jupyter notebook - Runs on a single A100 https://t.co/3AGFdfoKYJ

Изображение публикацииЗагрузка изображения…
139K2,29K321,57K
Посмотреть исходное сообщение
Типичный × 1,2

Tiny Aya reimplementation From Scratch!

Have been reading through the technical reports of the recent wave of open-weight LLM releases (more on that soon). Tiny Aya (2 days ago) was a bit under the radar. Looks like a nice, small 3.35B model with strongest multilingual support of that size class. Great for on-device translation tasks. Just did a from-scratch implementation here: https://t.co/6KEV0DfVQu Architecture-wise, Tiny Aya is a classic decoder-style transformer with a few noteworthy modifications (besides the obvious ones like SwiGLU and Grouped Query Attention): 1. Parallel transformer blocks. A parallel transformer block computes attention and MLP from the same normalized input, then adds both to the residual in one step. I assume this is to reduce serial dependencies inside a layer to improve computational throughput. 2. Sliding window attention. Specifically, it uses a 3:1 local:global ratio similar to Arcee Trinity and Olmo 3. The window size is also 4096. Also, similar to Arcee, the sliding window layers use RoPE whereas the full attention layers use NoPE. 3. LayerNorm. Most architectures moved to RMSNorm as it's computationally a bit cheaper and performs well. Tiny Aya is keeping it more classic with a modified version of LayerNorm (the implementation here is like standard LayerNorm but without shift, i.e., bias, parameter).

Изображение публикацииЗагрузка изображения…
68,6K1,13K22813
Посмотреть исходное сообщение
Типичный × 0,7

Yes, it’s popular to hate on tokenizers but it’s still useful to know about them.

Haven’t shared this before, but I have an from scratch BPETokenizer I coded up last year: https://t.co/sDAjxSkUuf (Karpathy also has an excellent video covering some of the other bits)

38,5K6539447
Посмотреть исходное сообщение
Публикации
12
Доля постов
5,7%
Среднее количество лайков
1 445
Наибольшее кратное
4,1×

Вопросы о контент-стратегии Sebastian Raschka

Каковы основные темы контента Sebastian Raschka?

Основные темы включают Open-Source Large Model Architecture Analysis and Comparison, Model Evaluation, Benchmarks, and Industry Observations, Books, Courses, and Video Series и Reasoning Models and Reinforcement Learning Training.

Посмотреть темы контента ↗

Какие темы Sebastian Raschka дают большую долю отметок «Нравится», чем публикаций?

На тему From-Scratch Implementation and PyTorch Teaching приходится 5,7% публикаций и 7,4% отметок «Нравится».

Reproducing LLM components and models from scratch in pure PyTorch/Jupyter, accompanied by GitHub repositories, tutorial articles, and code walkthroughs, intended for learning and teaching purposes.

Например: Couldn't resist. Here's a pure PyTorch from-scratch re-implementation of Gemma 3 270M in a Jupyter ↗

Посмотреть результаты по темам ↗

В какие временные интервалы у Sebastian Raschka на X самая высокая медиана отметок «Нравится»?

В интервале понедельник 16:00–20:00 UTC самая высокая медиана: 2 299 отметок «Нравится» по одной публикации. Среди интервалов с минимум тремя публикациями с известным числом отметок «Нравится» лидирует вторник 20:00–24:00 UTC: 3 публикациям, медиана — 1 736.

Посмотреть время публикации ↗

У какой публикации Sebastian Raschka больше всего отметок «Нравится»?

Самая популярная публикация получила 8 071 отметок «Нравится» — примерно в 8,9 раза больше медианы на публикацию у Sebastian Raschka.

В публикации от 15 марта 2026 г. написано: «I (finally) put together a new LLM Architecture Gallery that collects the architecture figures all in one place!».

Открыть исходную публикацию ↗

Какие форматы чаще публикует Sebastian Raschka и как сравниваются видео и изображения?

Изображения — самый частый формат у Sebastian Raschka, его доля составляет 42,9% публикаций.

Среднее число просмотров видео в 0,51 раза выше, чем у изображений; медиана просмотров выше в 0,84 раза.

Посмотреть форматы контента ↗

Как часто Sebastian Raschka публикует на X?

За период отчёта Sebastian Raschka публикует примерно 2,8 раз в неделю.

Sebastian Raschka чаще всего публикует в следующие дни: вторник (публикаций: 38) и суббота (публикаций: 38).

Больше всего публикаций было 12 ноября 2026 г.: 3.

Посмотреть календарь публикаций ↗

Как ViewSocial использует ИИ для анализа контента Sebastian Raschka?

ИИ группирует публикации по темам. Откройте тему, чтобы изучить её результаты и исходные публикации.

Посмотреть темы контента ↗