Shubham Panchal
banner
shubham0204.bsky.social
Shubham Panchal
@shubham0204.bsky.social
On-Device ML | Android | Blogger
Android's journey from XML to Compose was remarkable from my viewpoint (as a pre-Compose developer). Thank you for your contributions!
September 1, 2025 at 2:08 AM
Technical details: The lookup table is available on @hf.co as a safetensors file, which is read by a small Rust library. JNI bindings are then written for the library, that are used in the Android library.

Project: github.com/shubham0204/...
model2vec: github.com/MinishLab/mo...
March 17, 2025 at 3:33 AM
We call these 'static embeddings' as they simply do not hold the actual 'context' and they are basically 'stateless'. A paper suggests that these embeddings may not be as inferior as expected, and can perform considerably well on common benchmarks. Such a lookup model is known as 'model2vec'.
March 17, 2025 at 3:33 AM
For each token, we can predict an encoder hidden state (squeeze the dimensions) and store it in a lookup table (keys: tokens, values: embedding). Now, when given a sentence, we fetch embeddings for each token in a lookup table and pool them to deduce a single embedding.
March 17, 2025 at 3:33 AM
This requires 'N' forward-passes of the encoder model, where 'N' is the length of the tokenized sequence. Each predicted token embedding holds context of the previous tokens. Sentence-transformers have a fixed vocabulary of tokens (32K for the above-mentioned model).
March 17, 2025 at 3:33 AM
The new TS compiler, written in Go, will compile TS code to native code i.e. platform/architecture specific code that executes on the host machine.

Blog from MS: devblogs.microsoft.com/typescript/t...
A 10x Faster TypeScript - TypeScript
Embarking on a native port of the existing TypeScript compiler and toolset to achieve a 10x performance speed-up.
devblogs.microsoft.com
March 13, 2025 at 3:04 AM