Hey all, we built HobbyLM-Embed at Fuel Labs, an open-weight English embedding model (Apache-2.0). It’s a sparse MoE with 140M total parameters
and 36M active per token (excluding embeddings), 512-d vectors, and it runs on a laptop CPU. 62.33 Mean (Task) on the MTEB(eng, v2) leaderboard.
We published a small LangChain package so queries and documents get the right prompts automatically:
pip install langchain-hobbylm langchain-core
from langchain_core.vectorstores import InMemoryVectorStore
from langchain_hobbylm import HobbyLMEmbeddings
# embed_documents uses the "passage" prompt, embed_query the "query" prompt
store = InMemoryVectorStore(HobbyLMEmbeddings())
store.add_documents(docs)
store.similarity_search_with_score("How long does a refund take to reach my card?", k=2)
We indexed 21 sections of a fictional help-center refund policy and asked three questions (langchain-hobbylm 0.1.1, langchain-core 1.8.4, real output):
Q: How long does a refund take to reach my card?
0.817 refunds-and-freshness.md > How long a refund takes
0.724 refunds-and-freshness.md > Late deliveries
Q: My flowers arrived wilted, what can I do?
0.706 returns-and-substitutions.md > Substitutions
0.647 refunds-and-freshness.md > Our freshness guarantee
Q: Can I get a refund if I change my mind?
0.742 refunds-and-freshness.md > What we cannot refund
0.690 sympathy-and-bereavement-orders.md > Documentation for refunds
Two of three land the right section first; on “wilted flowers” the right one comes second. The model is strongest at classification and similarity, so test retrieval on your own documents. English only for now.
PyPI: langchain-hobbylm · PyPI
Model: harims95/hobbylm-embed-140m · Hugging Face
Feedback welcome, especially what works and what breaks in your chains.
