Sign in

🤷 Nico Martin

@nico.dev
1.5K followers 1.1K following 372 posts

Building Transformers.js at @hf.co // #GoogleDevExpert for Web Technologies and AI/ML 💚 #WebAI nico.dev

PostsRepliesMedia
🤷 Nico Martin @nico.dev · 26/06/2026
Huge thanks to Imanol Schlag, Oleg, @mjaggi.bsky.social, Andrei and the whole Apertus team 🙏. I'm excited to be part of bringing it to the web 🤗
020
🤷 Nico Martin @nico.dev · 26/06/2026
Apertus isn't just an LLM. it's the Swiss AI Initiative: @epfl-ai-center.bsky.social , @ethz.ch and @cscsch.bsky.social building open weights, open data, open science. And truly open should run anywhere. Including on your device. So as a Swiss dev, I had to bring it to the browser.
140
🤷 Nico Martin @nico.dev · 26/06/2026
Try it out yourself: huggingface.co/spaces/swiss...
huggingface.co
Apertus Mini WebGPU - a Hugging Face Space by swiss-ai
Run Apertus Mini locally in your browser with WebGPU
100
🤷 Nico Martin @nico.dev · 26/06/2026
Apertus Mini is now running entirely in your browser 🇨🇭 80+ tps for the 1.5B, 60+ tps for the 4B (on my M3). Fully client-side via Transformers.js + ONNX + WebGPU.
152
🤷 Nico Martin @nico.dev · 24/06/2026
@tomayac.com colaborated with us on implementing the Cross-Origin Storage API in Transformers.js. Read his blogpost to learn how to try out the API right now🤗
011
🤷 Nico Martin @nico.dev · 27/05/2026
Everything you always wanted to know about Transformers.js, in one video. I made a deep dive into how AI models run from JavaScript: tensors, ONNX, quantization, `pipeline()`, WebGPU/WASM, preprocessing, postprocessing, and what happens under the hood. Watch: www.youtube.com/watch?v=A_6U...
youtube.com
How Transformers.js Works: AI Models in JavaScript, Explained
YouTube video by Hugging Face
040
🤷 Nico Martin @nico.dev · 20/05/2026
While @xenova.bsky.social and I were distracted by Google I/O, 🤗 Transformers.js quietly crossed 1'000'000 weekly downloads 🤯.
020
🤷 Nico Martin @nico.dev · 19/05/2026
Made it to Google I/O 😊
090
🤷 Nico Martin @nico.dev · 19/05/2026
Pretty wild.. I am 10km above Greenland while Googles Gemma 4 26b on llama.cpp connected to PI is helping me edit my video at 50tps 🤯
170
🤷 Nico Martin @nico.dev · 18/05/2026
Have a good flight, then.😊
010
🤷 Nico Martin @nico.dev · 18/05/2026
Are you at the airport too?
100
🤷 Nico Martin @nico.dev · 18/05/2026
All the things I can't fit in a tweet: www.instagram.com/nicodotdev/
instagram.com
Instagram
Create an account or log in to Instagram - Share what you're into with the people who get you.
000
🤷 Nico Martin @nico.dev · 18/05/2026
On my way to San Francisco🤩. First time in California. First time in Silicon Valley. And I'm going for Google I/O. 🤯 Also I recently started a new instagram channel. So if you want the unfiltered version, follow along👇😊
420
🤷 Nico Martin @nico.dev · 15/05/2026
✨ new video in the making.. ...everything you always wanted to know about 🤗 Transformers.js
0110
🤷 Nico Martin @nico.dev · 14/05/2026
😄
000
🤷 Nico Martin @nico.dev · 14/05/2026
Thanks to everyone who joined us on the Gurten. see you next year 🏔️ And a huge thanks to Matthias, Christian, @johanngyger.com, Roland, Christof, Marco and Tobias for organizing this with me!
031
🤷 Nico Martin @nico.dev · 14/05/2026
And my on-stage-contribution this year? I got to moderate the open source panel with @benburtenshaw.bsky.social, @jonny.io, Panos Vagenas and @rjourdan.com.
210
🤷 Nico Martin @nico.dev · 14/05/2026
@devdevcharlie.com closed the day with creative and experimental AI interfaces, demoed live on stage. perfect way to end a conference.
100
🤷 Nico Martin @nico.dev · 14/05/2026
@osanseviero.bsky.social walked through what Gemma4 means for on-device AI. New benchmarks, solid technical depth.
100
🤷 Nico Martin @nico.dev · 14/05/2026
Imanol Schlag gave us a behind-the-scenes look at Apertus, a fully open research project from Switzerland. can't wait for 1.5.
100
🤷 Nico Martin @nico.dev · 14/05/2026
over 300 attendees enjoyed a sunny and inspiring day on the Gurten. This year with a second stage and a focus on valuable insights, optimized solutions, and lessons learned from running AI apps in production to share with the developer community. A few highlights from the talks:
200
🤷 Nico Martin @nico.dev · 14/05/2026
My learning from Uphill Conf '26: being a speaker is so much easier than being an organizer 😅 After the last two years on stage, I switched sides. Nine months of prep, a lot of group chats, and one very humbling ropes course at the speaker event later, we pulled it off!
140
🤷 Nico Martin @nico.dev · 29/04/2026
I really enjoyed this conversation with the @neciudan.dev! We covered a lot.. how I went from Ski instructor to ML engineer and how Transformers.js lets you run ML models directly in the browser to WebGPU, quantization, agents, and what frontend devs should actually focus on🤗
061
🤷 Nico Martin @nico.dev · 26/03/2026
I'm working on something pretty exciting🥰
010
🤷 Nico Martin @nico.dev · 11/03/2026
Install it with one command: npx skills add github.com/huggingface/... --skill transformers-js github.com/huggingface/skills
github.com
GitHub - huggingface/skills
Contribute to huggingface/skills development by creating an account on GitHub.
010
🤷 Nico Martin @nico.dev · 11/03/2026
Getting started with AI in the browser has never been easier 🤗 Today we're releasing the Transformers.js #AgentSkill, your shortcut to running ML models in the browser. It provides all the information your coding agent needs to add on-device AI to your web app.
470
🤷 Nico Martin @nico.dev · 24/02/2026
Model: huggingface.co/google/trans... Demo and Code: huggingface.co/spaces/webml...
huggingface.co
google/translategemma-4b-it · Hugging Face
We’re on a journey to advance and democratize artificial intelligence through open source and open science.
030
🤷 Nico Martin @nico.dev · 24/02/2026
TranslateGemma 4B by Google now runs 100% in your browser on WebGPU with Transformers.js v4. 55 languages. No server. No data leaks. Works offline. A 4B parameter translation powerhouse, right in your browser. Try the demo 👇
1240
🤷 Nico Martin @nico.dev · 21/02/2026
The lineup is going to be fantastic, and almost all of the speakers have been announced (but not all of them yet 😉). Get your tickets now! uphillconf.com/tickets/
uphillconf.com
Tickets | Uphill Conf
Get your Uphill Conf 2026 tickets! May 7-8 in Switzerland. Full-day AI workshops + conference day with international experts. Student & group discounts availabl
000
🤷 Nico Martin @nico.dev · 21/02/2026
Exciting news: this year I'm joining the organizing team of @uphillconf for the first time! 🎉 For the past two years, I've had the opportunity to give a talk, and each time it was a fantastic experience. That's why I decided to actively participate in the planning this year😊
210
🤷 Nico Martin @nico.dev · 13/02/2026
That would be like hammering in a screw with a hammer and then complaining about how bad the hammer is.
000
🤷 Nico Martin @nico.dev · 13/02/2026
I've seen several posts lately that share some edge cases in AI conversations where the AI makes mistakes. Of course, this is to show how bad AI still is. AI is a tool. If it produces incorrect or unusable results, it is not the tool that is at blame, but the person who is using it incorrectly..
100
🤷 Nico Martin @nico.dev · 09/02/2026
Read everything about the release in our blogpost. huggingface.co/blog/transfo... And please try it out, we'd love to hear your thoughts!
huggingface.co
000
🤷 Nico Martin @nico.dev · 09/02/2026
🤗 Transformers.js v4 preview is now available! npm i @huggingface/transformers@next And its huuuuge! I don't think a single line of code remained untouched😄. New build system, monorepo structure, and tons of new features!
110
🤷 Nico Martin @nico.dev · 08/02/2026
I have no idea what you're talking about. Those are clearly very happy, well-lit plants. In the event of contradictory statements, I reserve the right to take legal action..
010
🤷 Nico Martin @nico.dev · 08/02/2026
We rearranged our apartment a bit and I had to move my office. A good time for some new paint and a few new plants🥰.
180
🤷 Nico Martin @nico.dev · 14/01/2026
I fully agree with DHH on this: "pure vibe coding remains an aspirational dream for professional work for me, for now. Supervised collaboration, though, is here today." world.hey.com/dhh/promotin...
world.hey.com
Promoting AI agents
At the end of last year, AI agents really came alive for me. Partly because the models got better, but more so because we gave them the tools to take their capacity beyond pure reasoning. Now coding a...
030
🤷 Nico Martin @nico.dev · 14/01/2026
The lesson: AI coding tools work best when you establish clear structure upfront. The time you invest in architecture pays dividends in maintainability and makes AI assistance more effective, not less.
120
🤷 Nico Martin @nico.dev · 14/01/2026
Fintrack, on the other hand, is a joy to work with. It has a robust foundation and architecture that makes it easy for both me AND the AI agent to know where features belong and how to reuse existing logic.
100
🤷 Nico Martin @nico.dev · 14/01/2026
Components bloat, there's no clear structure for sharing logic or components, and the codebase becomes increasingly fragile.
100
🤷 Nico Martin @nico.dev · 14/01/2026
For Pumpel, I ran a pure conversation experiment: How far could I get without even looking at the code? And yes, it works. But I don't like it. Worse, adding new features through prompting gets progressively harder.
100
🤷 Nico Martin @nico.dev · 14/01/2026
I approached each project with different levels of "vibe coding." For Fintrack, I wrote most code myself or carefully reviewed every line. I wanted to understand exactly where data is stored and how it flows through the system (for obvious reasons 😅).
110
🤷 Nico Martin @nico.dev · 14/01/2026
All three started as spreadsheets I'd been using for months or years. Now they have proper UIs and additional features. Why the upgrade? AI made it possible 🥰 But here's what I learned:
100
🤷 Nico Martin @nico.dev · 14/01/2026
Over the Christmas holidays, I built three apps to replace my Google Sheets workflows: - 𝗙𝗶𝗻𝘁𝗿𝗮𝗰𝗸: A budget tracker that imports bank transactions and allows us to categorize them - 𝗣𝘂𝗺𝗽𝗲𝗹: A gym tracker - 𝗛𝗮𝗯𝗶𝘁𝘀: A daily habit tracker
130
🤷 Nico Martin @nico.dev · 13/01/2026
Mountains are unpredictable, and accidents happen even to the very best. My thoughts are with his wife and children..
130
🤷 Nico Martin @nico.dev · 13/01/2026
When I was younger, I often went freeriding. Skiing in deep powder is one of the best feelings there is. But when our first child was born, I gave away my powder skis and never went in deep powder again.
110
🤷 Nico Martin @nico.dev · 13/01/2026
Definitely not an easy post to write. A friend of mine died in an avalanche a few days ago. He was a professional snowboarder who knew the mountains intimately.
360
🤷 Nico Martin @nico.dev · 08/01/2026
🚀 Transformers.js v4 update: We've migrated from webpack to esbuild. Results: - Build time: 2s → <200ms (10x faster) - Bundle size: 10-50% smaller Sometimes it's not about new features. It's about building a more robust architecture that makes everything else possible🔥. github.com/huggingface/...
github.com
[v4] Switch build system to use esbuild by nico-martin · Pull Request #1466 · huggingface/transformers.js
090
🤷 Nico Martin @nico.dev · 02/01/2026
However, this also means that if the session token is stolen, the attacker has a long window of opportunity to exploit it. With passkeys, I can easily limit the lifetime of a session token to a few hours, as reauthentication is quick and easy.
100
🤷 Nico Martin @nico.dev · 02/01/2026
Usually, a session token is created when you log in. This session token has a certain validity period. This can be an hour, a week, a month, etc. Normally, you would choose the longest possible period so that the user does not have to log in again and again.
100