upvote
Now that the models are smarter / know more than most of us, a new bottleneck is finding out what you don't know. If you don't know about logistic classifiers and how they could be applied to your problem, you will not ask for it.

These days, I tend to start my coding sessions by the high level problem I'm trying to solve vs the prescriptive, specific solution I may have in mind. It often surfaces ideas and approaches that I did not know about.

reply
I did this yesterday and it works incredibly well. I finetuned ModernBERT to classify documents. With zeroshot it achieved around ~30% accuracy, which jumped to 98.2% with finetuning, and latency of around 150ms on my Macbook. Just incredible!
reply
If you don’t see good performance with LRs, you may want to try RBF SVMs. We’ve found they work super well for our use cases with the embeddinggemma model as they can better separate classes in the non-linear embedding space.

Our resulting RBF models are tiny and fit in L1 cache, with microsecond inference latency.

reply
I built a whole thing that collects data, trains classifiers, exports models and dataset just for that. Claude writes me a terraform file that contains shape of the classifier and dataset. For images it can create datasets based of another dataset (crop this region from images that have these labels).

Originally it was so I can label data to fine-tune a VLM, but now a few tiny classifiers that run in milliseconds on cpu.

Now its collecting data to make a domain specific BERT and do what Jev does.

reply
Very cool. What kinda of classifications are you running? How big are the models/training sets?

Also curious about if you plan on doing some sort of routing for the requests. Like detecting the type of task to decide which model to route the request to

reply
Some classifiers are tiny - like 2k params, maybe even less.

This whole thing started because I wanted something to help me play Dune Imperium. Even relatively large models with vision encoders couldn't reliably extract the full state of the board. Now that I have ~2k labeled screenshots, I want to train heads on top of SigLIP2 to extract all of that data in one go.

That's how it started. Now the thing supports multiple kinds of datasets:

  Images - currently the Dune Imperium and Bolatro screenshots, with SigLIP2 heads being the next step.

  STT - my self-hosted Linux dictation tool feeds this dataset. I run Nemotron ASR tuned for my voice.

  TTS - for Piper TTS, trained to speak like SHODAN. Trained from data generated by Qwen3-tts + original video games files.

  Text pairs - for a 1.2B model that converts normal text into "what would SHODAN say?"


  FastApply - a Qwen3.5-4B LoRA adapter for doing fast edits.

  Chat threads - all agent/chat threads get saved too, so eventually I can turn the useful ones into a dataset and train a LoRA for a really good Rust-specialized version of Qwen3.8-27B.

  Tool calls (extracted from chat threads) - this is where I want something Jev-like, mainly to add an auto-approval mode to my agent harness.
A model router isn't planned because I'm trying to gear everything toward self-hosting, and there just isn't that much to route between. I’ll probably build something Jev-like for smart-home control, though.

The FastApply dataset is already ~20k entries, with the majority of outputs being 8k–16k tokens. The STT dataset is roughly 30 hours and growing.

Basically, the whole thing has turned into a Collect -> Distill -> Train pipeline for whatever I happen to need.

reply
> Basically, the whole thing has turned into a Collect -> Distill -> Train pipeline for whatever I happen to need

Amazing, thank you for sharing your setup. Very cool applications

reply
> Now its collecting data to make a domain specific BERT and do what Jev does.

this misses the point of jev somewhat - the point is that this is a foundational, general purpose classifier model - see some good sources https://x.com/mparakhin/status/2101683565520199887?s=12

reply
Missing the point that they marketing, but so far I saw it perform good at some tasks, and pretty bad on others. I don't think it's all that general purpose they claim it to be.
reply
I'm working on exactly this! I'm building a small model that classifies the correct DOM node containing an HTML's article content/title/date/author (given a raw html with a lot of noise/chrome). A fun learning exercise :)

30KB model, 40-50ms inference. Pretty happy with the results so far!

I can see an entire industry of tiny models like this, now that we have AI to help us do the grunt setup work (validation/training data creation, data cleaning, etc). Or just use a general classifier like Jev/Kev ha

reply
Is this like for cleaning html data from say common crawl ?
reply
30kb model is super impressive.

What’s the model architecture?

reply
I'm interested in the Banking77 example you gave which I want to reproduce. Can you give some details for this run? Also, does the <10 MB size include the embedding encoder? Would appreciate any configuration or code to look at!
reply
> For emails, I get 95% accuracy with this method, with only 50-100 examples for training

I'm assuming you only need to consider a single language for your emails?

reply
Mostly 2 languages

Haven’t tried with more

Do you have a specific use case?

reply
I would need at least two languages, probably three. I was guessing this approach might be less multilingual than LLMs.

In my case Norwegian, English and Japanese.

reply
love this idea. did you try comparing to jev?
reply
Yes, I ran some benchmarks. This architecture seems to match or beat Jev and Laya in all basic classification tasks (datasets tested: AG News, Emotion, MASSIVE Intent, Banking77)

The type of task in which it does really well, especially against Laya, is classification with >50 classes

But this architecture has no “reasoning”, so it performs rather poorly on tasks that require it, like the ones from the XLNI dataset (Jev/Laya do a lot better on this one)

For the latter cases, you could probably enhance the architecture with a lightweight LLM, something like a Gemma model. Or even some basic MLP

reply
Do you realize people is using LLM's as classifiers, right? For lots of companies and developers reaching an API is feasible, while running a training pipeline, no matter how simple, is not. I know that they should still be gathering data for evaluation and they could use it to train a model instead. But they won't do it, for a variety of reasons.

This is the same route but WAAAY faster and cheaper. And you can modify it like you do with code or prompts. It's really appealing, TBH.

reply
[flagged]
reply