ditto/qwen3-emb-docpointer:q1-merged
A query-side fine-tune of
Qwen/Qwen3-Embedding-0.6B
(revision 97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3). It points a user request
at the documentation slice that explains how to serve it. Ditto calls it the
doc pointer.
Only queries go through this model. Documents are embedded with the unmodified base model, and the query vectors from this model are scored against them. It was trained with a frozen document tower.
Format
Identical to the base model:
- left-padded last-token pooling;
- L2 normalisation;
- the tokenizer appends
<|endoftext|>.
| Side | Model | Text | Max tokens |
|---|---|---|---|
| query | this model | Instruct: Given a user's request to an AI assistant, retrieve the documentation slice describing how to serve it\nQuery:{request} |
256 |
| document | base Qwen3-Embedding-0.6B | the slice text, no instruction | 512 |
Score with the cosine (the dot product of the normalised vectors). Ditto's calibrated "no relevant doc" cutoff on the top-1 score is 0.295.
Training
- Adapter: LoRA with r 16, alpha 32 and dropout 0.05 on every attention and MLP projection.
- Objective: full-softmax InfoNCE over the document corpus, with the document tower frozen.
- Run: 3 epochs, batch 32.
The adapter is merged as W + (alpha / r) · B·A, computed in float32 and
stored in bfloat16. Every other tensor, the config and the tokenizer are the
base model's, byte for byte.
Parity
Measured on 50 queries and 50 documents, including inputs past both truncation limits.
| Comparison | Min cosine |
|---|---|
| merged vs unmerged adapter, float32 | 0.99995 |
| merged bfloat16 vs unmerged adapter float32 | 0.9996 |
Serving
The model serves with vLLM: --runner pooling --convert embed and
--pooler-config '{"pooling_type": "LAST", "use_activation": true}'.
License
Apache 2.0, inherited from the base model.