Etsu-Embedding-0.8B-Memory
Name: Etsu — from the Japanese reading of 会通 (etsū), the Buddhist term for the convergence of disparate teachings. From Zheng Qiao's (郑樵) Tongzhi (《通志·总序》):
百川异趋,必会于海,然后九州无浸淫之患;万国殊途,必通诸夏,然后八荒无壅滞之忧。会通之义大矣哉!
A hundred rivers run different courses, yet all must reach the sea; ten thousand states take different roads, yet all converge upon the Central States — great indeed is the meaning of huitong (convergence). An embedding model does the same: it maps heterogeneous inputs into one shared vector space.
An embedding model fine-tuned from Qwen/Qwen3.5-0.8B-Base for agent memory retrieval and related domain-specific semantic retrieval.
This is the in-domain specialist sibling of Rebine/Etsu-Embedding-0.8B. Same base model, same architecture, same encoding protocol; different training data and recipe. The two are separate, coexisting releases — this one is trained on a re-built memory-retrieval dataset and is stronger on the target domain and on the 8 Chinese retrieval tasks; the earlier release remains stronger on conversational / long-context memory retrieval (LoCoMo en/zh).
Model Overview
- Model Type: Text Embedding
- Supported Languages: Chinese, English
- Number of Parameters: 752M (752,393,024)
- Context Length: 2048 tokens
- Embedding Dimension: 1024 (supports MRL dimensions 128, 256, 512, 768, 1024)
Model Details
| Property | Value |
|---|---|
| Base model | Qwen/Qwen3.5-0.8B-Base |
| Architecture | Qwen3.5 hybrid text model |
| Layers | 24 (18 linear-attention + 6 full-attention) |
| Hidden size | 1024 |
| Intermediate size | 3584 |
| Vocabulary size | 248,320 |
| Embedding output | 1024 dimensions |
| Pooling | Last-token pooling |
| Normalization | L2 normalization (after Matryoshka truncation) |
| Similarity | Cosine similarity or normalized dot product |
| Training precision | BF16 |
| MRL dimensions | 128, 256, 512, 768, 1024 |
| License | Apache-2.0 |
Intended Use
Chinese/English semantic retrieval for agent memory, personal knowledge bases, conversation archives, technical documentation, and related domain-specific search, including short keyword queries and natural questions.
Encoding Protocol
Queries:
Instruct: Given a query, retrieve relevant passages that answer the query
Query: {query}
Memories/passages: no instruction prefix.
Use last-token pooling (the last non-pad position of attention_mask) and L2 normalization. If using Matryoshka truncation, truncate to 128, 256, 512, or 768 dimensions before the final L2 normalization.
Use right padding: under left padding the "last non-pad token" is not the true end of the text.
This is not a sentence-transformers package with a built-in pooling wrapper; implement the pooling and query prefix as described above.
import torch
import torch.nn.functional as F
from transformers import AutoModel, AutoTokenizer
model_id = "Rebine/Etsu-Embedding-0.8B-Memory"
INSTRUCTION = "Given a query, retrieve relevant passages that answer the query"
tok = AutoTokenizer.from_pretrained(model_id)
tok.padding_side = "right"
model = AutoModel.from_pretrained(model_id, dtype=torch.bfloat16, device_map="cuda").eval()
@torch.no_grad()
def encode(texts, is_query=False):
if is_query:
texts = [f"Instruct: {INSTRUCTION}\nQuery: {t}" for t in texts]
enc = tok(texts, padding=True, truncation=True, max_length=2048,
return_tensors="pt").to(model.device)
hidden = model(**enc, use_cache=False).last_hidden_state
idx = enc["attention_mask"].sum(dim=1) - 1
vec = hidden[torch.arange(hidden.size(0)), idx][:, :1024]
return F.normalize(vec.float(), dim=-1)
Training Data
The fine-tuning corpus was the original 7,275-chunk snapshot of an agent memory
store. The 663 new unique chunks from October 2026 were added only for the golden_v3
evaluation, giving the merged 7,938-chunk corpus (after removing 110 exact-text
duplicates). The merged corpus was clustered with KMeans (k = 20) on
Qwen3-Embedding-0.6B document embeddings, the clusters were named by an LLM, and the
names were merged into six coarse domains:
| Domain | Contents | Chunks | Original / new | golden_v3 queries (old / new) |
|---|---|---|---|---|
| Agent configuration & operations | Model/gateway configuration, API calls and fallbacks, local embedding deployment, memory-index rebuilds, plugin upgrades, proxy troubleshooting | 3,050 | 2,540 / 510 | 41 / 15 |
| Memory & dreaming | Session summaries, memory consolidation and promotion, dream fragments and confidence scoring, dream narratives | 1,715 | 1,651 / 64 | 10 / 1 |
| Role-play & persona | Character settings, song information, companion role-play | 1,181 | 1,180 / 1 | 9 / 0 |
| Chit-chat & logs | Everyday technical chat, session logs, dream reflections, font and file handling | 827 | 767 / 60 | 21 / 0 |
| News, sports & weather | AI releases and image-generation news, precipitation forecasts, football scores, F1 | 624 | 618 / 6 | 4 / 0 |
| Project docs & blog | Design reports, defense slides, derivations, blog posts and tag cleanup | 541 | 519 / 22 | 14 / 2 |
| Total | 7,938 | 7,275 / 663 | 99 / 18 |
The 118 golden_v3 queries are assigned through their answer chunks; one query with no answer is not assigned. Counts are corpus chunks, not training pairs. Fine-tuning used 9,138 in-domain samples drawn from the 7,275-chunk corpus; public external data is mixed separately and is not part of this classification.
Evaluation
Full-corpus retrieval, dense cosine, K = 1/3/6/10 (K = 6 matches OpenClaw's maxResults = 6). Values are Recall@6 unless stated otherwise. Every row uses the same tokenizer protocol, pooling and normalization; whether the query instruction is applied is labeled in each figure or table. Numbers are not comparable across tables unless the corpus and query set are the same.
vs. Qwen/Qwen3-Embedding-0.6B

The Qwen3-Embedding-0.6B baseline for the valid/locomo rows is evaluated without the
query instruction (the production baseline protocol); this model uses the instruction
prefix. For golden_v3, both 0.6B protocols are shown: without (78.81%) and with (86.44%)
the instruction.
vs. Rebine/Etsu-Embedding-0.8B (previous recipe)

golden_v3 (2026-11) is the final-acceptance set. Queries: 118 = 82 synthetic +
18 original real + 18 new real memory_search queries collected on 8–18 October 2026.
Corpus: the original 7,275 chunks plus 773 chunks exported from the live OpenClaw
memory index, minus 110 exact-text duplicates = 7,938 chunks. Construction: for each
query, candidates were retrieved with the production hybrid score (0.7 × cosine from
Qwen3-Embedding-0.6B + 0.3 × BM25, top 10), reranked with Qwen3-Reranker-0.6B, and
audited by an LLM with evidence-grounding checks; the 2026-09 answers were re-audited
rather than reused as-is. Near-duplicate answers were clustered by 4-gram Jaccard ≥ 0.5, giving 934
answer chunks in 780 clusters, and a query counts as a hit if any member of a relevant
cluster is retrieved (cluster-level recall). The set is frozen (sha256 c483223d…).
With the same instruction, its R@6 gaps over 0.6B and the previous release are within
~1.3 SE, i.e. directional rather than significant. The 2026-09 golden (v1) rows above are
chunk-level on the old 7,275-chunk corpus and are not comparable.
Public benchmarks

On the full C-MTEB suite (31 tasks, task-equal), this model scores 55.06% against the
official Qwen3-Embedding-0.6B figure of 66.33% (Mean(Task); category-equal 55.59% vs
67.45%). The gap comes from the non-retrieval categories, especially Chinese STS
(40.76%). On the 8 Chinese retrieval tasks alone, the model improves all 8 and gains
+8.4pp over the previous 0.8B release under the same encoder and prompt protocol
(59.51% vs 51.07%). The official 0.6B numbers are taken from Qwen's model card and were
produced with a different harness and prompt protocol, so the absolute cross-model gap is
indicative, not bit-comparable; our C-MTEB run uses mteb 2.26.21 with the query
instruction above. The English suite was run on this model only, so it has no baseline.
ToolBench uses the same dataset revision for both arms (official run on mteb 2.12.39, ours
on 2.26.21). ToolRetrieval has no official Qwen3-Embedding-0.6B number, so no cross-model
claim is made; it is English tool/API-card retrieval, not a proxy for in-domain
agent-memory retrieval. MTEB runs use max_length = 1024 (C-MTEB passages are short); the
encoding protocol above uses 2048.
Matryoshka dimensions (Recall@6, 2026-09 sets)
| Dim | valid | golden |
|---|---|---|
| 128 | 66.16% | 65.00% |
| 256 | 75.03% | 70.00% |
| 512 | 80.94% | 71.00% |
| 768 | 83.35% | 77.00% |
| 1024 | 83.46% | 78.00% |
Headline metrics at 1024 dims
| Set | R@1 | R@3 | R@6 | R@10 | MRR@6 |
|---|---|---|---|---|---|
| valid | 58.49% | 75.36% | 83.46% | 86.86% | 67.59% |
| golden (v1) | 49.00% | 69.00% | 78.00% | 82.00% | 59.80% |
| golden_v3 | 66.95% | 80.51% | 91.53% | 93.22% | 74.90% |
The Matryoshka sweep and the valid / golden (v1) rows were measured on the 2026-09 sets;
golden_v3 was not re-run per dimension. golden_v3 is cluster-level on the merged
7,938-chunk corpus.
Known Limitations
- In-domain specialist. On conversational / long-context memory retrieval (LoCoMo en/zh) it scores below the previous 0.8B release and the general-purpose 0.6B baseline (67.53% / 62.32% R@6 vs 75.77% / 72.53% and 74.41% / 72.18%). It is ahead on the 8 Chinese retrieval tasks (C-MTEB 8, +8.4pp over the previous release) and on the merged-corpus
golden_v3at R@6/R@10 (91.53% / 93.22% vs 87.29% / 90.68% for the previous release and 86.44% / 88.14% for 0.6B with the same instruction), though thegolden_v3gaps are within ~1 SE. On the full 31-task C-MTEB it trails the official Qwen3-Embedding-0.6B (55.06% vs 66.33% Mean(Task)), mainly on the non-retrieval categories, especially Chinese STS (40.76%); that reference is a different harness. Use the previous release (Rebine/Etsu-Embedding-0.8B) for LoCoMo-style tasks and this model for agent-memory / Chinese retrieval. - Not a general tool retriever. On MTEB ToolRetrieval (35 English tool/API subsets) it scores 20.33% mean NDCG@10. This model is trained for memory retrieval, not tool/API description matching; use a general-purpose embedding model for tool selection. (On LMEB ToolBench, which shares a dataset revision with the official 0.6B result, it scores 48.17% vs 53.39%.)
- No refusal behaviour. Queries with no answer in the corpus still return results; "no answer" handling must be implemented by a score threshold upstream.
- Retrieval quality is coupled to chunking: training passages were cut at ~800 tokens. Changing the chunk size degrades results.
- Inputs longer than 2048 tokens are truncated on the right; with last-token pooling a truncated input does not pool over its true ending.
Quantizations
GGUF versions: Rebine/Etsu-Embedding-0.8B-Memory-GGUF — F16, Q8_0, and Q4_K_M.
⚠️ The file named Q4_K_M is the t4 build: standard Q4_K_M with the tied token_embd
tensor quantized to Q4_0 (442 MiB); Recall@6 is within 1 standard error of standard Q4_K_M on the
in-domain sets. Speed depends strongly on the llama.cpp build. On b11312, t4 ran about 80 tok/s
vs about 42 for F16 and about 61 for stock Q4_K_M; on llama.cpp v1.0.0 (b12359) the t4 advantage
disappears — t4 and stock Q4_K_M both run about 118 tok/s on a Pi 5, while Q8_0 is fastest at
about 146 tok/s. The reason is #30445: v1.0.0 skips the tied LM head for pooled embeddings, which
is where t4's speedup came from. t4 remains the smallest file; Q8_0 is fastest but uses more memory.
See the GGUF card for the
build-by-build table.
Base Model and License
Derived from Qwen/Qwen3.5-0.8B-Base and distributed under the base model's Apache-2.0 license. Please review the base model license and usage requirements.