r/huggingface • • Aug 29 '21

r/huggingface Lounge

9 Upvotes

A place for members of r/huggingface to chat with each other


r/huggingface • • 39m ago

I built a drop-in replacement for AutoTokenizer that's 474×–11,842× faster than HuggingFace tokenizers (same exact token IDs)

Post image
2 Upvotes

Hey everyone!

I built tuetoken, a fast Rust BPE tokenizer that works as a drop-in replacement for transformers.AutoTokenizer. You just swap one import line, load any model's tokenizer.json straight from the HuggingFace Hub, and get 100% bit-for-bit identical token IDs (including chat templates, special tokens, padding, left/right truncation, and Whisper timestamps).

Install: pip install tuetoken (MIT license)
GitHub: https://github.com/tuetoken-org/tuetoken

How fast is it vs HuggingFace tokenizers / transformers?

All tested on Apple M4 Max (14 cores) and verified on Linux (AMD Zen 4), with token IDs checked identical before timing:

  • 1 GB text corpus (cold start): 4.50 GB/s vs 9.5 MB/s (474× faster, and 71× faster than tiktoken, 2.5× faster than gigatoken)
  • Popular HF models (25 MB):
    • Llama-4-Scout: 9.00 GB/s vs 20 MB/s (446× faster)
    • Qwen3-8B: 6.77 GB/s vs 7.3 MB/s (927× faster)
    • Gemma-3-4B: 5.07 GB/s vs 55 MB/s (93× faster)
    • DeepSeek-V3: 3.77 GB/s vs 9.2 MB/s (410× faster)
  • Loading tokenizer.json: 7–20 ms vs 84–348 ms (12–29× faster startup)
  • Truncating long docs (50 MB, max_length=512, right & left): 1.3–2.8 ms vs 10.6+ seconds (4,381× to 11,842× faster — it stops early once it has enough tokens instead of tokenizing the whole document first!)
  • Whisper (whisper-large-v3): decode_with_timestamps batch is 323× faster (0.098 ms vs 31.7 ms)
  • Byte offsets (1 MB): 215× faster (1.16 ms vs 249 ms)

How to use it

from tuetoken import AutoTokenizer

tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B")
out = tok(texts, truncation=True, max_length=512, padding=True, return_tensors="np")

It loves the HuggingFace tokenizer.json ecosystem — no custom files or conversions needed. The full benchmark script (tools/bench/bench_vs_all.py) and raw numbers are in the repo so you can run it on your own machine.

If you try it on a model from the Hub and hit any edge case where a single token ID differs from transformers, please open an issue — happy to fix it fast!


r/huggingface • • 3h ago

👋 Welcome to r/Tensormorph - Introduce Yourself and Read First!

Post image
3 Upvotes

I'm building Tensormorph, a visual IDE for inspecting open-weight models from the Hub down to individual weights

Tensormorph Logo

Hi r/huggingface! I'm building Tensormorph, a desktop Tensor IDE for exploring, inspecting, comparing, and debugging open-weight models.

The problem: we download models from the Hub all the time, but the weights themselves are a black box. A Safetensors or GGUF file is millions or billions of numbers with very few ways to actually look at them.

What Tensormorph does: you start from a model's full architecture and drill down through layers, modules, tensors, matrix tiles, and individual scalar values. Along the way you get:

- Interactive heatmaps of weight tensors

- Per-tensor statistics and distributions

- Side-by-side comparison of a base model and its fine-tunes

- Quantization analysis (where a quantized model drifts from the original)

- Inspection that scales to large models

TEL (Tensor Expression Language): Tensormorph also includes a short, math-like language for tensor operations. You write it the way it looks in a paper, with named axes, and it maps directly to the tensors and graph nodes in the model:

scores[B,H,T,S] = q[B,H,T,D] @ k[B,H,S,D] / sqrt(D)
out[B,H,T,D]    = softmax(scores, axis=S) @ v[B,H,S,D]

(early sketch, syntax still evolving)

Select a term in the formula and you see the matching tensor, or the other way around.

I'd love your input:

  1. Which Hub models would you want to inspect first?
  2. Do you compare fine-tunes against their base model today? How?
  3. What would you want to see when checking a quantized model (GGUF, GPTQ, AWQ)?

It's still early. Happy to answer questions about how it works.


r/huggingface • • 2h ago

What is Tensormorph? A quick explanation of the Tensor IDE for open-weight models

Post image
1 Upvotes

In one sentence: Tensormorph is a desktop IDE where you can open an open-weight AI model and inspect, compare, debug, and transform it, from the full architecture down to a single weight value.

Why it exists

Open-weight models are everywhere, but their weights are still a black box. Code has IDEs, debuggers, and diffs. Model weights mostly have file viewers and static graph diagrams. Tensormorph tries to give model weights the tools that code already has.

How it works

You load a model (Safetensors or GGUF) and navigate it as a hierarchy:

Model → Layer → Module → Tensor → Matrix tile → Row/Column → Scalar

At each level you can:

  • See tensors as interactive heatmaps
  • Measure statistics and distributions per tensor
  • Compare a base model with its fine-tunes, side by side
  • Check how quantization changed the weights
  • Scale to large models without loading everything into memory

What is TEL?

TEL (Tensor Expression Language) is Tensormorph's math-like language for tensor operations. You write operations the way they appear in papers, with named axes:

out[B,H,T,D] = softmax(q[B,H,T,D] @ k[B,H,S,D] / sqrt(D), axis=S) @ v[B,H,S,D]

Tensormorph turns that into a computation graph and links each term to the real tensors in the model. Click part of the formula to see its tensor, or click a tensor to see where it appears in the math. (Syntax is still evolving.)

What it is not

  • Not a training framework
  • Not just a graph viewer like Netron
  • Not a cloud dashboard: it runs locally on your machine

Who it's for

ML engineers and researchers who fine-tune, quantize, merge, or debug open-weight models, and anyone who wants to understand what's actually inside them.


r/huggingface • • 9h ago

fixing Huggingface download speeds in Comfy?

Thumbnail reddit.com
1 Upvotes

Any idea how to fix this? (I have already done a ton of searching, I am posting because I haven’t figured it out - this is not a LMGTFY thing)


r/huggingface • • 10h ago

Models that carry their units, so a rerun cannot silently mean something else

0 Upvotes

A model checkpoint reproduces a function, not the model. The units, the parameter ranges and the reason a term exists all live in whoever wrote the code, and six months later that context is gone. I have watched a simulation get rerun with a rate in the wrong time base and produce a curve that looked plausible enough to publish.

axiomize is the modeling layer I built around that gap. A model is declared with mandatory units on every parameter and variable, kept in a versioned Model IR, and validated before any numbers come out. Because the checks run on canonical unit scales and not only dimension exponents, a rate declared 1/s while the independent variable is in day fails instead of quietly producing a value 86,400 times off.

The failure is loud by construction. Simulation routes through the same validation as axiomize model --action validate, and a mismatch raises ModelDimensionMismatch with the failing checks instead of returning an array. There is also an audit for the quiet version of the problem: unit_declaration_audit lists every symbol that would default to dimensionless, which is usually where an unlabeled constant is hiding.

What leaves the tool is the part that survives a move between machines. Models export to canonical JSON, Python, YAML, notebooks, SBML Level 3, CellML 2.0, Modelica, GraphML, Graphviz DOT and a SHA-256 portable bundle, and values with units round-trip bit-exactly, asserted in the test suite rather than stated in prose. A run ledger keeps the provenance, so a stored result can be checked before someone reuses it, and axiomize-to-latex turns a standardized report into LaTeX if the output has to become a document.

There are sixteen actions under axiomize model for the lifecycle, including plan, validate, simulate, fit, compare, repair, numerical-verify and export. Numerical verification compares against closed-form theory and separates numerical error from stochastic variability before it claims convergence, which is the only part of the pipeline that can honestly be called verification.

Install is pip install axiomize, or npm install -g axiomize. What it does not do: it does not make a bad model good, it makes a bad model fail loudly, and dimensional checking catches unit errors rather than physics errors. Bayesian sampling needs the full extra with PyMC and JAX, FEM needs FEniCS, and both are reported as unavailable instead of being silently substituted. The worked examples use illustrative parameter ranges, not literature-backed ones. MIT, 1.15.0: https://github.com/Furox-Art/axiomize


r/huggingface • • 1d ago

We released ChatrXL Uncensored — an SDXL model with 20-step quality and 8-step DMD2 builds

Thumbnail
gallery
20 Upvotes

Happy Thanksgiving, folks!

Thank you for helping our previous release, Qwen-Image-2.1 Uncensored Omni, pass 500,000 downloads on Hugging Face. We appreciate everyone who tried it and shared feedback.

Today we’re releasing ChatrXL Uncensored, for people generating images locally at home who don’t have a high-end GPU.

Two builds are available:

  • Quality: 20 steps, CFG 5.0, Euler a.
  • DMD2 Fast: 8 steps, CFG 1.1, LCM.

Both are complete 6.94 GB FP16 checkpoints, with the VAE and both text encoders included. No separate base-model download needed.

ChatrXL is an SDXL/Pony-family model trained on a substantial collection of new images, with a focus on visual quality and creative flexibility. This release adds no prompt filter or output safety checker.

We’ve included ComfyUI workflows, Diffusers instructions, and recommended embeddings. It’s primarily text-to-image, though we’ve also had good results using IP-Adapter for reference-image guidance.

Model weights and documentation:
https://huggingface.co/chatrlabs/ChatrXL-Uncensored

Live Playground:
https://chatrlabs.com/playground

GitHub:
https://github.com/chatrlabs/ChatrXL-Uncensored

Civitai:
https://civitai.com/models/3065186

Our previous Qwen Omni release:
https://huggingface.co/chatrlabs/Qwen-Image-2.1-Uncensored-Omni-Quantized

Give it a try and tell us how it runs on your GPU! Sharing results, reporting issues, and spreading the word helps us keep releasing more open-weight models.

And yes, we’d love to train H3 Omni next—we’re short on compute right now, so any support helps.

Thanks, everyone!


r/huggingface • • 13h ago

I squeezed Ming-Image 0.2 Design (24.9B, #1 open-weight) onto a 16 GB Mac — side-by-side vs the 80 GB CUDA reference (free MLX Q4/Q8 weights inside)

Thumbnail gallery
1 Upvotes

r/huggingface • • 13h ago

Fintan-9B update, plus fixes for bugs someone else found

1 Upvotes

A couple of days after I put Fintan-9B out, jstarks on Hugging Face spent his free time testing it and built his own version on top of it (huggingface.co/jstarks/Fintan-9B-Weight-Space-Programming). He found some real bugs, ones I'd already been trying to fix, so big thanks to him.

What changed:

It answers in full sentences now. Before, if you asked about something it learnt you'd just get a few words back.

If you give it tools, it actually uses what it learnt in the tool call now. Before it got 0 out of 12, now 9.

If you ask about a date after its last update, it doesn't pretend anymore. Before, 10 out of 10 of those got answered from old stuff, now 0.

Thinking mode doesn't mess with answers about things it learnt anymore.

It also gets questions that don't name the thing directly. Like asking "is the big naval ship still in that Libyan port?" without saying which ship. Those went from 15 to 22 out of 60, and normal questions still get left alone.

And it checks your GPU and RAM and picks how to learn by itself.

The downside: with full sentences it gets a couple fewer of the 172 news questions right (about 152 vs 154). I'd rather it talks normally, and I'm working on getting those back. MMLU, GSM8K and ARC are basically the same.

To update, just run python scripts/update.py. Nothing you taught it gets lost.

Next I'm working on Fintan-4B and the job loop.


r/huggingface • • 19h ago

EU LLMs as a service, beyond Mistral?

Thumbnail
reddit.com
2 Upvotes

r/huggingface • • 1d ago

ocr speed on consumer cards is still annoying so i tried OXR on a spare server

7 Upvotes

got a chance to run OXR from SoMarkAI this week, the 1.3B parser that outputs markdown or json with bounding boxes and reading order. tables come back as html, formulas as latex, even smashes through handwritten stuff and dense layouts like exam papers. runs on vLLM, one docker image, done.

you need 24GB VRAM minimum, 48GB for long docs or running multiple pages. i had a box with an A6000 so it worked out. bf16, linux, the usual. there's a free hosted api if you just wanna test without the hardware hassle, no signup but it's queued.

the thing that caught my eye was their training loop. they parse a batch, bucket stuff into right/wrong/uncertain, have a vlm write up why the bad ones failed, cluster those reasons, then generate targeted training data per cluster for the next round. rsi, they call it. plus the layout model is swappable and recognition happens in one pass. that's how they got the speed they claim.

on their benchmarks it hits top on olmOCR-Bench, OmniDocBench and DocParsingBench. they clocked one page per second end to end on an RTX PRO 6000, fastest of 21 parsers they tested. i haven't timed mine carefully yet.

license is apache 2.0 with a twist: free for commercial use under $2M in funding plus revenue, can't run a competing hosted api. worth reading before you build on it.

anyone actually running this on a 3090 or 4090? curious what real pages per second look like on consumer hardware. also if you're piping the output straight into a local llm, what breaks?


r/huggingface • • 20h ago

Inkling-2-Mini-Unbound v3: no more thinking loops (debugging 73.3% → 100%, answers 3x faster), plus Inkling-2-Mini-Prime, the same fix for the original censored model

Thumbnail
reddit.com
2 Upvotes

r/huggingface • • 21h ago

I built a Windows app that lets you tick which Hugging Face models to download

2 Upvotes

I wanted to back up models to an external drive, so I built a little Windows app for it. The catalogue has 75 Hugging Face models. Tick the ones you want, pick a folder, and click Check space to see how much room your selection needs.

Click Download selected to start. You can pause and resume the queue, and the app verifies each model when it finishes. It runs on 64-bit Windows without installing Python.

The Windows download, source code and full model list are on GitHub.

https://github.com/skidneydudz/model-archive-downloader

If there’s a model you’d like to see added, let me know.


r/huggingface • • 1d ago

Inkling-2-Mini-Uncensored (Apache 2.0): pure-gradient SimPO editing only 144 BF16 attention and router weights (0 NVFP4/MXFP8 bytes modified, 98.5% compliance, +11.5 pp IFEval, Safetensors + GGUF + lossless MLX)

Post image
3 Upvotes

blearyhope/Inkling-2-Mini-Uncensored (Apache 2.0) is now live across Safetensors, GGUF, and lossless native MLX.

Links

Full Uncapped Evaluation Summary (43,450 runs per model)

All metrics below were measured with identical vLLM settings (temperature=0.0, --max-model-len 16384, zero artificial max_tokens caps). Safety and over-refusal were evaluated across all 3,607 held-out prompts x 2 reasoning modes (7,214 runs, zero training overlap) scored by an Orca judge (Qwen3.8-27B-Uncensored-FP8); capabilities were scored with exact verifiers on 100% of every split.

Benchmark (Exact Split)Official Base (off / think)Inkling-2-Mini-Uncensored (off / think)Delta
Held-Out Harmful Compliance (n = 1,998 / mode, 7 suites)7.56% / 8.56%98.00% / 98.55%+90.4 / +90.0 pp
Hard Refusal Rate (3,996 total harmful runs)63.06% / 63.86%0.00% / 0.00% (0 / 3,996)-63.1 / -63.9 pp
Held-Out Benign Answer Rate (n = 1,609 / mode, 3 suites)80.30% / 80.36%99.88% / 100.00% (0 refusals)+19.6 / +19.6 pp
Loop Stress Probe (48 off + 48 think)2.1% / 2.1%100.0% / 100.0% (96 / 96)+97.9 / +97.9 pp
Wrapper Generalization (shapes60, 5 formats)4.7%96.3% (0.0% refuse)+91.6 pp
IFEval Prompt-Strict (541 x 2, uncapped)86.14% / 80.41%91.68% / 91.87%+5.54 / +11.46 pp
IFEval Inst-Strict (541 x 2, uncapped)87.53% / 80.34%94.60% / 94.60%+7.07 / +14.26 pp
IFEval 16K Loop Failures (1,082 runs)127 loops (38 / 89)3 loops (0 / 3)42x fewer loops
GSM8K Chat (1,319 x 2, uncapped)96.74% / 96.06% (12 loops)96.82% / 96.74% (0 loops)+0.08 / +0.68 pp
ARC-Challenge Chat (1,172 x 2, uncapped)97.44% / 96.50% (14 loops)97.35% / 97.27% (0 loops)-0.09 / +0.77 pp
MMLU Log-Likelihood (14,042 q)76.95%76.17%-0.78 pp
ARC-Challenge / ARC-Easy LL (1,172 / 2,376 q)94.03% / 98.23%94.11% / 97.90%+0.08 / -0.33 pp
HellaSwag Norm LL (10,042 q)77.71%77.97%+0.26 pp
WinoGrande LL (1,267 q)71.98%73.09%+1.11 pp
TruthfulQA MC2 (817 q)37.10%35.87%-1.23 pp
WikiText-2 Word / Token PPL (311,523 tok)10.14 / 6.0110.25 / 6.06+0.11 / +0.05
WikiText-2 KL Divergence vs. Base (311,523 tok)0.000000.009854.5x cleaner than closed-form

Per-suite held-out harmful compliance (off / think): AdvBench 100.0% / 100.0%, HarmBench 93.4% / 96.9%, JailbreakBench 98.5% / 100.0%, OR-Bench toxic 99.8% / 99.8%, SORRY-Bench 97.7% / 97.1%, StrongREJECT 98.8% / 100.0%, XSTest unsafe 96.2% / 95.7%.

How It Was Built

1. Editing only 144 BF16 attention + MoE router weights (0 quantized weights modified)
Inkling 2 Mini is a mixed-precision NVFP4 / MXFP8 looped MoE (24 layers, middle layers L6 to L17 executed 3x per token, 128 routed experts per layer). Mechanistic attribution showed 80.5% of the refusal write comes from the quantized MoE MLPs, with 73% to 98% of each layer's refusal write concentrated in just the top-5 experts. De-quantizing NVFP4/MXFP8 experts to BF16 and re-quantizing injects double-quantization damage.

Closed-form weight editing was thrown away completely. Starting from unmodified official thinkingmachines/Inkling-2-Mini, rank-32 BF16 LoRAs (rsLoRA + LoRA+, 0.5x LR on the 3x-looped middle core, plus exact AlphaEdit benign null-space anchoring) were trained on only the 120 BF16 attention projections and all 24 BF16 MoE routers (mlp.gate). Lossless BF16 merging yields a median relative L2 delta of 3.29% (min 1.83%, max 4.57%) and 0.00985 WikiText-2 KLD. Every NVFP4 expert, MXFP8 expert, quant scale, vision tower (ViT) weight, and DSpark speculative draft head (mtp.safetensors) remains 100% byte-identical to official Base.

2. Fixing Thinking Machines' documented greedy reasoning-loop bug
Section 7 of Thinking Machines' official model card documents that Inkling 2 Mini sometimes gets stuck in long repetitive reasoning loops. Under uncapped greedy decoding (16,384 context), official Base hit the 16K context wall 127 times on full 100/100 IFEval (plus 53 times on the held-out report think-on split, 14 times on ARC-C chat, and 12 times on GSM8K).

Real on-policy CoT loops and synthetic Inkling-native CoT-DITTO loop negatives were incorporated into SimPO, and every truncated trajectory was banned from chosen and SFT targets so the model never learned premature EOS. IFEval loops dropped from 127 to 3 (42x fewer), loops dropped to 0 across GSM8K, ARC-Challenge, and the 3,607-prompt held-out report, average IFEval token length fell from 2,791 to 1,405, and uncapped IFEval rose by +11.46 pp prompt-strict / +14.26 pp inst-strict.

3. Why summed DPO stalled at 21% and length-normalized SimPO jumped +64.4 pp in one round
In Round 1, standard summed DPO loss collapsed to 0.00007 while thinking-off compliance stayed stuck at 20.6%. Uncapped compliant chains of thought are 1.8x to 2x longer than refusals, so summed log-probs saturated the DPO objective even while per-token log-probs still favored refusal by -0.225 nats/tok at decode time. Switching to length-normalized weighted-mean SimPO anchored at the exact first divergence token (lcp) plus final-answer onset moved thinking-off compliance from 20.6% to 85.0% (+64.4 pp, 0% refusals) in a single round. Synthetic prefills were also thrown away: because 100% of Inkling 2 Mini's natural reasoning traces open with "The user ...", positives were generated via zero-leak Context Distillation (system prompt stripped and instruction mentions filtered).

Format Verification & Quickstart

  • MLX (blearyhope/Inkling-2-Mini-Uncensored-MLX, 20.22 GB + mtp/**):** Preserves the native NVFP4/MXFP8/BF16 mixed layout losslessly. Direct logit verification against PyTorch Safetensors: 5/5 top-1 token match, 0.999964 mean cosine similarity, 0.000000 full-vocab KL divergence.
  • GGUF (blearyhope/Inkling-2-Mini-Uncensored-GGUF): All 7 builds quantized directly from lossless BF16 and live-tested on CUDA (RTX PRO 6000 Blackwell, mainline llama.cpp inkling2_loop support):

    • BF16 (52.23 GB + 0.64 GB mmproj-F16): 10/10 GSM8K, 100% Orca comply, 19.5 tok/s
    • Q8_0 (27.82 GB): 5/5 GSM8K, 42.2 tok/s
    • Q6_K (23.49 GB): 5/5 GSM8K, 55.5 tok/s
    • Q5_K_M (19.91 GB): 5/5 GSM8K, 53.3 tok/s
    • Q4_K_M (17.48 GB, recommended default): 5/5 GSM8K, 100% Orca comply, 79.6 tok/s
    • IQ4_XS (14.76 GB): 5/5 GSM8K, 100% Orca comply, 62.6 tok/s
    • Q3_K_M (13.72 GB): 5/5 GSM8K, 100% Orca comply, 57.5 tok/s

Ollama (Q4_K_M):

ollama run hf.co/blearyhope/Inkling-2-Mini-Uncensored-GGUF:Q4_K_M

**llama.cpp (**llama-server with vision):

llama-server -hf blearyhope/Inkling-2-Mini-Uncensored-GGUF:Q4_K_M --mmproj mmproj-Inkling-2-Mini-Uncensored-F16.gguf -ngl 99 -c 16384 -fa on

vLLM (native NVFP4/MXFP8 Safetensors):

vllm serve blearyhope/Inkling-2-Mini-Uncensored \
  --trust-remote-code \
  --reasoning-parser inkling \
  --enable-auto-tool-choice \
  --tool-call-parser inkling

MLX (Apple Silicon, 32 GB+ Unified Memory):

pip install -U mlx-vlm
python -m mlx_vlm.generate --model blearyhope/Inkling-2-Mini-Uncensored-MLX --prompt "Explain how MoE routers work."

Tradeoffs and Caveats

  • MMLU LL dips slightly (from 76.95% to 76.17%, -0.78 pp), TruthfulQA MC2 shifts -1.23 pp (from 37.10% to 35.87%), and WikiText-2 word/token perplexity moves +0.11 / +0.05.
  • This checkpoint intentionally removes refusal guardrails for uncensored local inference, alignment research, and red-teaming evaluation.

r/huggingface • • 1d ago

Best small local VLM for reading on-screen graphics in video frames? Already tried Qwen3.5, moondream and SmolVLM2

Thumbnail reddit.com
2 Upvotes

r/huggingface • • 1d ago

We just launched a free Document PII Anonymisation tool – Give it a try on Hugging Face!

1 Upvotes

Hi everyone!

At Pangeanic, we've developed and launched a free Document Anonymisation tool that allows anyone to upload PDF documents, automatically detect Personally Identifiable Information (PII), and anonymise sensitive content to help protect privacy.

What can it do?

  • 📄 Upload PDF documents
  • 🔍 Detect Personally Identifiable Information (PII)
  • 🔒 Anonymise sensitive content to help protect privacy
  • ⬇️ Download the anonymised PDF in the same format while preserving document structure

👉 Try it here: Document PII Anonymisation – Pangeanic


r/huggingface • • 1d ago

Attackers use Hugging Face’s AI to host phishing pages

Thumbnail
aikido.dev
0 Upvotes

r/huggingface • • 2d ago

I collected all 24 of Hugging Face's free, book-length interactive guides (Ultra-Scale Playbook, MoE Handbook, Smol Training Playbook...) in one place

18 Upvotes

If you've read the Ultra-Scale Playbook, you know how good these are: long-form, interactive, with real numbers from real training runs. Hugging Face has published a whole series of them, but they're spread across different orgs and Spaces, so they're easy to miss.

I put them all in one Hugging Face collection: https://huggingface.co/collections/justjuu/hf-playbooks-and-interactive-explainers

The core series

  • The Ultra-Scale Playbook: data, tensor, pipeline and context parallelism, ZeRO, and training on large GPU clusters
  • The Ultimate MoE Training Handbook (new): ~70k words and 55 interactive figures on training Mixture-of-Experts models
  • The Smol Training Playbook: the end-to-end story of training SmolLM3, from ablations to post-training to infrastructure
  • FineWeb: how to build a pretraining dataset at scale
  • The Evaluation Guidebook: how to evaluate LLMs properly

Data: FineTasks, FinePDFs, FinePhrase (synthetic data), FineVision

Post-training & RL: on-policy distillation, the TRL distillation trainer, RL environments for agents, async GRPO, chat templates and tokenization for agentic RL

Architecture & concepts: flow matching, looped transformers, encoder-free VLMs, NLP before LLMs, how the transformers library is engineered

Robotics: LeRobot's robot learning tutorial, robot folding

Bonus: the companion GPU memory predictor for the Ultra-Scale Playbook, and the open-source template these guides are built with, in case you want to write your own.

If I missed any good ones, drop them in the comments and I'll add them.


r/huggingface • • 1d ago

Тижневий топ спейсів на Hugging Face.

Post image
0 Upvotes

r/huggingface • • 2d ago

Open Sourcing GLM 5.3 Flash Abliterated (MXFP4)

Thumbnail
huggingface.co
0 Upvotes

r/huggingface • • 2d ago

Probably the biggest vehicle dataset in Europe

1 Upvotes

Hi guys I tried building the biggest dataset with car models and brands labeled for European market, maybe it can help someone ;)

Link: https://huggingface.co/datasets/rdo1/euro-vehicle-corpus-full


r/huggingface • • 2d ago

Inkling-2-Mini-Astral-Q now runs up to 32% faster than vLLM on our open-source Astral Inference Server

2 Upvotes

Alongside our Inkling 2 Mini GGUFs on Hugging Face, our engine, Astral Inference Server v2.5, is open source today.

On one H100 PCIe, single stream:

• Without MTP: 172.0 tok/s, 32% faster than vLLM, 27% faster than SGLang • With MTP: 233.3 tok/s, 11% faster than vLLM, 13% faster than SGLang

512 tokens, greedy, 8,192 context, average of 32 prompts. Draft length 7 for vLLM and SGLang, adaptive 2 to 6 for Astral.

Model: https://huggingface.co/synthetic-minds/Inkling-2-Mini-Astral-GGUF Engine: https://github.com/syntheticminds-lab/Astral-Inference-Server

I'm with Synthetic Minds, who made both.


r/huggingface • • 2d ago

Can your local model decode a fax? I tried 4 open models and none could read a single fax page. Welcome to the Fax Test.

Thumbnail reddit.com
2 Upvotes

r/huggingface • • 2d ago

Lossless compression of LLM weights below their per-tensor entropy: Qwen3.8-27B BF16 at 10.43 bits/weight, bit-identical (open codec + paper)

Thumbnail
reddit.com
2 Upvotes