8 18 hours ago

embedding
ollama pull hariharanms95/hobbylm-embed-140m

Models

View all →

Readme

HobbyLM-Embed-140M

An English text-embedding model built on a sparse mixture-of-experts encoder and trained from scratch, with 140M total parameters and 36M active per token. It produces 512-dimensional embeddings for search, RAG, similarity, clustering and classification.

HobbyLM by Fuel Labs · Hugging Face · GitHub · Apache-2.0

Quickstart

ollama pull hariharanms95/hobbylm-embed-140m
curl http://localhost:11434/api/embed -d '{
  "model": "hariharanms95/hobbylm-embed-140m",
  "input": ["query: how do vaccines work?",
            "passage: Vaccines train the immune system to recognise a pathogen without causing the disease."]
}'

Prompts

For search and RAG, start queries with query: and documents with passage:. For similarity, clustering and classification, use plain text.

Highlights

  • Trained from scratch: a sparse mixture-of-experts encoder, 8 of 32 experts per token.
  • Officially on MTEB: 62.33 on MTEB(eng, v2), all 41 tasks.
  • Light: 36M active parameters per token; this Q8_0 build is 179 MB.
  • Private: runs fully on your machine.

Good to know

  • Close, not identical. Ollama’s pooling includes the final end-of-text token, so these vectors are close to but not identical with the reference model. On normal sentences cosine similarity is about 0.99 and task scores stay within ±0.4. Very short texts (one or two words) differ most.
  • Don’t mix runtimes in one index. Index and query with Ollama only, not mixed with Sentence Transformers vectors.
  • For exact embeddings, use Sentence Transformers or the llama.cpp GGUF with our helper script.
  • Input length is 512 tokens here. For documents up to 2,048 tokens, use Sentence Transformers.
  • English only.

Credits

Built at Fuel Labs by Hariharan M. S. and Prabhurajhan R. The architecture was designed by Harish Santhanalakshmi Ganesan for the HobbyLM model family. Compute provided by Jarvis Labs.