fuhao23 commited on
Commit
f9a89a7
·
verified ·
1 Parent(s): 7438b93

Upload LycheeMem reranker v1 (Qwen3-Reranker-0.6B + LoRA rank=16, V4 Pro 5-level distillation)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,203 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model: Qwen/Qwen3-Reranker-0.6B
4
+ library_name: peft
5
+ tags:
6
+ - reranker
7
+ - memory-retrieval
8
+ - long-term-memory
9
+ - dialog
10
+ - lora
11
+ - distillation
12
+ - lycheemem
13
+ language:
14
+ - en
15
+ pipeline_tag: text-classification
16
  ---
17
+
18
+ # LycheeMem Reranker v1
19
+
20
+ A LoRA adapter on top of **Qwen3-Reranker-0.6B**, fine-tuned for **long-term memory dialog retrieval** in conversational AI memory systems. Trained with V4 Pro 5-level distillation labels on consumer hardware (RTX 4060 Ti 8 GB).
21
+
22
+ Built as a drop-in reranker for [LycheeMem](https://github.com/LycheeMem/lycheemem) and similar systems where the candidate set is past conversation snippets (not generic passages).
23
+
24
+ ## Highlights
25
+
26
+ - **18 MB LoRA adapter** on top of 0.6 B base — runs on a single RTX 4060 Ti 8 GB, zero API cost at inference
27
+ - **MAP 0.919** on LongMemEval-S held-out (373 queries unseen during training); **+5.4 pp over BGE-Reranker-v2-m3** (560 M industrial baseline) on the same data
28
+ - **MAP 0.706** on HotpotQA distractor (7,405 queries) — completely out-of-distribution, never seen during training
29
+ - **No GPT/Claude/Gemini API used** during training (V4 Pro distillation uses DeepSeek, which permits derivative models)
30
+ - **2 h 5 min training**, ¥12.47 one-time labeling cost — fully reproducible on consumer hardware
31
+
32
+ ## Evaluation
33
+
34
+ All evaluations use queries strictly held out from training. The "in-domain" benchmarks remove the queries that overlapped with our training set (held-out subsets). The "out-of-domain" benchmark is the standard HotpotQA distractor validation set, never seen during training.
35
+
36
+ ### Headline numbers (MAP, higher is better)
37
+
38
+ | Model | Params | LongMemEval-S<br/>(373 q held-out) | MSC-MemFuse-MC10<br/>(27 q held-out) | HotpotQA distractor<br/>(7,405 q, OOD) |
39
+ |---|---|---|---|---|
40
+ | **LycheeMem reranker v1 (this)** | 0.6B + LoRA | **0.9185** | **0.7457** | **0.7063** |
41
+ | BGE-Reranker-v2-m3 | 560M | 0.8647 | 0.5503 | 0.8002 |
42
+ | Δ vs BGE | | **+5.4 pp** | **+19.5 pp** | **−9.4 pp** |
43
+
44
+ ### Full metric breakdown
45
+
46
+ | Benchmark | hit@10 | Recall@5 | Recall@10 | **MAP** | NDCG@10 |
47
+ |---|---|---|---|---|---|
48
+ | LongMemEval-S held-out | 1.000 | 0.964 | 0.988 | **0.919** | 0.940 |
49
+ | MSC-MemFuse-MC10 held-out | 1.000 | 0.799 | 0.896 | **0.746** | 0.786 |
50
+ | HotpotQA distractor (OOD) | 0.987 | 0.793 | 0.890 | **0.706** | 0.769 |
51
+
52
+ ### Domain trade-off (honest)
53
+
54
+ This model is **specialized for memory dialog retrieval**, not a drop-in general-purpose reranker:
55
+
56
+ - **In-domain (memory dialog)**: outperforms BGE-Reranker-v2-m3 by +5.4 to +19.5 pp MAP. Use this model.
57
+ - **Out-of-domain (Wikipedia QA)**: trails BGE-Reranker-v2-m3 by 9.4 pp MAP. Use BGE for general retrieval.
58
+ - The trade-off is intentional — distillation labels were biased toward memory dialog semantics.
59
+
60
+ ## Training pipeline
61
+
62
+ ```text
63
+ Base: Qwen/Qwen3-Reranker-0.6B
64
+ Adapter: LoRA r=16, alpha=32, dropout=0.05
65
+ target_modules = q_proj, k_proj, v_proj, o_proj
66
+
67
+ Stage 1: Pair construction (18,947 pairs, two sources)
68
+ - LongMemEval-S-cleaned-overlap: 127 queries × ~47 candidates
69
+ - MSC-MemFuse-MC10-answer-turn: 299 queries × 50 candidates
70
+ - Initial labels:
71
+ candidate.id ∈ evidence_ids → 1.0 (hard positive)
72
+ candidate.id ∈ baseline-top-10 → 0.4 (mid-tier, refined in Stage 2)
73
+ else → 0.0
74
+
75
+ Stage 2: V4 Pro 5-level label distillation (4,223 calls, ¥12.47)
76
+ - DeepSeek V4 Pro re-scored all mid-tier candidates + 5% calibration sample
77
+ - Replaced binary mid-tier labels with continuous 0.0/0.2/0.4/0.6/0.8 scores
78
+ - 658 mid-tier candidates received nuanced (non-extreme) labels
79
+ - "thinking" mode disabled for speed; agree-with-baseline rate 97%
80
+
81
+ Stage 3: BCE training with float labels (2 h 5 min on RTX 4060 Ti 8 GB)
82
+ - 3 epochs, effective batch size 16, lr=2e-4, cosine schedule
83
+ - bf16 + gradient checkpointing, VRAM peak 1.7 GB
84
+ - BCEWithLogitsLoss against continuous targets
85
+
86
+ Trainable parameters: 4.59M / 600.37M = 0.76%
87
+ ```
88
+
89
+ ## Intended use
90
+
91
+ **Primary**: rerank candidate memory snippets in a long-term memory system. Inputs are (user query, candidate past-conversation snippet); output is a relevance score. Use the top-K scored candidates as context for downstream LLM answering.
92
+
93
+ **Input format** (Qwen3-Reranker convention):
94
+
95
+ ```text
96
+ <Instruct>: Given a user query, retrieve memory snippets that answer the query
97
+ <Query>: {user_query}
98
+ <Document>: {candidate_memory_snippet}
99
+ ```
100
+
101
+ ## How to use
102
+
103
+ ```python
104
+ import torch
105
+ from peft import PeftModel
106
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
107
+
108
+ BASE = "Qwen/Qwen3-Reranker-0.6B"
109
+ ADAPTER = "fuhao23/reranker_v1" # this repo
110
+
111
+ # 1. Load base + LoRA adapter
112
+ tok = AutoTokenizer.from_pretrained(BASE, trust_remote_code=True)
113
+ if tok.pad_token is None:
114
+ tok.pad_token = tok.eos_token
115
+
116
+ base = AutoModelForSequenceClassification.from_pretrained(
117
+ BASE,
118
+ num_labels=1,
119
+ torch_dtype=torch.bfloat16,
120
+ trust_remote_code=True,
121
+ )
122
+ base.config.pad_token_id = tok.pad_token_id
123
+ model = PeftModel.from_pretrained(base, ADAPTER).eval().to("cuda")
124
+
125
+ # 2. Score (query, candidate) pairs
126
+ INSTRUCT = "Given a user query, retrieve memory snippets that answer the query"
127
+
128
+ def score(query: str, candidates: list[str], max_len: int = 512) -> list[float]:
129
+ texts = [
130
+ f"<Instruct>: {INSTRUCT}\n<Query>: {query}\n<Document>: {c}"
131
+ for c in candidates
132
+ ]
133
+ enc = tok(texts, padding=True, truncation=True, max_length=max_len,
134
+ return_tensors="pt").to(model.device)
135
+ with torch.inference_mode():
136
+ logits = model(**enc).logits.squeeze(-1).float().cpu().tolist()
137
+ return logits
138
+
139
+ # 3. Rerank top-K
140
+ query = "What cuisines have I tried recently?"
141
+ candidates = [
142
+ "user: I cooked Thai tom yum soup last weekend.",
143
+ "user: The Tokyo restaurants we discussed earlier.",
144
+ "user: My tax filing reminder for next quarter.",
145
+ ]
146
+ scores = score(query, candidates)
147
+ ranked = sorted(zip(scores, candidates), reverse=True)
148
+ for s, c in ranked:
149
+ print(f"{s:+7.3f} {c}")
150
+ # Higher logit = more relevant. Pass through sigmoid if you need [0, 1] probabilities.
151
+ ```
152
+
153
+ ## Limitations
154
+
155
+ Read carefully before deployment:
156
+
157
+ 1. **Specialized for dialog memory, not general retrieval.** On Wikipedia QA (HotpotQA, an OOD test), this model trails BGE-Reranker-v2-m3 by 9.4 pp MAP. For general-purpose retrieval, use BGE.
158
+
159
+ 2. **English-only training distribution.** All training data is English personal-dialog (LongMemEval-S + MSC-MemFuse-MC10). Chinese, technical, code, and other languages are not evaluated.
160
+
161
+ 3. **MSC held-out sample is small (27 queries).** The MSC-MemFuse-MC10 benchmark number has wide confidence intervals due to sample size; use LongMemEval-S as the primary in-domain reference.
162
+
163
+ 4. **Distillation teacher is DeepSeek V4 Pro.** Comparisons against models stronger than V4 Pro may have ceiling effects from the labeling source.
164
+
165
+ 5. **No end-to-end downstream evaluation reported.** This model card reports retrieval-stage MAP / NDCG / Recall. End-to-end LLM answer accuracy with this reranker integrated into a memory system is not yet measured.
166
+
167
+ 6. **No real user feedback data used.** Training is fully offline distillation; no preference / DPO signals from real deployments.
168
+
169
+ ## Methodology details
170
+
171
+ Full pipeline, ablation studies (including a negative result on InfoNCE second-stage training and an iterative hard-negative mining dead-end), and reproducibility scripts are in the [LycheeMem repository](https://github.com/LycheeMem/lycheemem):
172
+
173
+ - `examples/build_reranker_v1_train_data.py` — pair construction
174
+ - `examples/label_reranker_v1_v4pro.py` — V4 Pro 5-level distillation
175
+ - `examples/reranker_v1_merge_v4pro.py` — label merge
176
+ - `examples/reranker_v1_train.py` — BCE training with `--label-mode float`
177
+ - `examples/reranker_v1_eval.py` — unified evaluation
178
+
179
+ ## Citation
180
+
181
+ ```bibtex
182
+ @misc{lycheemem_reranker_v1,
183
+ title = {LycheeMem Reranker v1: A Domain-Specialized Reranker for Long-Term Memory Dialog Retrieval},
184
+ author = {LycheeMem Project},
185
+ year = {2026},
186
+ url = {https://huggingface.co/fuhao23/reranker_v1}
187
+ }
188
+ ```
189
+
190
+ Base model:
191
+
192
+ ```bibtex
193
+ @misc{qwen3_embedding,
194
+ title = {Qwen3 Embedding Series},
195
+ author = {Qwen Team},
196
+ year = {2025},
197
+ url = {https://huggingface.co/Qwen/Qwen3-Reranker-0.6B}
198
+ }
199
+ ```
200
+
201
+ ## License
202
+
203
+ Apache 2.0 (matches the base Qwen3-Reranker-0.6B license).
adapter_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3-Reranker-0.6B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": [
26
+ "classifier",
27
+ "score"
28
+ ],
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.19.1",
31
+ "qalora_group_size": 16,
32
+ "r": 16,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": [
36
+ "k_proj",
37
+ "q_proj",
38
+ "v_proj",
39
+ "o_proj"
40
+ ],
41
+ "target_parameters": null,
42
+ "task_type": "SEQ_CLS",
43
+ "trainable_token_indices": null,
44
+ "use_bdlora": null,
45
+ "use_dora": false,
46
+ "use_qalora": false,
47
+ "use_rslora": false
48
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:451395873de451f04f0e1ce2512ffbf9f165867d442d74557b9f6f0a572e861c
3
+ size 18382152
added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
chat_template.jinja ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set instruction = messages | selectattr("role", "eq", "system") | map(attribute="content") | first | default("Given a web search query, retrieve relevant passages that answer the query") -%}
2
+ {%- set query_text = messages | selectattr("role", "eq", "query") | map(attribute="content") | first -%}
3
+ {%- set document_text = messages | selectattr("role", "eq", "document") | map(attribute="content") | first -%}
4
+ <|im_start|>system
5
+ Judge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be "yes" or "no".<|im_end|>
6
+ <|im_start|>user
7
+ <Instruct>: {{ instruction }}
8
+ <Query>: {{ query_text }}
9
+ <Document>: {{ document_text }}<|im_end|>
10
+ <|im_start|>assistant
11
+ <think>
12
+
13
+ </think>
14
+
15
+
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1574cf58b63a2a56db9bc28f6ddcac4ece87690840939153189077692486f4ee
3
+ size 11422920
tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff