ml-fw-prerelease

community
Activity Feed

AI & ML interests

None defined yet.

lbourdoisย 
posted an update 2 months ago
view post
Post
1200
New blog post!
An introduction to a little-known but highly effective model reduction method: ๐—ง๐—ฟ๐—ถ๐—บ๐—บ๐—ถ๐—ป๐—ดโœ‚๏ธ
We show how to reduce model size (we went up to 87.24% reduction) while preserving its performance.

We applied this technique to 16 different model families across several modalities to illustrate that it works on any architecture (as long as the embedding layer is the last one of the model) and on any modality involving text.
From these 16 families, we generated over ๐Ÿฑ,๐Ÿฑ๐Ÿฌ๐Ÿฌ ๐—บ๐—ผ๐—ป๐—ผ๐—น๐—ถ๐—ป๐—ด๐˜‚๐—ฎ๐—น ๐—บ๐—ผ๐—ฑ๐—ฒ๐—น๐˜€ ๐—ถ๐—ป ๐Ÿญ๐Ÿฎ๐Ÿฐ ๐—ฑ๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐˜ ๐—น๐—ฎ๐—ป๐—ด๐˜‚๐—ฎ๐—ด๐—ฒ๐˜€ ๐ŸŒ

Key takeaways from our experiments:
1๏ธโƒฃ Trimming does not require a GPU. Our models were obtained on a CPU.
2๏ธโƒฃ This method scales up to at least 4B parameters (we did not test beyond that).
3๏ธโƒฃ Trimmed model is smaller than the original while preserving its performance. If you observe a slight performance drop, just fine-tuned to recover or even surpass the original performance.
4๏ธโƒฃ For an equivalent compute budget, it is better to trim then fine-tune rather than fine-tuning the original model. Since the model is smaller, you can run more epochs/show more data and get in fine a better model than the original.
5๏ธโƒฃ Trimming is a competitive alternative to distillation and quantization. E.g. we obtained our alternative to DistilBERT in 9 minutes on CPU vs. 90 hours of GPU for the latter.
6๏ธโƒฃ Trimming could generate reasoning traces in the language of the trimmed model. This could be an alternative to generating traces in English and then translating them into the desired language.

And many other things (such as how much data are needed, the impact of the database used, the order in which it should be done, etc.) are available in the blogpost!

Blogpost: https://huggingface.co/blog/lbourdois/introduction-to-trimming
Models: alphaedge-ai/Trimming_models_search
  • 4 replies
ยท
alielfilali01ย 
posted an update 2 months ago
view post
Post
683
Plans in HTML > Plans in Markdown
omarkamaliย 
posted an update 4 months ago
view post
Post
1049
Just sharing a little breakthrough with Gherbal LID where we managed to distinguish the 15 variants of Arabic with 6 variants above 90%, 10 variants above 85% accuracy, practically distinguishing Moroccan and Algerian (which overlap massively).

It also embraces the duality of MSA and arabic variants pioneered in ALDi by @AMR-KELEG et al.

Now we're only bottlenecked by the availability of high quality data for the low scoring variants such as Iraqi, Libyan, Sudanese, Adeni ...

More on Gherbal at:
https://omneitylabs.com/models/gherbal

  • 1 reply
ยท
omarkamaliย 
posted an update 4 months ago
view post
Post
4597
We got Qwen 3.5 to count Rs in Strawberry correctly! ๐Ÿšจ

Building on Sawtone, weโ€™ve been testing a different way to feed language into an LLM to build the next generation of multilingual AI.

The usual setup gives the model tokenized text and asks it to perform various linguistic tasks. That works surprisingly well, until it doesnโ€™t. Accents disappear. Words get mangled. Internal structure gets blurred away. And the cost of that gets higher once you move into multilingual and lower-resource settings.

So we tried adding a second path.

In addition to the normal text input, the model also receives Sawtone: a byte-level word representation that preserves how a word is written, how it sounds, and how it is structured.

Same LLM. Better interface.

In this proof of concept with Qwen 3.5 0.8B, that pushed our eval from 64% to 88%. The gains showed up exactly where tokenized models usually get shaky: diacritics, character order, exact spelling, and other form-sensitive behavior.

Sawtone itself is tokenizer-free, byte-level, and pre-trained across 507 languages.

Still early, but promising!

  • 5 replies
ยท
omarkamaliย 
posted an update 4 months ago
view post
Post
233
๐ŸŒ LID Benchmark update:

โ€ข 10 Regional Leaderboards
โ€ข 17 LID models (+7 new, incl. non-fastText based)
โ€ข 449 languages in total (200+ additional)
โ€ข Fixed: F1 macro reporting error
โ€ข Normalized language codes for more accurate results

The dataset is also updated, now with individual model predictions to reproduce and validate our findings.

omneity-labs/lid-benchmark
omarkamaliย 
posted an update 4 months ago
view post
Post
229
Omneity Labs LID Benchmark is live ๐Ÿ”ฅ

- 8 Evals
- 10 Models (GlotLID, OpenLID, our own Gherbal and others)
- 200+ Languages
- One Leaderboard To Rule Them All!

Come find your language and which LID model supports it best in this space ๐Ÿ‘‡

omneity-labs/lid-benchmark
omarkamaliย 
posted an update 5 months ago
view post
Post
1899
I just might have cracked tokenizer-free LLMs. No vocab, no softmax.

I'm training a 22M params LLM rn to test this "thing" and it's able to formulate coherent sentences ๐Ÿคฏ

Bear in mind, this is a completely new, tokenizer-free LLM architecture with built-in language universality.

Check the explainer video to understand what's happening. Feedback welcome on this approach!

  • 14 replies
ยท
omarkamaliย 
posted an update 5 months ago
view post
Post
346
You're probably training on outdated Wikipedia data right now and don't know it. ๐Ÿ’ก

In June last year, a friend from the Moroccan Wikipedia community slid into my DMs: "Are you using the current version? The official dataset is severely outdated. We added so many articles nowhere to be found on HuggingFace."

He was right. I was running a 2023 snapshot. In 2025. The official Wikipedia dataset, the one hundreds of labs and researchers grab by default without a second thought, was frozen in time.
โ€ข For English, that's 700,000 missing articles.
โ€ข For Moroccan Arabic, 30% of the language's entire Wikipedia.
โ€ข For 31 other languages, there was literally no text corpus at all until recently.

I could've shrugged and moved on. Instead I spent the next months building a monthly automated pipeline for 340+ languages, on my personal laptop, nearly killing it several times in the process (100% disk, frozen screen, the works).

Nous Research trained Hermes 4 on it. INRIA cited it. It's now three years ahead of what most people are training on.

Here's the full story of how I built Wikipedia Monthly ๐Ÿ‘‡

https://omarkamali.com/blog/wikipedia-monthly-pipeline
omarkamaliย 
posted an update 7 months ago
view post
Post
1713
New year, new dataset ๐Ÿš€

I just released omarkamali/wikipedia-labels, with all the structural labels and namespace from wikipedia in 300+ languages. A gift for the data preprocessors and cleaners among us.

Happy new year 2026 everyone! ๐ŸŽ†
omarkamaliย 
posted an update 7 months ago
view post
Post
304
Picomon v0.2.0 released! ๐Ÿ’ซ

- Supports all of AMD, Nvidia and Apple Silicon ๐Ÿง‘โ€๐Ÿง‘โ€๐Ÿง’โ€๐Ÿง’
- Beautiful TUI with themes (who said monitoring should be boring?) ๐Ÿ’…
- Shareable Rig Cards! Boast to friends, family and foes alike ๐Ÿซจ

Get it now! uvx picomon or pip install picomon then picomon
  • 3 replies
ยท
omarkamaliย 
posted an update 8 months ago
view post
Post
3503
Hello picomon! AMD GPU Monitoring made easy

Just run uvx picomon and behold:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ GPU 0  GFX  42%  UMC  21%                โ”‚  โ”‚ GPU 1  GFX  78%  UMC  66%                โ”‚
โ”‚ PWR 135/250W (54%)  VRAM 10.0/16.0GB 62% โ”‚  โ”‚ PWR 210/250W (84%)  VRAM 14.5/16.0GB 90% โ”‚
โ”‚                                          โ”‚  โ”‚                                          โ”‚
โ”‚ GFX โ–โ–‚โ–‚โ–ƒโ–„โ–„โ–…โ–†โ–†โ–‡โ–ˆโ–‡โ–†โ–…โ–„โ–ƒโ–‚โ–                   โ”‚  โ”‚ GFX โ–‚โ–ƒโ–„โ–…โ–†โ–‡โ–ˆโ–ˆโ–‡โ–†โ–…โ–„โ–‚โ–‚โ–ƒโ–…โ–†                    โ”‚
โ”‚ PWR โ–โ–โ–‚โ–‚โ–ƒโ–„โ–„โ–…โ–†โ–‡โ–ˆโ–ˆโ–‡โ–†โ–…โ–„โ–‚โ–                   โ”‚  โ”‚ PWR โ–‚โ–‚โ–ƒโ–„โ–…โ–†โ–‡โ–ˆโ–ˆโ–‡โ–†โ–…โ–„โ–ƒโ–‚โ–‚โ–ƒ                    โ”‚
โ”‚ VRM โ–โ–โ–‚โ–‚โ–ƒโ–„โ–„โ–…โ–†โ–‡โ–ˆโ–ˆโ–ˆโ–‡โ–†โ–…โ–„โ–‚                   โ”‚  โ”‚ VRM โ–‚โ–ƒโ–„โ–…โ–†โ–†โ–‡โ–ˆโ–ˆโ–ˆโ–‡โ–†โ–…โ–„โ–ƒโ–‚โ–‚                    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜


Repo at https://github.com/omarkamali/picomon
Or pypi at https://pypi.org/project/picomon
omarkamaliย 
posted an update 8 months ago
view post
Post
5239
Exciting updates to the Wikipedia Monthly dataset for November! ๐Ÿš€

ใƒป Fixed a bug to remove infobox leftovers and other wiki markers such as __TOC__
ใƒป New python package https://pypi.org/project/wikisets: a dataset builder with efficient sampling so you can combine the languages you want seamlessly for any date (ideal for pretraining data but works for any purpose)
ใƒป Moved the pipeline to a large server. Much higher costs but with better reliability and predictability (let me know if you'd like to sponsor this!).
ใƒป Dataset sizes are unfortunately missing for this month due to shenanigans with the migration, but should be back in December's update.

Check out the dataset:
omarkamali/wikipedia-monthly
nouamanetaziย 
posted an update 9 months ago
view post
Post
5073
After training ๐’๐ฆ๐จ๐ฅ๐‹๐Œ๐Ÿ‘ on ๐Ÿ‘๐Ÿ–๐Ÿ’ ๐‡๐Ÿ๐ŸŽ๐ŸŽ๐ฌ for nearly a month, I've come to realize something most people overlook: ๐ข๐ง๐Ÿ๐ซ๐š๐ฌ๐ญ๐ซ๐ฎ๐œ๐ญ๐ฎ๐ซ๐ž ๐ข๐ฌ ๐ญ๐ก๐ž ๐ฆ๐š๐ค๐ž-๐จ๐ซ-๐›๐ซ๐ž๐š๐ค ๐Ÿ๐š๐œ๐ญ๐จ๐ซ ๐ข๐ง ๐‹๐‹๐Œ ๐ญ๐ซ๐š๐ข๐ง๐ข๐ง๐ . ๐Ÿ”ฅ

Everyone talks about model architecture and data quality. And yes, those matter immensely. But here's what nobody tells you: when your training run fails at 2 AM because of mysterious ๐๐‚๐‚๐‹ ๐ž๐ซ๐ซ๐จ๐ซ๐ฌ, or when your expensive GPU cluster is running at ๐Ÿ”๐ŸŽ% ๐ž๐Ÿ๐Ÿ๐ข๐œ๐ข๐ž๐ง๐œ๐ฒ, the problem isn't your model. It's most probably a ๐ฆ๐ข๐ฌ๐ฎ๐ฌ๐ž ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ก๐š๐ซ๐๐ฐ๐š๐ซ๐ž. ๐Ÿ› ๏ธ

Questions that seemed simple but had no clear answers: Why is ๐Œ๐จ๐„ ๐ญ๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐ฌ๐ฅ๐จ๐ฐ๐ž๐ซ ๐ญ๐ก๐š๐ง ๐๐ž๐ง๐ฌ๐ž ๐ฆ๐จ๐๐ž๐ฅ๐ฌ? Which ๐๐‚๐‚๐‹ ๐Ÿ๐ฅ๐š๐ ๐ฌ should we actually set? How often should we checkpoint without killing throughput?

That's why we built ๐“๐ก๐ž ๐’๐ฆ๐จ๐ฅ ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐๐ฅ๐š๐ฒ๐›๐จ๐จ๐ค ๐Ÿ“–: a complete guide covering everything from model architecture and data curation to the SmolLM3 training marathon, post-training techniques, and crucially, the ๐ข๐ง๐Ÿ๐ซ๐š๐ฌ๐ญ๐ซ๐ฎ๐œ๐ญ๐ฎ๐ซ๐ž ๐ฅ๐š๐ฒ๐ž๐ซ that most teams get wrong.

We validated real vs theoretical bandwidth across the entire stack: ๐‡๐๐Œ๐Ÿ‘ ๐ก๐ข๐ญ๐ญ๐ข๐ง๐  ๐Ÿ‘ ๐“๐/๐ฌ, ๐๐•๐‹๐ข๐ง๐ค ๐Ÿ’.๐ŸŽ ๐ซ๐ž๐š๐œ๐ก๐ข๐ง๐  ๐Ÿ•๐Ÿ–๐Ÿ” ๐†๐/๐ฌ, ๐๐‚๐ˆ๐ž ๐†๐ž๐ง๐Ÿ’ ๐š๐ญ ๐Ÿ๐Ÿ’.๐Ÿ ๐†๐/๐ฌ. Then we ran collective operations across ๐Ÿ๐Ÿ๐Ÿ– ๐†๐๐”๐ฌ (16 nodes, 8xH100s each) and measured how performance degrades at scale: all-reduce drops from ๐Ÿ’๐Ÿ–๐ŸŽ ๐†๐/๐ฌ on a single node to ๐Ÿ‘๐Ÿ๐ŸŽ-๐Ÿ‘๐Ÿ“๐ŸŽ ๐†๐/๐ฌ across 16 nodes.

If you've ever wondered why your training runs are slower than they should be, or you're planning to scale up and want to avoid expensive mistakes, this guide might save you weeks of debugging.

๐“๐ก๐ž ๐’๐ฆ๐จ๐ฅ ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐๐ฅ๐š๐ฒ๐›๐จ๐จ๐ค: https://lnkd.in/e5MKXUHS

Shared with โค๏ธ by the HuggingFace team
lbourdoisย 
posted an update 10 months ago
omarkamaliย 
posted an update 10 months ago
view post
Post
307
Another month, another Wikipedia Monthly release! ๐ŸŽƒ

Highlights of October's edition:
ยท ๐Ÿ—ฃ๏ธ 341 languages
ยท ๐Ÿ“š 64.7M articles (+2.5%)
ยท ๐Ÿ“ฆ 89.4GB of data (+3.3%)

We are now sampling a random subset of each language with a reservoir sampling method to produce splits 1000, 5000, and 10000 in addition to the existing train split that contains all the data.

Now you can load the english (or your favorite language) subset in seconds:
dataset = load_dataset("omarkamali/wikipedia-monthly", "latest.en", split="10000")

Happy data engineering! ๐Ÿงฐ

omarkamali/wikipedia-monthly
  • 2 replies
ยท
BramVanroyย 
posted an update 10 months ago
view post
Post
795
What are currently the best multilingual models with at most 72B parameters? Are Llama 3.3 70B and Qwen 2.5 72B still king?
  • 1 reply
ยท