soycaporal

Joined 3 months ago

Karma
157
Submissions
18
Member since
Jul 6
AI/ML Engineering, software engineering, hustler in general. All things AI and tech.
View on Hacker News

Recent submissions

Comment · 3 months ago
mainly this is a portability and compatibility solution.. I think with GPU available deployments, it wouldn't benefit from ternary distillation. It would be a different problem domain.
Comment · 3 months ago
amazing.. glad to know this integration path worked fro you!
Comment · 3 months ago
very cool, I'll look into this. Thanks for sharing.
Comment · 3 months ago
the base model I clocked it at 5 ms per embedded on my mac studio. There is a mini variant (the demo version) that is sub - 2 ms. It could be a SIMD issue.. I'll look into this for better runtime support (also fee free to file an issue)
Comment · 3 months ago
super cool use case! Hopefully it can provide quality embeddings + retrieval. Would love to learn to results/issues or feedback. Please feel free to file for issues on github
Comment · 3 months ago
The corpus is mainly trained in english, unfortunately no other languages have been included in the distillation training. Yes it would work like fuse.js, but unlocks semantic search.

Source code has the entire embedding distillation pipeline includes dataset preparation. You could run the same distillation training (but not sure if teacher model used a multi-language dataset).

Open up an issue on the github repo and I can reply with details

Comment · 3 months ago
awesome, noted, looking for capable teacher models to distill other architectures
Comment · 3 months ago
that's great! let me know if there is anyway I can support, or any specific use case a roadmap could address!
Comment · 3 months ago
It's entirely the QAT. The whole distillation process is quantization-aware from the start, so the ternary weights are learned rather than fitted after the fact.

The only post-training quantization I applied was int4 on the embedding layer, and I ran a small ablation there to find the sweet spot between size and quality.

Comment · 3 months ago
CPU cycle maxxing, who said GPUs were special?
Comment · 3 months ago
thank you! hopefully it can unlock some novel applications, that would be cool
Comment · 3 months ago
ohh thanks for the report.. probably has to do with wasm runtime.. Will note this as a known issue
Comment · 3 months ago
love the idea! Will think of a way to host it probably on huggingface
Comment · 3 months ago
I think standardizing the runtime is pretty effective, it then open up portability
Comment · 3 months ago
gte-small outscores all-MiniLM-L6 on MTEB (~61 vs ~56 avg per the GTE paper). MiniLM is ternlight's teacher (ternlight holds 0.84 Spearman fidelity to teacher). I haven't run a head-to-head yet; STS-B/MTEB numbers are on the roadmap. Also on the roadmap is to distill gte-small as teacher.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton