Gianloko commited on
Commit
c3a7b69
·
verified ·
1 Parent(s): c218d53

Cycle 1 — judge 13.1/15 Δ+2.4

Browse files
README.md CHANGED
@@ -1,332 +1,210 @@
1
  ---
2
- license: apache-2.0
3
- base_model: unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit
4
- base_model_relation: finetune
5
- tags:
6
- - apex
7
- - salesforce
8
- - lwc
9
- - soql
10
- - sfdx
11
- - code
12
- - lora
13
- - qlora
14
- - peft
15
- - unsloth
16
- - qwen2.5
17
- datasets:
18
- - Gianloko/apex-coder-training-data
19
- language:
20
- - en
21
- pipeline_tag: text-generation
22
  library_name: peft
 
 
 
 
 
 
 
 
23
  ---
24
 
25
- # ApexCoder-1.5B LoRA Adapter
26
 
27
- > QLoRA adapter weights for Salesforce Apex code generation, fine-tuned on top of Qwen2.5-Coder-1.5B-Instruct.
28
 
29
- **Adapter type:** QLoRA (PEFT)
30
- **Base model:** [unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit)
31
- **Merged model (ready to use):** [Gianloko/apex-coder-1.5b](https://huggingface.co/Gianloko/apex-coder-1.5b)
32
- **GGUF / Ollama:** [Gianloko/apex-coder-1.5b-GGUF](https://huggingface.co/Gianloko/apex-coder-1.5b-GGUF)
33
- **Dataset:** [Gianloko/apex-coder-training-data](https://huggingface.co/datasets/Gianloko/apex-coder-training-data)
34
 
35
- ---
36
 
37
- ## When to use the LoRA adapter vs the merged model
38
 
39
- | Use case | Recommended |
40
- |---|---|
41
- | Production inference, Ollama, llama.cpp | ✅ [Merged model](https://huggingface.co/Gianloko/apex-coder-1.5b) |
42
- | Further fine-tuning on top of ApexCoder | ✅ **This LoRA adapter** |
43
- | Low-VRAM inference with dynamic adapter loading | ✅ **This LoRA adapter** |
44
- | GGUF quantized inference | ✅ [GGUF repo](https://huggingface.co/Gianloko/apex-coder-1.5b-GGUF) |
45
- | Swapping adapters at runtime | ✅ **This LoRA adapter** |
46
 
47
- ---
48
 
49
- ## Quick Start
50
-
51
- ### Load with PEFT
52
-
53
- ```python
54
- from peft import PeftModel
55
- from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
56
- import torch
57
-
58
- base_model_id = "unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit"
59
- lora_adapter_id = "Gianloko/apex-coder-1.5b-lora"
60
-
61
- # Load base model in 4-bit
62
- bnb_config = BitsAndBytesConfig(
63
- load_in_4bit=True,
64
- bnb_4bit_quant_type="nf4",
65
- bnb_4bit_compute_dtype=torch.bfloat16,
66
- )
67
- base_model = AutoModelForCausalLM.from_pretrained(
68
- base_model_id,
69
- quantization_config=bnb_config,
70
- device_map="auto",
71
- )
72
- tokenizer = AutoTokenizer.from_pretrained(base_model_id, use_fast=True)
73
-
74
- # Apply LoRA adapter
75
- model = PeftModel.from_pretrained(base_model, lora_adapter_id)
76
- model.eval()
77
-
78
- # Inference
79
- SYSTEM_PROMPT = (
80
- "You are ApexCoder, a world-class Salesforce platform expert specializing in "
81
- "Apex, LWC, Visualforce, Aura, SFDX metadata, Platform Events, and all "
82
- "Salesforce coded artifacts. You write clean, production-ready, "
83
- "governor-limit-aware code following Salesforce best practices."
84
- )
85
-
86
- messages = [
87
- {"role": "system", "content": SYSTEM_PROMPT},
88
- {"role": "user", "content": "Write a bulkified Apex trigger on Account that prevents duplicate names."},
89
- ]
90
-
91
- enc = tokenizer.apply_chat_template(
92
- messages,
93
- return_tensors="pt",
94
- add_generation_prompt=True,
95
- return_dict=True,
96
- )
97
- input_ids = enc["input_ids"].to(model.device)
98
- attention_mask = enc["attention_mask"].to(model.device)
99
-
100
- with torch.no_grad():
101
- output = model.generate(
102
- input_ids,
103
- attention_mask=attention_mask,
104
- max_new_tokens=512,
105
- do_sample=False,
106
- repetition_penalty=1.1,
107
- pad_token_id=tokenizer.eos_token_id,
108
- )
109
-
110
- response = tokenizer.decode(output[0][input_ids.shape[1]:], skip_special_tokens=True)
111
- print(response)
112
- ```
113
-
114
- ### Load with Unsloth (faster inference)
115
-
116
- ```python
117
- from unsloth import FastLanguageModel
118
- from transformers import AutoTokenizer
119
-
120
- lora_adapter_id = "Gianloko/apex-coder-1.5b-lora"
121
-
122
- model, tokenizer = FastLanguageModel.from_pretrained(
123
- model_name=lora_adapter_id,
124
- max_seq_length=4096,
125
- load_in_4bit=True,
126
- dtype=None,
127
- )
128
- FastLanguageModel.for_inference(model)
129
-
130
- SYSTEM_PROMPT = (
131
- "You are ApexCoder, a world-class Salesforce platform expert specializing in "
132
- "Apex, LWC, Visualforce, Aura, SFDX metadata, Platform Events, and all "
133
- "Salesforce coded artifacts. You write clean, production-ready, "
134
- "governor-limit-aware code following Salesforce best practices."
135
- )
136
-
137
- messages = [
138
- {"role": "system", "content": SYSTEM_PROMPT},
139
- {"role": "user", "content": "Write an @isTest class for an HTTP callout using HttpCalloutMock."},
140
- ]
141
-
142
- enc = tokenizer.apply_chat_template(
143
- messages,
144
- return_tensors="pt",
145
- add_generation_prompt=True,
146
- return_dict=True,
147
- )
148
- input_ids = enc["input_ids"].to(model.device)
149
- attention_mask = enc["attention_mask"].to(model.device)
150
-
151
- with torch.no_grad():
152
- output = model.generate(
153
- input_ids,
154
- attention_mask=attention_mask,
155
- max_new_tokens=512,
156
- do_sample=False,
157
- repetition_penalty=1.1,
158
- pad_token_id=tokenizer.eos_token_id,
159
- )
160
-
161
- print(tokenizer.decode(output[0][input_ids.shape[1]:], skip_special_tokens=True))
162
- ```
163
-
164
- ### Merge and save locally
165
-
166
- ```python
167
- from unsloth import FastLanguageModel
168
-
169
- model, tokenizer = FastLanguageModel.from_pretrained(
170
- model_name="Gianloko/apex-coder-1.5b-lora",
171
- max_seq_length=4096,
172
- load_in_4bit=True,
173
- dtype=None,
174
- )
175
-
176
- # Merge LoRA weights into base model and save as 16-bit
177
- model.save_pretrained_merged(
178
- "apex-coder-1.5b-merged",
179
- tokenizer,
180
- save_method="merged_16bit",
181
- )
182
- print("✅ Merged model saved to ./apex-coder-1.5b-merged")
183
- ```
184
 
185
- ---
186
 
187
- ## Further Fine-tuning on Top of This Adapter
188
-
189
- You can continue training from this adapter to specialize ApexCoder further — for example, on your own org's code patterns, internal frameworks, or a specific Salesforce product area.
190
-
191
- ```python
192
- from unsloth import FastLanguageModel
193
- from trl import SFTTrainer, SFTConfig
194
- from datasets import Dataset
195
-
196
- # Load ApexCoder LoRA as starting point
197
- model, tokenizer = FastLanguageModel.from_pretrained(
198
- model_name="Gianloko/apex-coder-1.5b-lora",
199
- max_seq_length=4096,
200
- load_in_4bit=True,
201
- dtype=None,
202
- )
203
-
204
- # Add a new LoRA adapter on top for continued training
205
- model = FastLanguageModel.get_peft_model(
206
- model,
207
- r=16,
208
- lora_alpha=32,
209
- lora_dropout=0.0,
210
- target_modules=["q_proj", "k_proj", "v_proj", "o_proj",
211
- "gate_proj", "up_proj", "down_proj"],
212
- bias="none",
213
- use_gradient_checkpointing="unsloth",
214
- use_rslora=True,
215
- )
216
-
217
- # Your custom dataset
218
- your_dataset = Dataset.from_list([
219
- {
220
- "messages": [
221
- {"role": "system", "content": "You are ApexCoder..."},
222
- {"role": "user", "content": "Your custom question"},
223
- {"role": "assistant", "content": "Your custom answer"},
224
- ]
225
- }
226
- ])
227
-
228
- def apply_template(examples):
229
- return {"text": [
230
- tokenizer.apply_chat_template(msgs, tokenize=False, add_generation_prompt=False)
231
- for msgs in examples["messages"]
232
- ]}
233
-
234
- dataset = your_dataset.map(apply_template, batched=True,
235
- remove_columns=your_dataset.column_names)
236
-
237
- trainer = SFTTrainer(
238
- model=model,
239
- args=SFTConfig(
240
- output_dir="./my-apex-coder-checkpoints",
241
- num_train_epochs=2,
242
- learning_rate=2e-5, # lower LR for continued fine-tuning
243
- per_device_train_batch_size=4,
244
- gradient_accumulation_steps=4,
245
- bf16=True,
246
- max_seq_length=4096,
247
- dataset_text_field="text",
248
- packing=True,
249
- ),
250
- train_dataset=dataset,
251
- processing_class=tokenizer,
252
- )
253
-
254
- trainer.train()
255
- model.save_pretrained("./my-apex-coder-lora")
256
- tokenizer.save_pretrained("./my-apex-coder-lora")
257
- ```
258
 
259
- ---
260
 
261
- ## LoRA Configuration
262
 
263
- | Parameter | Value |
264
- |---|---|
265
- | LoRA rank (r) | 16 |
266
- | LoRA alpha | 32 |
267
- | LoRA dropout | 0.0 |
268
- | Bias | none |
269
- | RSLoRA | ✅ enabled |
270
- | Gradient checkpointing | unsloth |
271
- | Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
272
- | Trainable parameters | ~13M / 1.5B total (~0.9%) |
273
 
274
- ---
275
 
276
- ## Training Configuration
277
-
278
- | Parameter | Value |
279
- |---|---|
280
- | Learning rate | 5e-5 |
281
- | LR scheduler | Cosine |
282
- | Warmup ratio | 0.05 |
283
- | Batch size | 8 × 4 gradient accumulation = 32 effective |
284
- | Epochs | 3 |
285
- | Optimizer | AdamW 8-bit |
286
- | Max sequence length | 4096 |
287
- | Packing | ✅ enabled |
288
- | Training loss | 0.8032 |
289
- | Perplexity | 1.92 |
290
 
291
- ---
292
 
293
- ## Chat Template
294
 
295
- This adapter uses the ChatML template (same as base Qwen2.5):
296
 
297
- ```
298
- <|im_start|>system
299
- You are ApexCoder...<|im_end|>
300
- <|im_start|>user
301
- Your question here<|im_end|>
302
- <|im_start|>assistant
303
- ```
304
 
305
- Always include the system prompt for best results:
306
 
307
- ```
308
- You are ApexCoder, a world-class Salesforce platform expert specializing in
309
- Apex, LWC, Visualforce, Aura, SFDX metadata, Platform Events, and all
310
- Salesforce coded artifacts. You write clean, production-ready,
311
- governor-limit-aware code following Salesforce best practices.
312
- ```
313
 
314
- ---
315
 
316
- ## Related Repositories
317
 
318
- | Repo | Description |
319
- |---|---|
320
- | [Gianloko/apex-coder-1.5b](https://huggingface.co/Gianloko/apex-coder-1.5b) | Merged 16-bit model — easiest to use |
321
- | [Gianloko/apex-coder-1.5b-GGUF](https://huggingface.co/Gianloko/apex-coder-1.5b-GGUF) | GGUF quantized — for Ollama / llama.cpp |
322
- | [Gianloko/apex-coder-training-data](https://huggingface.co/datasets/Gianloko/apex-coder-training-data) | Training dataset — 3,655 curated samples |
323
 
324
- ---
325
 
326
- ## License
327
 
328
- Apache 2.0 — free to use, modify, and distribute for commercial and non-commercial purposes.
329
 
330
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
 
332
- *Built with ❤️ for the Salesforce developer community.*
 
1
  ---
2
+ base_model: Gianloko/apex-coder-1.5b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:Gianloko/apex-coder-1.5b
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - unsloth
12
  ---
13
 
14
+ # Model Card for Model ID
15
 
16
+ <!-- Provide a quick summary of what the model is/does. -->
17
 
 
 
 
 
 
18
 
 
19
 
20
+ ## Model Details
21
 
22
+ ### Model Description
 
 
 
 
 
 
23
 
24
+ <!-- Provide a longer summary of what this model is. -->
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
 
27
 
28
+ - **Developed by:** [More Information Needed]
29
+ - **Funded by [optional]:** [More Information Needed]
30
+ - **Shared by [optional]:** [More Information Needed]
31
+ - **Model type:** [More Information Needed]
32
+ - **Language(s) (NLP):** [More Information Needed]
33
+ - **License:** [More Information Needed]
34
+ - **Finetuned from model [optional]:** [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ ### Model Sources [optional]
37
 
38
+ <!-- Provide the basic links for the model. -->
39
 
40
+ - **Repository:** [More Information Needed]
41
+ - **Paper [optional]:** [More Information Needed]
42
+ - **Demo [optional]:** [More Information Needed]
 
 
 
 
 
 
 
43
 
44
+ ## Uses
45
 
46
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
+ ### Direct Use
49
 
50
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
51
 
52
+ [More Information Needed]
53
 
54
+ ### Downstream Use [optional]
 
 
 
 
 
 
55
 
56
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
57
 
58
+ [More Information Needed]
 
 
 
 
 
59
 
60
+ ### Out-of-Scope Use
61
 
62
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
63
 
64
+ [More Information Needed]
 
 
 
 
65
 
66
+ ## Bias, Risks, and Limitations
67
 
68
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
69
 
70
+ [More Information Needed]
71
 
72
+ ### Recommendations
73
+
74
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
75
+
76
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
77
+
78
+ ## How to Get Started with the Model
79
+
80
+ Use the code below to get started with the model.
81
+
82
+ [More Information Needed]
83
+
84
+ ## Training Details
85
+
86
+ ### Training Data
87
+
88
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
89
+
90
+ [More Information Needed]
91
+
92
+ ### Training Procedure
93
+
94
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
95
+
96
+ #### Preprocessing [optional]
97
+
98
+ [More Information Needed]
99
+
100
+
101
+ #### Training Hyperparameters
102
+
103
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
104
+
105
+ #### Speeds, Sizes, Times [optional]
106
+
107
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
108
+
109
+ [More Information Needed]
110
+
111
+ ## Evaluation
112
+
113
+ <!-- This section describes the evaluation protocols and provides the results. -->
114
+
115
+ ### Testing Data, Factors & Metrics
116
+
117
+ #### Testing Data
118
+
119
+ <!-- This should link to a Dataset Card if possible. -->
120
+
121
+ [More Information Needed]
122
+
123
+ #### Factors
124
+
125
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
126
+
127
+ [More Information Needed]
128
+
129
+ #### Metrics
130
+
131
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
132
+
133
+ [More Information Needed]
134
+
135
+ ### Results
136
+
137
+ [More Information Needed]
138
+
139
+ #### Summary
140
+
141
+
142
+
143
+ ## Model Examination [optional]
144
+
145
+ <!-- Relevant interpretability work for the model goes here -->
146
+
147
+ [More Information Needed]
148
+
149
+ ## Environmental Impact
150
+
151
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
152
+
153
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
154
+
155
+ - **Hardware Type:** [More Information Needed]
156
+ - **Hours used:** [More Information Needed]
157
+ - **Cloud Provider:** [More Information Needed]
158
+ - **Compute Region:** [More Information Needed]
159
+ - **Carbon Emitted:** [More Information Needed]
160
+
161
+ ## Technical Specifications [optional]
162
+
163
+ ### Model Architecture and Objective
164
+
165
+ [More Information Needed]
166
+
167
+ ### Compute Infrastructure
168
+
169
+ [More Information Needed]
170
+
171
+ #### Hardware
172
+
173
+ [More Information Needed]
174
+
175
+ #### Software
176
+
177
+ [More Information Needed]
178
+
179
+ ## Citation [optional]
180
+
181
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
182
+
183
+ **BibTeX:**
184
+
185
+ [More Information Needed]
186
+
187
+ **APA:**
188
+
189
+ [More Information Needed]
190
+
191
+ ## Glossary [optional]
192
+
193
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
194
+
195
+ [More Information Needed]
196
+
197
+ ## More Information [optional]
198
+
199
+ [More Information Needed]
200
+
201
+ ## Model Card Authors [optional]
202
+
203
+ [More Information Needed]
204
+
205
+ ## Model Card Contact
206
+
207
+ [More Information Needed]
208
+ ### Framework versions
209
 
210
+ - PEFT 0.18.1
adapter_config.json CHANGED
@@ -7,7 +7,7 @@
7
  "parent_library": "transformers.models.qwen2.modeling_qwen2",
8
  "unsloth_fixed": true
9
  },
10
- "base_model_name_or_path": "unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit",
11
  "bias": "none",
12
  "corda_config": null,
13
  "ensure_weight_tying": false,
@@ -33,13 +33,13 @@
33
  "rank_pattern": {},
34
  "revision": null,
35
  "target_modules": [
 
36
  "k_proj",
37
  "v_proj",
38
- "o_proj",
39
  "up_proj",
40
  "gate_proj",
41
- "down_proj",
42
- "q_proj"
43
  ],
44
  "target_parameters": null,
45
  "task_type": "CAUSAL_LM",
 
7
  "parent_library": "transformers.models.qwen2.modeling_qwen2",
8
  "unsloth_fixed": true
9
  },
10
+ "base_model_name_or_path": "Gianloko/apex-coder-1.5b",
11
  "bias": "none",
12
  "corda_config": null,
13
  "ensure_weight_tying": false,
 
33
  "rank_pattern": {},
34
  "revision": null,
35
  "target_modules": [
36
+ "o_proj",
37
  "k_proj",
38
  "v_proj",
39
+ "q_proj",
40
  "up_proj",
41
  "gate_proj",
42
+ "down_proj"
 
43
  ],
44
  "target_parameters": null,
45
  "task_type": "CAUSAL_LM",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5853fb7ffd39d5084893e75433d113c9405d2b898eb55697a9fd490405af3ef5
3
  size 147770496
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5be1eb79cc2d015bb4f5be893e8183c1a2f5100a407803ae35d627c5ffdc4c59
3
  size 147770496
added_tokens.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|PAD_TOKEN|>": 151665,
5
+ "<|box_end|>": 151649,
6
+ "<|box_start|>": 151648,
7
+ "<|endoftext|>": 151643,
8
+ "<|file_sep|>": 151664,
9
+ "<|fim_middle|>": 151660,
10
+ "<|fim_pad|>": 151662,
11
+ "<|fim_prefix|>": 151659,
12
+ "<|fim_suffix|>": 151661,
13
+ "<|im_end|>": 151645,
14
+ "<|im_start|>": 151644,
15
+ "<|image_pad|>": 151655,
16
+ "<|object_ref_end|>": 151647,
17
+ "<|object_ref_start|>": 151646,
18
+ "<|quad_end|>": 151651,
19
+ "<|quad_start|>": 151650,
20
+ "<|repo_name|>": 151663,
21
+ "<|video_pad|>": 151656,
22
+ "<|vision_end|>": 151653,
23
+ "<|vision_pad|>": 151654,
24
+ "<|vision_start|>": 151652
25
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eos_token": {
3
+ "content": "<|im_end|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "pad_token": {
10
+ "content": "<|PAD_TOKEN|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ }
16
+ }
tokenizer_config.json CHANGED
@@ -1,11 +1,197 @@
1
  {
2
  "add_prefix_space": false,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "backend": "tokenizers",
4
  "bos_token": null,
5
  "clean_up_tokenization_spaces": false,
6
  "eos_token": "<|im_end|>",
7
  "errors": "replace",
8
- "extra_special_tokens": [],
9
  "is_local": false,
10
  "model_max_length": 32768,
11
  "pad_token": "<|PAD_TOKEN|>",
 
1
  {
2
  "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "151657": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "151658": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "151659": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "151660": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "151661": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "151662": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "151663": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "151664": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "151665": {
181
+ "content": "<|PAD_TOKEN|>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": true
187
+ }
188
+ },
189
  "backend": "tokenizers",
190
  "bos_token": null,
191
  "clean_up_tokenization_spaces": false,
192
  "eos_token": "<|im_end|>",
193
  "errors": "replace",
194
+ "extra_special_tokens": {},
195
  "is_local": false,
196
  "model_max_length": 32768,
197
  "pad_token": "<|PAD_TOKEN|>",
vocab.json ADDED
The diff for this file is too large to render. See raw diff