TechxGenus
commited on
Commit
•
52684ed
1
Parent(s):
08458f0
Upload folder using huggingface_hub
Browse files- README.md +261 -0
- config.json +42 -0
- model.safetensors +3 -0
- quantize_config.json +13 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer_config.json +363 -0
README.md
ADDED
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
datasets:
|
4 |
+
- tiiuae/falcon-refinedweb
|
5 |
+
- bigcode/the-stack-github-issues
|
6 |
+
- bigcode/commitpackft
|
7 |
+
- bigcode/starcoderdata
|
8 |
+
- EleutherAI/proof-pile-2
|
9 |
+
- meta-math/MetaMathQA
|
10 |
+
language:
|
11 |
+
- en
|
12 |
+
tags:
|
13 |
+
- causal-lm
|
14 |
+
- code
|
15 |
+
metrics:
|
16 |
+
- code_eval
|
17 |
+
library_name: transformers
|
18 |
+
model-index:
|
19 |
+
- name: stabilityai/stable-code-3b
|
20 |
+
results:
|
21 |
+
- task:
|
22 |
+
type: text-generation
|
23 |
+
dataset:
|
24 |
+
type: nuprl/MultiPL-E
|
25 |
+
name: MultiPL-HumanEval (Python)
|
26 |
+
metrics:
|
27 |
+
- name: pass@1
|
28 |
+
type: pass@1
|
29 |
+
value: 32.4
|
30 |
+
verified: false
|
31 |
+
- task:
|
32 |
+
type: text-generation
|
33 |
+
dataset:
|
34 |
+
type: nuprl/MultiPL-E
|
35 |
+
name: MultiPL-HumanEval (C++)
|
36 |
+
metrics:
|
37 |
+
- name: pass@1
|
38 |
+
type: pass@1
|
39 |
+
value: 30.9
|
40 |
+
verified: false
|
41 |
+
- task:
|
42 |
+
type: text-generation
|
43 |
+
dataset:
|
44 |
+
type: nuprl/MultiPL-E
|
45 |
+
name: MultiPL-HumanEval (Java)
|
46 |
+
metrics:
|
47 |
+
- name: pass@1
|
48 |
+
type: pass@1
|
49 |
+
value: 32.1
|
50 |
+
verified: false
|
51 |
+
- task:
|
52 |
+
type: text-generation
|
53 |
+
dataset:
|
54 |
+
type: nuprl/MultiPL-E
|
55 |
+
name: MultiPL-HumanEval (JavaScript)
|
56 |
+
metrics:
|
57 |
+
- name: pass@1
|
58 |
+
type: pass@1
|
59 |
+
value: 32.1
|
60 |
+
verified: false
|
61 |
+
- task:
|
62 |
+
type: text-generation
|
63 |
+
dataset:
|
64 |
+
type: nuprl/MultiPL-E
|
65 |
+
name: MultiPL-HumanEval (PHP)
|
66 |
+
metrics:
|
67 |
+
- name: pass@1
|
68 |
+
type: pass@1
|
69 |
+
value: 24.2
|
70 |
+
verified: false
|
71 |
+
- task:
|
72 |
+
type: text-generation
|
73 |
+
dataset:
|
74 |
+
type: nuprl/MultiPL-E
|
75 |
+
name: MultiPL-HumanEval (Rust)
|
76 |
+
metrics:
|
77 |
+
- name: pass@1
|
78 |
+
type: pass@1
|
79 |
+
value: 23.0
|
80 |
+
verified: false
|
81 |
+
---
|
82 |
+
|
83 |
+
GPTQ quantized version of stable-code-3b model.
|
84 |
+
|
85 |
+
---
|
86 |
+
|
87 |
+
|
88 |
+
# `stable-code-3b`
|
89 |
+
|
90 |
+
## Model Description
|
91 |
+
|
92 |
+
`stable-code-3b` is a 2.7B billion parameter decoder-only language model pre-trained on 1.3 trillion tokens of diverse textual and code datasets. `stable-code-3b` is trained on 18 programming languages (selected based on the 2023 StackOverflow Developer Survey) and demonstrates state-of-the-art performance (compared to models of similar size) on the MultiPL-E metrics across multiple programming languages tested using [BigCode's Evaluation Harness](https://github.com/bigcode-project/bigcode-evaluation-harness/tree/main).
|
93 |
+
|
94 |
+
![spiderchart](stable_code_3b_spiderchart.svg)
|
95 |
+
|
96 |
+
| Model | Size | Python | C++ | Javascript | Java | PHP | Rust |
|
97 |
+
|------------------|------|--------|------|------------|------|------|------|
|
98 |
+
| **Stable Code** | 3B | 32.4% | 30.9%| 32.1% | 32.1%| 24.2%| 23.0%|
|
99 |
+
| CodeLLama | 7B | 30.0% | 28.2%| 32.5% | 31.1%| 25.7%| 26.3%|
|
100 |
+
| Deepseek Coder | 1.3B | 28.6% | 29.2%| 28.7% | 29.0%| 23.6%| 18.5%|
|
101 |
+
| Wizard Coder | 3B | 31.6% | 25.6%| 26.2% | 25.8%| 25.3%| 20.4%|
|
102 |
+
| StarCoder | 3B | 21.6% | 19.8%| 21.5% | 20.5%| 19.0%| 16.9%|
|
103 |
+
| Replit Code V1.5 | 3B | 23.0% | 25.9%| 26.2% | 23.6%| 23.2%| 21.5%|
|
104 |
+
| Deci Coder | 1B | 19.1% | 6.8% | 18.4% | 16.7%| 2.1% | 1.7% |
|
105 |
+
|
106 |
+
**Key Features**
|
107 |
+
* Fill in Middle Capability (FIM)
|
108 |
+
* Supports Long Context, trained with Sequences upto 16,384
|
109 |
+
|
110 |
+
## Usage
|
111 |
+
|
112 |
+
Get started generating text with `stable-code-3b` by using the following code snippet:
|
113 |
+
|
114 |
+
```python
|
115 |
+
import torch
|
116 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
117 |
+
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stable-code-3b")
|
118 |
+
model = AutoModelForCausalLM.from_pretrained(
|
119 |
+
"stabilityai/stable-code-3b",
|
120 |
+
torch_dtype="auto",
|
121 |
+
)
|
122 |
+
model.cuda()
|
123 |
+
inputs = tokenizer("import torch\nimport torch.nn as nn", return_tensors="pt").to(model.device)
|
124 |
+
tokens = model.generate(
|
125 |
+
**inputs,
|
126 |
+
max_new_tokens=48,
|
127 |
+
temperature=0.2,
|
128 |
+
do_sample=True,
|
129 |
+
)
|
130 |
+
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
|
131 |
+
```
|
132 |
+
|
133 |
+
### Run with Fill in Middle (FIM) ⚡️
|
134 |
+
|
135 |
+
<details>
|
136 |
+
<summary> Click to expand </summary>
|
137 |
+
|
138 |
+
```python
|
139 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
140 |
+
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stable-code-3b")
|
141 |
+
model = AutoModelForCausalLM.from_pretrained(
|
142 |
+
"stabilityai/stable-code-3b",
|
143 |
+
torch_dtype="auto",
|
144 |
+
attn_implementation="flash_attention_2",
|
145 |
+
)
|
146 |
+
model.cuda()
|
147 |
+
inputs = tokenizer("<fim_prefix>def fib(n):<fim_suffix> else:\n return fib(n - 2) + fib(n - 1)<fim_middle>", return_tensors="pt").to(model.device)
|
148 |
+
tokens = model.generate(
|
149 |
+
**inputs,
|
150 |
+
max_new_tokens=48,
|
151 |
+
temperature=0.2,
|
152 |
+
do_sample=True,
|
153 |
+
)
|
154 |
+
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
|
155 |
+
```
|
156 |
+
|
157 |
+
</details>
|
158 |
+
|
159 |
+
### Run with Flash Attention 2 ⚡️
|
160 |
+
|
161 |
+
<details>
|
162 |
+
<summary> Click to expand </summary>
|
163 |
+
|
164 |
+
```python
|
165 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
166 |
+
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stable-code-3b", trust_remote_code=True)
|
167 |
+
model = AutoModelForCausalLM.from_pretrained(
|
168 |
+
"stabilityai/stable-code-3b",
|
169 |
+
trust_remote_code=True,
|
170 |
+
torch_dtype="auto",
|
171 |
+
+ attn_implementation="flash_attention_2",
|
172 |
+
)
|
173 |
+
model.cuda()
|
174 |
+
inputs = tokenizer("import torch\nimport torch.nn as nn", return_tensors="pt").to(model.device)
|
175 |
+
tokens = model.generate(
|
176 |
+
**inputs,
|
177 |
+
max_new_tokens=48,
|
178 |
+
temperature=0.2,
|
179 |
+
do_sample=True,
|
180 |
+
)
|
181 |
+
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
|
182 |
+
```
|
183 |
+
|
184 |
+
</details>
|
185 |
+
|
186 |
+
|
187 |
+
## Model Details
|
188 |
+
|
189 |
+
* **Developed by**: [Stability AI](https://stability.ai/)
|
190 |
+
* **Model type**: `stable-code-3b` models are auto-regressive language models based on the transformer decoder architecture.
|
191 |
+
* **Language(s)**: English, Code
|
192 |
+
* **Library**: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)
|
193 |
+
* **License**: License: StabilityAI Non-Commercial Research Community License. If you want to use this model for your commercial products or purposes, please contact us [here](https://stability.ai/membership) to learn more.
|
194 |
+
* **Contact**: For questions and comments about the model, please email `lm@stability.ai`
|
195 |
+
|
196 |
+
### Model Architecture
|
197 |
+
|
198 |
+
The model is a decoder-only transformer similar to the LLaMA ([Touvron et al., 2023](https://arxiv.org/abs/2307.09288)) architecture with the following modifications:
|
199 |
+
|
200 |
+
| Parameters | Hidden Size | Layers | Heads | Sequence Length |
|
201 |
+
|----------------|-------------|--------|-------|-----------------|
|
202 |
+
| 2,796,431,360 | 2560 | 32 | 32 | 16384 |
|
203 |
+
|
204 |
+
* **Position Embeddings**: Rotary Position Embeddings ([Su et al., 2021](https://arxiv.org/abs/2104.09864)) applied to the first 25% of head embedding dimensions for improved throughput following [Black et al. (2022)](https://arxiv.org/pdf/2204.06745.pdf).
|
205 |
+
* **Tokenizer**: We use a modified version of the GPTNeoX Tokenizer.[`NeoX`](https://github.com/EleutherAI/gpt-neox). We add special tokens to train for Fill in the Middle (FIM) capabilities like `<FIM_PREFIX>` and `<FIM_SUFFIX>` along with other special tokens.
|
206 |
+
|
207 |
+
## Training
|
208 |
+
|
209 |
+
### Training Dataset
|
210 |
+
|
211 |
+
The dataset is comprised of a filtered mixture of open-source large-scale datasets available on the [HuggingFace Hub](https://huggingface.co/datasets): Falcon RefinedWeb extract ([Penedo et al., 2023](https://huggingface.co/datasets/tiiuae/falcon-refinedweb)), along with [CommitPackFT](https://huggingface.co/datasets/bigcode/commitpackft) and [Github Issues](https://huggingface.co/datasets/bigcode/the-stack-github-issues) (BigCode., 2023), and StarCoder ([Li et al., 2023](https://arxiv.org/abs/2305.06161)). We further supplement our training with data from mathematical domains ([Azerbayev, Zhangir, et al., 2023](https://arxiv.org/abs/2310.10631) and, [Yu, Longhui, et al., 2023](https://arxiv.org/abs/2309.12284)).
|
212 |
+
|
213 |
+
Top 18 programming languages trained on:
|
214 |
+
- C
|
215 |
+
- CPP
|
216 |
+
- Java
|
217 |
+
- JavaScript
|
218 |
+
- CSS
|
219 |
+
- Go
|
220 |
+
- HTML
|
221 |
+
- Ruby
|
222 |
+
- Rust
|
223 |
+
- Markdown
|
224 |
+
- Shell
|
225 |
+
- Php
|
226 |
+
- Sql
|
227 |
+
- R
|
228 |
+
- Typescript
|
229 |
+
- Python
|
230 |
+
- Jupyter-Clean
|
231 |
+
- RestructuredText
|
232 |
+
|
233 |
+
### Training Procedure
|
234 |
+
|
235 |
+
The model is pre-trained on the aforementioned datasets in `bfloat16` precision, optimized with AdamW.
|
236 |
+
|
237 |
+
### Training Infrastructure
|
238 |
+
|
239 |
+
* **Hardware**: `stable-code-3b` was trained on the Stability AI cluster across 256 NVIDIA A100 40GB GPUs (AWS P4d instances).
|
240 |
+
|
241 |
+
* **Software**: We use a fork of `gpt-neox` ([EleutherAI, 2021](https://github.com/EleutherAI/gpt-neox)), train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 ([Rajbhandari et al., 2019](https://arxiv.org/abs/1910.02054v3)), and rely on flash-attention as well as SwiGLU and Rotary Embedding kernels from FlashAttention-2 ([Dao et al., 2023](https://tridao.me/publications/flash2/flash2.pdf))
|
242 |
+
|
243 |
+
## Use and Limitations
|
244 |
+
|
245 |
+
### Intended Use
|
246 |
+
|
247 |
+
The model is intended to be used as a foundational base model for application-specific fine-tuning. Developers must evaluate and fine-tune the model for safe performance in downstream applications.
|
248 |
+
|
249 |
+
### Limitations and Bias
|
250 |
+
|
251 |
+
As a base model, this model may exhibit unreliable, unsafe, or other undesirable behaviors that must be corrected through evaluation and fine-tuning prior to deployment. The pre-training dataset may have contained offensive or inappropriate content, even after applying data cleansing filters, which can be reflected in the model-generated text. We recommend that users exercise caution when using these models in production systems. Do not use the models if they are unsuitable for your application, or for any applications that may cause deliberate or unintentional harm to others.
|
252 |
+
|
253 |
+
## How to Cite
|
254 |
+
|
255 |
+
```bibtex
|
256 |
+
@misc{stable-code-3b,
|
257 |
+
url={[https://huggingface.co/stabilityai/stable-code-3b](https://huggingface.co/stabilityai/stable-code-3b)},
|
258 |
+
title={Stable Code 3B},
|
259 |
+
author={Pinnaparaju, Nikhil and Adithyan, Reshinth and Phung, Duy and Tow, Jonathan and Baicoianu, James and Cooper, Nathan}
|
260 |
+
}
|
261 |
+
```
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "stable-code-3b",
|
3 |
+
"architectures": [
|
4 |
+
"StableLmForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"eos_token_id": 0,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_dropout": 0.0,
|
11 |
+
"hidden_size": 2560,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 6912,
|
14 |
+
"layer_norm_eps": 1e-05,
|
15 |
+
"max_position_embeddings": 16384,
|
16 |
+
"model_type": "stablelm",
|
17 |
+
"num_attention_heads": 32,
|
18 |
+
"num_hidden_layers": 32,
|
19 |
+
"num_key_value_heads": 32,
|
20 |
+
"partial_rotary_factor": 0.25,
|
21 |
+
"quantization_config": {
|
22 |
+
"bits": 4,
|
23 |
+
"damp_percent": 0.01,
|
24 |
+
"desc_act": true,
|
25 |
+
"group_size": 128,
|
26 |
+
"is_marlin_format": false,
|
27 |
+
"model_file_base_name": null,
|
28 |
+
"model_name_or_path": null,
|
29 |
+
"quant_method": "gptq",
|
30 |
+
"static_groups": false,
|
31 |
+
"sym": true,
|
32 |
+
"true_sequential": true
|
33 |
+
},
|
34 |
+
"rope_scaling": null,
|
35 |
+
"rope_theta": 1000000,
|
36 |
+
"tie_word_embeddings": false,
|
37 |
+
"torch_dtype": "float16",
|
38 |
+
"transformers_version": "4.39.3",
|
39 |
+
"use_cache": true,
|
40 |
+
"use_qkv_bias": false,
|
41 |
+
"vocab_size": 50304
|
42 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b983baf8c75c0446220c38063475aa616eae6db084b6ffcc1a378a18cdc28fab
|
3 |
+
size 1838810792
|
quantize_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bits": 4,
|
3 |
+
"group_size": 128,
|
4 |
+
"damp_percent": 0.01,
|
5 |
+
"desc_act": true,
|
6 |
+
"static_groups": false,
|
7 |
+
"sym": true,
|
8 |
+
"true_sequential": true,
|
9 |
+
"model_name_or_path": null,
|
10 |
+
"model_file_base_name": null,
|
11 |
+
"is_marlin_format": false,
|
12 |
+
"quant_method": "gptq"
|
13 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<|padding|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"50254": {
|
21 |
+
"content": " ",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": false
|
27 |
+
},
|
28 |
+
"50255": {
|
29 |
+
"content": " ",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": false
|
35 |
+
},
|
36 |
+
"50256": {
|
37 |
+
"content": " ",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": true,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": false
|
43 |
+
},
|
44 |
+
"50257": {
|
45 |
+
"content": " ",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false,
|
50 |
+
"special": false
|
51 |
+
},
|
52 |
+
"50258": {
|
53 |
+
"content": " ",
|
54 |
+
"lstrip": false,
|
55 |
+
"normalized": true,
|
56 |
+
"rstrip": false,
|
57 |
+
"single_word": false,
|
58 |
+
"special": false
|
59 |
+
},
|
60 |
+
"50259": {
|
61 |
+
"content": " ",
|
62 |
+
"lstrip": false,
|
63 |
+
"normalized": true,
|
64 |
+
"rstrip": false,
|
65 |
+
"single_word": false,
|
66 |
+
"special": false
|
67 |
+
},
|
68 |
+
"50260": {
|
69 |
+
"content": " ",
|
70 |
+
"lstrip": false,
|
71 |
+
"normalized": true,
|
72 |
+
"rstrip": false,
|
73 |
+
"single_word": false,
|
74 |
+
"special": false
|
75 |
+
},
|
76 |
+
"50261": {
|
77 |
+
"content": " ",
|
78 |
+
"lstrip": false,
|
79 |
+
"normalized": true,
|
80 |
+
"rstrip": false,
|
81 |
+
"single_word": false,
|
82 |
+
"special": false
|
83 |
+
},
|
84 |
+
"50262": {
|
85 |
+
"content": " ",
|
86 |
+
"lstrip": false,
|
87 |
+
"normalized": true,
|
88 |
+
"rstrip": false,
|
89 |
+
"single_word": false,
|
90 |
+
"special": false
|
91 |
+
},
|
92 |
+
"50263": {
|
93 |
+
"content": " ",
|
94 |
+
"lstrip": false,
|
95 |
+
"normalized": true,
|
96 |
+
"rstrip": false,
|
97 |
+
"single_word": false,
|
98 |
+
"special": false
|
99 |
+
},
|
100 |
+
"50264": {
|
101 |
+
"content": " ",
|
102 |
+
"lstrip": false,
|
103 |
+
"normalized": true,
|
104 |
+
"rstrip": false,
|
105 |
+
"single_word": false,
|
106 |
+
"special": false
|
107 |
+
},
|
108 |
+
"50265": {
|
109 |
+
"content": " ",
|
110 |
+
"lstrip": false,
|
111 |
+
"normalized": true,
|
112 |
+
"rstrip": false,
|
113 |
+
"single_word": false,
|
114 |
+
"special": false
|
115 |
+
},
|
116 |
+
"50266": {
|
117 |
+
"content": " ",
|
118 |
+
"lstrip": false,
|
119 |
+
"normalized": true,
|
120 |
+
"rstrip": false,
|
121 |
+
"single_word": false,
|
122 |
+
"special": false
|
123 |
+
},
|
124 |
+
"50267": {
|
125 |
+
"content": " ",
|
126 |
+
"lstrip": false,
|
127 |
+
"normalized": true,
|
128 |
+
"rstrip": false,
|
129 |
+
"single_word": false,
|
130 |
+
"special": false
|
131 |
+
},
|
132 |
+
"50268": {
|
133 |
+
"content": " ",
|
134 |
+
"lstrip": false,
|
135 |
+
"normalized": true,
|
136 |
+
"rstrip": false,
|
137 |
+
"single_word": false,
|
138 |
+
"special": false
|
139 |
+
},
|
140 |
+
"50269": {
|
141 |
+
"content": " ",
|
142 |
+
"lstrip": false,
|
143 |
+
"normalized": true,
|
144 |
+
"rstrip": false,
|
145 |
+
"single_word": false,
|
146 |
+
"special": false
|
147 |
+
},
|
148 |
+
"50270": {
|
149 |
+
"content": " ",
|
150 |
+
"lstrip": false,
|
151 |
+
"normalized": true,
|
152 |
+
"rstrip": false,
|
153 |
+
"single_word": false,
|
154 |
+
"special": false
|
155 |
+
},
|
156 |
+
"50271": {
|
157 |
+
"content": " ",
|
158 |
+
"lstrip": false,
|
159 |
+
"normalized": true,
|
160 |
+
"rstrip": false,
|
161 |
+
"single_word": false,
|
162 |
+
"special": false
|
163 |
+
},
|
164 |
+
"50272": {
|
165 |
+
"content": " ",
|
166 |
+
"lstrip": false,
|
167 |
+
"normalized": true,
|
168 |
+
"rstrip": false,
|
169 |
+
"single_word": false,
|
170 |
+
"special": false
|
171 |
+
},
|
172 |
+
"50273": {
|
173 |
+
"content": " ",
|
174 |
+
"lstrip": false,
|
175 |
+
"normalized": true,
|
176 |
+
"rstrip": false,
|
177 |
+
"single_word": false,
|
178 |
+
"special": false
|
179 |
+
},
|
180 |
+
"50274": {
|
181 |
+
"content": " ",
|
182 |
+
"lstrip": false,
|
183 |
+
"normalized": true,
|
184 |
+
"rstrip": false,
|
185 |
+
"single_word": false,
|
186 |
+
"special": false
|
187 |
+
},
|
188 |
+
"50275": {
|
189 |
+
"content": " ",
|
190 |
+
"lstrip": false,
|
191 |
+
"normalized": true,
|
192 |
+
"rstrip": false,
|
193 |
+
"single_word": false,
|
194 |
+
"special": false
|
195 |
+
},
|
196 |
+
"50276": {
|
197 |
+
"content": " ",
|
198 |
+
"lstrip": false,
|
199 |
+
"normalized": true,
|
200 |
+
"rstrip": false,
|
201 |
+
"single_word": false,
|
202 |
+
"special": false
|
203 |
+
},
|
204 |
+
"50277": {
|
205 |
+
"content": "<fim_prefix>",
|
206 |
+
"lstrip": false,
|
207 |
+
"normalized": false,
|
208 |
+
"rstrip": false,
|
209 |
+
"single_word": false,
|
210 |
+
"special": true
|
211 |
+
},
|
212 |
+
"50278": {
|
213 |
+
"content": "<fim_middle>",
|
214 |
+
"lstrip": false,
|
215 |
+
"normalized": false,
|
216 |
+
"rstrip": false,
|
217 |
+
"single_word": false,
|
218 |
+
"special": true
|
219 |
+
},
|
220 |
+
"50279": {
|
221 |
+
"content": "<fim_suffix>",
|
222 |
+
"lstrip": false,
|
223 |
+
"normalized": false,
|
224 |
+
"rstrip": false,
|
225 |
+
"single_word": false,
|
226 |
+
"special": true
|
227 |
+
},
|
228 |
+
"50280": {
|
229 |
+
"content": "<fim_pad>",
|
230 |
+
"lstrip": false,
|
231 |
+
"normalized": false,
|
232 |
+
"rstrip": false,
|
233 |
+
"single_word": false,
|
234 |
+
"special": true
|
235 |
+
},
|
236 |
+
"50281": {
|
237 |
+
"content": "<filename>",
|
238 |
+
"lstrip": false,
|
239 |
+
"normalized": false,
|
240 |
+
"rstrip": false,
|
241 |
+
"single_word": false,
|
242 |
+
"special": true
|
243 |
+
},
|
244 |
+
"50282": {
|
245 |
+
"content": "<gh_stars>",
|
246 |
+
"lstrip": false,
|
247 |
+
"normalized": false,
|
248 |
+
"rstrip": false,
|
249 |
+
"single_word": false,
|
250 |
+
"special": true
|
251 |
+
},
|
252 |
+
"50283": {
|
253 |
+
"content": "<issue_start>",
|
254 |
+
"lstrip": false,
|
255 |
+
"normalized": false,
|
256 |
+
"rstrip": false,
|
257 |
+
"single_word": false,
|
258 |
+
"special": true
|
259 |
+
},
|
260 |
+
"50284": {
|
261 |
+
"content": "<issue_comment>",
|
262 |
+
"lstrip": false,
|
263 |
+
"normalized": false,
|
264 |
+
"rstrip": false,
|
265 |
+
"single_word": false,
|
266 |
+
"special": true
|
267 |
+
},
|
268 |
+
"50285": {
|
269 |
+
"content": "<issue_closed>",
|
270 |
+
"lstrip": false,
|
271 |
+
"normalized": false,
|
272 |
+
"rstrip": false,
|
273 |
+
"single_word": false,
|
274 |
+
"special": true
|
275 |
+
},
|
276 |
+
"50286": {
|
277 |
+
"content": "<jupyter_start>",
|
278 |
+
"lstrip": false,
|
279 |
+
"normalized": false,
|
280 |
+
"rstrip": false,
|
281 |
+
"single_word": false,
|
282 |
+
"special": true
|
283 |
+
},
|
284 |
+
"50287": {
|
285 |
+
"content": "<jupyter_text>",
|
286 |
+
"lstrip": false,
|
287 |
+
"normalized": false,
|
288 |
+
"rstrip": false,
|
289 |
+
"single_word": false,
|
290 |
+
"special": true
|
291 |
+
},
|
292 |
+
"50288": {
|
293 |
+
"content": "<jupyter_code>",
|
294 |
+
"lstrip": false,
|
295 |
+
"normalized": false,
|
296 |
+
"rstrip": false,
|
297 |
+
"single_word": false,
|
298 |
+
"special": true
|
299 |
+
},
|
300 |
+
"50289": {
|
301 |
+
"content": "<jupyter_output>",
|
302 |
+
"lstrip": false,
|
303 |
+
"normalized": false,
|
304 |
+
"rstrip": false,
|
305 |
+
"single_word": false,
|
306 |
+
"special": true
|
307 |
+
},
|
308 |
+
"50290": {
|
309 |
+
"content": "<empty_output>",
|
310 |
+
"lstrip": false,
|
311 |
+
"normalized": false,
|
312 |
+
"rstrip": false,
|
313 |
+
"single_word": false,
|
314 |
+
"special": true
|
315 |
+
},
|
316 |
+
"50291": {
|
317 |
+
"content": "<commit_before>",
|
318 |
+
"lstrip": false,
|
319 |
+
"normalized": false,
|
320 |
+
"rstrip": false,
|
321 |
+
"single_word": false,
|
322 |
+
"special": true
|
323 |
+
},
|
324 |
+
"50292": {
|
325 |
+
"content": "<commit_msg>",
|
326 |
+
"lstrip": false,
|
327 |
+
"normalized": false,
|
328 |
+
"rstrip": false,
|
329 |
+
"single_word": false,
|
330 |
+
"special": true
|
331 |
+
},
|
332 |
+
"50293": {
|
333 |
+
"content": "<commit_after>",
|
334 |
+
"lstrip": false,
|
335 |
+
"normalized": false,
|
336 |
+
"rstrip": false,
|
337 |
+
"single_word": false,
|
338 |
+
"special": true
|
339 |
+
},
|
340 |
+
"50294": {
|
341 |
+
"content": "<reponame>",
|
342 |
+
"lstrip": false,
|
343 |
+
"normalized": false,
|
344 |
+
"rstrip": false,
|
345 |
+
"single_word": false,
|
346 |
+
"special": true
|
347 |
+
},
|
348 |
+
"50295": {
|
349 |
+
"content": "<repo_continuation>",
|
350 |
+
"lstrip": false,
|
351 |
+
"normalized": false,
|
352 |
+
"rstrip": false,
|
353 |
+
"single_word": false,
|
354 |
+
"special": true
|
355 |
+
}
|
356 |
+
},
|
357 |
+
"bos_token": "<|endoftext|>",
|
358 |
+
"clean_up_tokenization_spaces": true,
|
359 |
+
"eos_token": "<|endoftext|>",
|
360 |
+
"model_max_length": 1000000000000000019884624838656,
|
361 |
+
"tokenizer_class": "GPTNeoXTokenizer",
|
362 |
+
"unk_token": "<|endoftext|>"
|
363 |
+
}
|