Text Generation
Transformers
PyTorch
English
gpt_neox
causal-lm
Inference Endpoints
text-generation-inference
hartholt jon-tow commited on
Commit
8f53858
0 Parent(s):

Duplicate from stabilityai/stablelm-tuned-alpha-7b

Browse files

Co-authored-by: Jonathan Tow <jon-tow@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - causal-lm
6
+ license: cc-by-nc-sa-4.0
7
+ datasets:
8
+ - dmayhem93/ChatCombined
9
+ - tatsu-lab/alpaca
10
+ - nomic-ai/gpt4all_prompt_generations
11
+ - Dahoas/full-hh-rlhf
12
+ - jeffwan/sharegpt_vicuna
13
+ - HuggingFaceH4/databricks_dolly_15k
14
+ duplicated_from: stabilityai/stablelm-tuned-alpha-7b
15
+ ---
16
+
17
+ # StableLM-Tuned-Alpha
18
+
19
+ ## Model Description
20
+
21
+ `StableLM-Tuned-Alpha` is a suite of 3B and 7B parameter decoder-only language models built on top of the `StableLM-Base-Alpha` models and further fine-tuned on various chat and instruction-following datasets.
22
+
23
+ ## Usage
24
+
25
+ Get started chatting with `StableLM-Tuned-Alpha` by using the following code snippet:
26
+
27
+ ```python
28
+ from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList
29
+
30
+ tokenizer = AutoTokenizer.from_pretrained("StabilityAI/stablelm-tuned-alpha-7b")
31
+ model = AutoModelForCausalLM.from_pretrained("StabilityAI/stablelm-tuned-alpha-7b")
32
+ model.half().cuda()
33
+
34
+ class StopOnTokens(StoppingCriteria):
35
+ def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
36
+ stop_ids = [50278, 50279, 50277, 1, 0]
37
+ for stop_id in stop_ids:
38
+ if input_ids[0][-1] == stop_id:
39
+ return True
40
+ return False
41
+
42
+ system_prompt = """<|SYSTEM|># StableLM Tuned (Alpha version)
43
+ - StableLM is a helpful and harmless open-source AI language model developed by StabilityAI.
44
+ - StableLM is excited to be able to help the user, but will refuse to do anything that could be considered harmful to the user.
45
+ - StableLM is more than just an information source, StableLM is also able to write poetry, short stories, and make jokes.
46
+ - StableLM will refuse to participate in anything that could harm a human.
47
+ """
48
+
49
+ prompt = f"{system_prompt}<|USER|>What's your mood today?<|ASSISTANT|>"
50
+
51
+ inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
52
+ tokens = model.generate(
53
+ **inputs,
54
+ max_new_tokens=64,
55
+ temperature=0.7,
56
+ do_sample=True,
57
+ stopping_criteria=StoppingCriteriaList([StopOnTokens()])
58
+ )
59
+ print(tokenizer.decode(tokens[0], skip_special_tokens=True))
60
+ ```
61
+
62
+ StableLM Tuned should be used with prompts formatted to `<|SYSTEM|>...<|USER|>...<|ASSISTANT|>...`
63
+ The system prompt is
64
+ ```
65
+ <|SYSTEM|># StableLM Tuned (Alpha version)
66
+ - StableLM is a helpful and harmless open-source AI language model developed by StabilityAI.
67
+ - StableLM is excited to be able to help the user, but will refuse to do anything that could be considered harmful to the user.
68
+ - StableLM is more than just an information source, StableLM is also able to write poetry, short stories, and make jokes.
69
+ - StableLM will refuse to participate in anything that could harm a human.
70
+ ```
71
+
72
+ ## Model Details
73
+
74
+ * **Developed by**: [Stability AI](https://stability.ai/)
75
+ * **Model type**: StableLM-Tuned-Alpha models are auto-regressive language models based on the NeoX transformer architecture.
76
+ * **Language(s)**: English
77
+ * **Library**: [HuggingFace Transformers](https://github.com/huggingface/transformers)
78
+ * **License**: Fine-tuned checkpoints (`StableLM-Tuned-Alpha`) are licensed under the Non-Commercial Creative Commons license ([CC BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)), in-line with the original non-commercial license specified by [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca).
79
+ * **Contact**: For questions and comments about the model, please email `lm@stability.ai`
80
+
81
+ ## Training
82
+
83
+ | Parameters | Hidden Size | Layers | Heads | Sequence Length |
84
+ |------------|-------------|--------|-------|-----------------|
85
+ | 3B | 4096 | 16 | 32 | 4096 |
86
+ | 7B | 6144 | 16 | 48 | 4096 |
87
+
88
+ ### Training Dataset
89
+
90
+ `StableLM-Tuned-Alpha` models are fine-tuned on a combination of five datasets:
91
+ [Alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca), a dataset of 52,000 instructions and demonstrations generated by OpenAI's `text-davinci-003` engine.
92
+ [GPT4All Prompt Generations](https://huggingface.co/datasets/nomic-ai/gpt4all_prompt_generations), which consists of 400k prompts and responses generated by GPT-4;
93
+ [Anthropic HH](https://huggingface.co/datasets/Dahoas/full-hh-rlhf), made up of preferences about AI assistant helpfulness and harmlessness;
94
+ [DataBricks Dolly](https://github.com/databrickslabs/dolly), comprising 15k instruction/responses generated by Databricks employees in capability domains from the InstructGPT paper, including brainstorming, classification, closed QA, generation, information extraction, open QA and summarization;
95
+ and [ShareGPT Vicuna (English subset)](https://huggingface.co/datasets/jeffwan/sharegpt_vicuna), a dataset of conversations retrieved from [ShareGPT](https://sharegpt.com/).
96
+
97
+ ### Training Procedure
98
+
99
+ Models are learned via supervised fine-tuning on the aforementioned datasets, trained in mixed-precision (FP16), and optimized with AdamW. We outline the following hyperparameters:
100
+
101
+ | Parameters | Batch Size | Learning Rate | Warm-up | Weight Decay | Betas |
102
+ |------------|------------|---------------|---------|--------------|-------------|
103
+ | 3B | 256 | 2e-5 | 50 | 0.01 | (0.9, 0.99) |
104
+ | 7B | 128 | 2e-5 | 100 | 0.01 | (0.9, 0.99) |
105
+
106
+ ## Use and Limitations
107
+
108
+ ### Intended Use
109
+
110
+ These models are intended to be used by the open-source community chat-like applications in adherence with the [CC BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license.
111
+
112
+ ### Limitations and bias
113
+
114
+ Although the aforementioned datasets help to steer the base language models into "safer" distributions of text, not all biases and toxicity can be mitigated through fine-tuning. We ask that users be mindful of such potential issues that can arise in generated responses. Do not treat model outputs as substitutes for human judgment or as sources of truth. Please use responsibly.
115
+
116
+ ## Acknowledgements
117
+
118
+ This work would not have been possible without the helpful hand of Dakota Mahan ([@dmayhem93](https://huggingface.co/dmayhem93)).
119
+
120
+ ## Citations
121
+
122
+ ```bibtex
123
+ @misc{alpaca,
124
+ author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto },
125
+ title = {Stanford Alpaca: An Instruction-following LLaMA model},
126
+ year = {2023},
127
+ publisher = {GitHub},
128
+ journal = {GitHub repository},
129
+ howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},
130
+ }
131
+ ```
132
+
133
+ ```bibtext
134
+ @misc{vicuna2023,
135
+ title = {Vicuna: An Open-Source Chatbot Impressing GPT-4 with 90%* ChatGPT Quality},
136
+ url = {https://vicuna.lmsys.org},
137
+ author = {Chiang, Wei-Lin and Li, Zhuohan and Lin, Zi and Sheng, Ying and Wu, Zhanghao and Zhang, Hao and Zheng, Lianmin and Zhuang, Siyuan and Zhuang, Yonghao and Gonzalez, Joseph E. and Stoica, Ion and Xing, Eric P.},
138
+ month = {March},
139
+ year = {2023}
140
+ }
141
+ ```
142
+
143
+ ```bibtex
144
+ @misc{gpt4all,
145
+ author = {Yuvanesh Anand and Zach Nussbaum and Brandon Duderstadt and Benjamin Schmidt and Andriy Mulyar},
146
+ title = {GPT4All: Training an Assistant-style Chatbot with Large Scale Data Distillation from GPT-3.5-Turbo},
147
+ year = {2023},
148
+ publisher = {GitHub},
149
+ journal = {GitHub repository},
150
+ howpublished = {\url{https://github.com/nomic-ai/gpt4all}},
151
+ }
152
+ ```
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "7b-tuned-69k",
3
+ "architectures": [
4
+ "GPTNeoXForCausalLM"
5
+ ],
6
+ "bos_token_id": 0,
7
+ "eos_token_id": 0,
8
+ "hidden_act": "gelu",
9
+ "hidden_size": 6144,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 24576,
12
+ "layer_norm_eps": 1e-05,
13
+ "max_position_embeddings": 4096,
14
+ "model_type": "gpt_neox",
15
+ "num_attention_heads": 48,
16
+ "num_hidden_layers": 16,
17
+ "rotary_emb_base": 10000,
18
+ "rotary_pct": 0.25,
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.28.1",
22
+ "use_cache": true,
23
+ "use_parallel_residual": true,
24
+ "vocab_size": 50432
25
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 0,
5
+ "transformers_version": "4.28.1"
6
+ }
pytorch_model-00001-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a9a1188946994d1d2d2f34ac852e58a31224ca2e9fadf5f00a9e53d3fd0abb8
3
+ size 9780618427
pytorch_model-00002-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d67d1607cff57a943ba1a0dda3be515b2576805cdca995a99ea9cbe351e1c44
3
+ size 9766089215
pytorch_model-00003-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bfe37e7a716e462abfe653c587b49b72c78e8315b2cec054ca4f59f7b080ac3
3
+ size 9749285761
pytorch_model-00004-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5a0d650fd3115f6f2b369ae6110587fd2fbf996b5723e17dea21da0aabe79d6
3
+ size 2447551184
pytorch_model.bin.index.json ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 31508579392.0
4
+ },
5
+ "weight_map": {
6
+ "embed_out.weight": "pytorch_model-00004-of-00004.bin",
7
+ "gpt_neox.embed_in.weight": "pytorch_model-00001-of-00004.bin",
8
+ "gpt_neox.final_layer_norm.bias": "pytorch_model-00004-of-00004.bin",
9
+ "gpt_neox.final_layer_norm.weight": "pytorch_model-00004-of-00004.bin",
10
+ "gpt_neox.layers.0.attention.bias": "pytorch_model-00001-of-00004.bin",
11
+ "gpt_neox.layers.0.attention.dense.bias": "pytorch_model-00001-of-00004.bin",
12
+ "gpt_neox.layers.0.attention.dense.weight": "pytorch_model-00001-of-00004.bin",
13
+ "gpt_neox.layers.0.attention.masked_bias": "pytorch_model-00001-of-00004.bin",
14
+ "gpt_neox.layers.0.attention.query_key_value.bias": "pytorch_model-00001-of-00004.bin",
15
+ "gpt_neox.layers.0.attention.query_key_value.weight": "pytorch_model-00001-of-00004.bin",
16
+ "gpt_neox.layers.0.attention.rotary_emb.inv_freq": "pytorch_model-00001-of-00004.bin",
17
+ "gpt_neox.layers.0.input_layernorm.bias": "pytorch_model-00001-of-00004.bin",
18
+ "gpt_neox.layers.0.input_layernorm.weight": "pytorch_model-00001-of-00004.bin",
19
+ "gpt_neox.layers.0.mlp.dense_4h_to_h.bias": "pytorch_model-00001-of-00004.bin",
20
+ "gpt_neox.layers.0.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00004.bin",
21
+ "gpt_neox.layers.0.mlp.dense_h_to_4h.bias": "pytorch_model-00001-of-00004.bin",
22
+ "gpt_neox.layers.0.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00004.bin",
23
+ "gpt_neox.layers.0.post_attention_layernorm.bias": "pytorch_model-00001-of-00004.bin",
24
+ "gpt_neox.layers.0.post_attention_layernorm.weight": "pytorch_model-00001-of-00004.bin",
25
+ "gpt_neox.layers.1.attention.bias": "pytorch_model-00001-of-00004.bin",
26
+ "gpt_neox.layers.1.attention.dense.bias": "pytorch_model-00001-of-00004.bin",
27
+ "gpt_neox.layers.1.attention.dense.weight": "pytorch_model-00001-of-00004.bin",
28
+ "gpt_neox.layers.1.attention.masked_bias": "pytorch_model-00001-of-00004.bin",
29
+ "gpt_neox.layers.1.attention.query_key_value.bias": "pytorch_model-00001-of-00004.bin",
30
+ "gpt_neox.layers.1.attention.query_key_value.weight": "pytorch_model-00001-of-00004.bin",
31
+ "gpt_neox.layers.1.attention.rotary_emb.inv_freq": "pytorch_model-00001-of-00004.bin",
32
+ "gpt_neox.layers.1.input_layernorm.bias": "pytorch_model-00001-of-00004.bin",
33
+ "gpt_neox.layers.1.input_layernorm.weight": "pytorch_model-00001-of-00004.bin",
34
+ "gpt_neox.layers.1.mlp.dense_4h_to_h.bias": "pytorch_model-00001-of-00004.bin",
35
+ "gpt_neox.layers.1.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00004.bin",
36
+ "gpt_neox.layers.1.mlp.dense_h_to_4h.bias": "pytorch_model-00001-of-00004.bin",
37
+ "gpt_neox.layers.1.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00004.bin",
38
+ "gpt_neox.layers.1.post_attention_layernorm.bias": "pytorch_model-00001-of-00004.bin",
39
+ "gpt_neox.layers.1.post_attention_layernorm.weight": "pytorch_model-00001-of-00004.bin",
40
+ "gpt_neox.layers.10.attention.bias": "pytorch_model-00002-of-00004.bin",
41
+ "gpt_neox.layers.10.attention.dense.bias": "pytorch_model-00003-of-00004.bin",
42
+ "gpt_neox.layers.10.attention.dense.weight": "pytorch_model-00003-of-00004.bin",
43
+ "gpt_neox.layers.10.attention.masked_bias": "pytorch_model-00002-of-00004.bin",
44
+ "gpt_neox.layers.10.attention.query_key_value.bias": "pytorch_model-00003-of-00004.bin",
45
+ "gpt_neox.layers.10.attention.query_key_value.weight": "pytorch_model-00003-of-00004.bin",
46
+ "gpt_neox.layers.10.attention.rotary_emb.inv_freq": "pytorch_model-00002-of-00004.bin",
47
+ "gpt_neox.layers.10.input_layernorm.bias": "pytorch_model-00002-of-00004.bin",
48
+ "gpt_neox.layers.10.input_layernorm.weight": "pytorch_model-00002-of-00004.bin",
49
+ "gpt_neox.layers.10.mlp.dense_4h_to_h.bias": "pytorch_model-00003-of-00004.bin",
50
+ "gpt_neox.layers.10.mlp.dense_4h_to_h.weight": "pytorch_model-00003-of-00004.bin",
51
+ "gpt_neox.layers.10.mlp.dense_h_to_4h.bias": "pytorch_model-00003-of-00004.bin",
52
+ "gpt_neox.layers.10.mlp.dense_h_to_4h.weight": "pytorch_model-00003-of-00004.bin",
53
+ "gpt_neox.layers.10.post_attention_layernorm.bias": "pytorch_model-00002-of-00004.bin",
54
+ "gpt_neox.layers.10.post_attention_layernorm.weight": "pytorch_model-00002-of-00004.bin",
55
+ "gpt_neox.layers.11.attention.bias": "pytorch_model-00003-of-00004.bin",
56
+ "gpt_neox.layers.11.attention.dense.bias": "pytorch_model-00003-of-00004.bin",
57
+ "gpt_neox.layers.11.attention.dense.weight": "pytorch_model-00003-of-00004.bin",
58
+ "gpt_neox.layers.11.attention.masked_bias": "pytorch_model-00003-of-00004.bin",
59
+ "gpt_neox.layers.11.attention.query_key_value.bias": "pytorch_model-00003-of-00004.bin",
60
+ "gpt_neox.layers.11.attention.query_key_value.weight": "pytorch_model-00003-of-00004.bin",
61
+ "gpt_neox.layers.11.attention.rotary_emb.inv_freq": "pytorch_model-00003-of-00004.bin",
62
+ "gpt_neox.layers.11.input_layernorm.bias": "pytorch_model-00003-of-00004.bin",
63
+ "gpt_neox.layers.11.input_layernorm.weight": "pytorch_model-00003-of-00004.bin",
64
+ "gpt_neox.layers.11.mlp.dense_4h_to_h.bias": "pytorch_model-00003-of-00004.bin",
65
+ "gpt_neox.layers.11.mlp.dense_4h_to_h.weight": "pytorch_model-00003-of-00004.bin",
66
+ "gpt_neox.layers.11.mlp.dense_h_to_4h.bias": "pytorch_model-00003-of-00004.bin",
67
+ "gpt_neox.layers.11.mlp.dense_h_to_4h.weight": "pytorch_model-00003-of-00004.bin",
68
+ "gpt_neox.layers.11.post_attention_layernorm.bias": "pytorch_model-00003-of-00004.bin",
69
+ "gpt_neox.layers.11.post_attention_layernorm.weight": "pytorch_model-00003-of-00004.bin",
70
+ "gpt_neox.layers.12.attention.bias": "pytorch_model-00003-of-00004.bin",
71
+ "gpt_neox.layers.12.attention.dense.bias": "pytorch_model-00003-of-00004.bin",
72
+ "gpt_neox.layers.12.attention.dense.weight": "pytorch_model-00003-of-00004.bin",
73
+ "gpt_neox.layers.12.attention.masked_bias": "pytorch_model-00003-of-00004.bin",
74
+ "gpt_neox.layers.12.attention.query_key_value.bias": "pytorch_model-00003-of-00004.bin",
75
+ "gpt_neox.layers.12.attention.query_key_value.weight": "pytorch_model-00003-of-00004.bin",
76
+ "gpt_neox.layers.12.attention.rotary_emb.inv_freq": "pytorch_model-00003-of-00004.bin",
77
+ "gpt_neox.layers.12.input_layernorm.bias": "pytorch_model-00003-of-00004.bin",
78
+ "gpt_neox.layers.12.input_layernorm.weight": "pytorch_model-00003-of-00004.bin",
79
+ "gpt_neox.layers.12.mlp.dense_4h_to_h.bias": "pytorch_model-00003-of-00004.bin",
80
+ "gpt_neox.layers.12.mlp.dense_4h_to_h.weight": "pytorch_model-00003-of-00004.bin",
81
+ "gpt_neox.layers.12.mlp.dense_h_to_4h.bias": "pytorch_model-00003-of-00004.bin",
82
+ "gpt_neox.layers.12.mlp.dense_h_to_4h.weight": "pytorch_model-00003-of-00004.bin",
83
+ "gpt_neox.layers.12.post_attention_layernorm.bias": "pytorch_model-00003-of-00004.bin",
84
+ "gpt_neox.layers.12.post_attention_layernorm.weight": "pytorch_model-00003-of-00004.bin",
85
+ "gpt_neox.layers.13.attention.bias": "pytorch_model-00003-of-00004.bin",
86
+ "gpt_neox.layers.13.attention.dense.bias": "pytorch_model-00003-of-00004.bin",
87
+ "gpt_neox.layers.13.attention.dense.weight": "pytorch_model-00003-of-00004.bin",
88
+ "gpt_neox.layers.13.attention.masked_bias": "pytorch_model-00003-of-00004.bin",
89
+ "gpt_neox.layers.13.attention.query_key_value.bias": "pytorch_model-00003-of-00004.bin",
90
+ "gpt_neox.layers.13.attention.query_key_value.weight": "pytorch_model-00003-of-00004.bin",
91
+ "gpt_neox.layers.13.attention.rotary_emb.inv_freq": "pytorch_model-00003-of-00004.bin",
92
+ "gpt_neox.layers.13.input_layernorm.bias": "pytorch_model-00003-of-00004.bin",
93
+ "gpt_neox.layers.13.input_layernorm.weight": "pytorch_model-00003-of-00004.bin",
94
+ "gpt_neox.layers.13.mlp.dense_4h_to_h.bias": "pytorch_model-00003-of-00004.bin",
95
+ "gpt_neox.layers.13.mlp.dense_4h_to_h.weight": "pytorch_model-00003-of-00004.bin",
96
+ "gpt_neox.layers.13.mlp.dense_h_to_4h.bias": "pytorch_model-00003-of-00004.bin",
97
+ "gpt_neox.layers.13.mlp.dense_h_to_4h.weight": "pytorch_model-00003-of-00004.bin",
98
+ "gpt_neox.layers.13.post_attention_layernorm.bias": "pytorch_model-00003-of-00004.bin",
99
+ "gpt_neox.layers.13.post_attention_layernorm.weight": "pytorch_model-00003-of-00004.bin",
100
+ "gpt_neox.layers.14.attention.bias": "pytorch_model-00003-of-00004.bin",
101
+ "gpt_neox.layers.14.attention.dense.bias": "pytorch_model-00003-of-00004.bin",
102
+ "gpt_neox.layers.14.attention.dense.weight": "pytorch_model-00003-of-00004.bin",
103
+ "gpt_neox.layers.14.attention.masked_bias": "pytorch_model-00003-of-00004.bin",
104
+ "gpt_neox.layers.14.attention.query_key_value.bias": "pytorch_model-00003-of-00004.bin",
105
+ "gpt_neox.layers.14.attention.query_key_value.weight": "pytorch_model-00003-of-00004.bin",
106
+ "gpt_neox.layers.14.attention.rotary_emb.inv_freq": "pytorch_model-00003-of-00004.bin",
107
+ "gpt_neox.layers.14.input_layernorm.bias": "pytorch_model-00003-of-00004.bin",
108
+ "gpt_neox.layers.14.input_layernorm.weight": "pytorch_model-00003-of-00004.bin",
109
+ "gpt_neox.layers.14.mlp.dense_4h_to_h.bias": "pytorch_model-00003-of-00004.bin",
110
+ "gpt_neox.layers.14.mlp.dense_4h_to_h.weight": "pytorch_model-00003-of-00004.bin",
111
+ "gpt_neox.layers.14.mlp.dense_h_to_4h.bias": "pytorch_model-00003-of-00004.bin",
112
+ "gpt_neox.layers.14.mlp.dense_h_to_4h.weight": "pytorch_model-00003-of-00004.bin",
113
+ "gpt_neox.layers.14.post_attention_layernorm.bias": "pytorch_model-00003-of-00004.bin",
114
+ "gpt_neox.layers.14.post_attention_layernorm.weight": "pytorch_model-00003-of-00004.bin",
115
+ "gpt_neox.layers.15.attention.bias": "pytorch_model-00003-of-00004.bin",
116
+ "gpt_neox.layers.15.attention.dense.bias": "pytorch_model-00003-of-00004.bin",
117
+ "gpt_neox.layers.15.attention.dense.weight": "pytorch_model-00003-of-00004.bin",
118
+ "gpt_neox.layers.15.attention.masked_bias": "pytorch_model-00003-of-00004.bin",
119
+ "gpt_neox.layers.15.attention.query_key_value.bias": "pytorch_model-00003-of-00004.bin",
120
+ "gpt_neox.layers.15.attention.query_key_value.weight": "pytorch_model-00003-of-00004.bin",
121
+ "gpt_neox.layers.15.attention.rotary_emb.inv_freq": "pytorch_model-00003-of-00004.bin",
122
+ "gpt_neox.layers.15.input_layernorm.bias": "pytorch_model-00003-of-00004.bin",
123
+ "gpt_neox.layers.15.input_layernorm.weight": "pytorch_model-00003-of-00004.bin",
124
+ "gpt_neox.layers.15.mlp.dense_4h_to_h.bias": "pytorch_model-00004-of-00004.bin",
125
+ "gpt_neox.layers.15.mlp.dense_4h_to_h.weight": "pytorch_model-00004-of-00004.bin",
126
+ "gpt_neox.layers.15.mlp.dense_h_to_4h.bias": "pytorch_model-00004-of-00004.bin",
127
+ "gpt_neox.layers.15.mlp.dense_h_to_4h.weight": "pytorch_model-00004-of-00004.bin",
128
+ "gpt_neox.layers.15.post_attention_layernorm.bias": "pytorch_model-00003-of-00004.bin",
129
+ "gpt_neox.layers.15.post_attention_layernorm.weight": "pytorch_model-00003-of-00004.bin",
130
+ "gpt_neox.layers.2.attention.bias": "pytorch_model-00001-of-00004.bin",
131
+ "gpt_neox.layers.2.attention.dense.bias": "pytorch_model-00001-of-00004.bin",
132
+ "gpt_neox.layers.2.attention.dense.weight": "pytorch_model-00001-of-00004.bin",
133
+ "gpt_neox.layers.2.attention.masked_bias": "pytorch_model-00001-of-00004.bin",
134
+ "gpt_neox.layers.2.attention.query_key_value.bias": "pytorch_model-00001-of-00004.bin",
135
+ "gpt_neox.layers.2.attention.query_key_value.weight": "pytorch_model-00001-of-00004.bin",
136
+ "gpt_neox.layers.2.attention.rotary_emb.inv_freq": "pytorch_model-00001-of-00004.bin",
137
+ "gpt_neox.layers.2.input_layernorm.bias": "pytorch_model-00001-of-00004.bin",
138
+ "gpt_neox.layers.2.input_layernorm.weight": "pytorch_model-00001-of-00004.bin",
139
+ "gpt_neox.layers.2.mlp.dense_4h_to_h.bias": "pytorch_model-00001-of-00004.bin",
140
+ "gpt_neox.layers.2.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00004.bin",
141
+ "gpt_neox.layers.2.mlp.dense_h_to_4h.bias": "pytorch_model-00001-of-00004.bin",
142
+ "gpt_neox.layers.2.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00004.bin",
143
+ "gpt_neox.layers.2.post_attention_layernorm.bias": "pytorch_model-00001-of-00004.bin",
144
+ "gpt_neox.layers.2.post_attention_layernorm.weight": "pytorch_model-00001-of-00004.bin",
145
+ "gpt_neox.layers.3.attention.bias": "pytorch_model-00001-of-00004.bin",
146
+ "gpt_neox.layers.3.attention.dense.bias": "pytorch_model-00001-of-00004.bin",
147
+ "gpt_neox.layers.3.attention.dense.weight": "pytorch_model-00001-of-00004.bin",
148
+ "gpt_neox.layers.3.attention.masked_bias": "pytorch_model-00001-of-00004.bin",
149
+ "gpt_neox.layers.3.attention.query_key_value.bias": "pytorch_model-00001-of-00004.bin",
150
+ "gpt_neox.layers.3.attention.query_key_value.weight": "pytorch_model-00001-of-00004.bin",
151
+ "gpt_neox.layers.3.attention.rotary_emb.inv_freq": "pytorch_model-00001-of-00004.bin",
152
+ "gpt_neox.layers.3.input_layernorm.bias": "pytorch_model-00001-of-00004.bin",
153
+ "gpt_neox.layers.3.input_layernorm.weight": "pytorch_model-00001-of-00004.bin",
154
+ "gpt_neox.layers.3.mlp.dense_4h_to_h.bias": "pytorch_model-00001-of-00004.bin",
155
+ "gpt_neox.layers.3.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00004.bin",
156
+ "gpt_neox.layers.3.mlp.dense_h_to_4h.bias": "pytorch_model-00001-of-00004.bin",
157
+ "gpt_neox.layers.3.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00004.bin",
158
+ "gpt_neox.layers.3.post_attention_layernorm.bias": "pytorch_model-00001-of-00004.bin",
159
+ "gpt_neox.layers.3.post_attention_layernorm.weight": "pytorch_model-00001-of-00004.bin",
160
+ "gpt_neox.layers.4.attention.bias": "pytorch_model-00001-of-00004.bin",
161
+ "gpt_neox.layers.4.attention.dense.bias": "pytorch_model-00001-of-00004.bin",
162
+ "gpt_neox.layers.4.attention.dense.weight": "pytorch_model-00001-of-00004.bin",
163
+ "gpt_neox.layers.4.attention.masked_bias": "pytorch_model-00001-of-00004.bin",
164
+ "gpt_neox.layers.4.attention.query_key_value.bias": "pytorch_model-00001-of-00004.bin",
165
+ "gpt_neox.layers.4.attention.query_key_value.weight": "pytorch_model-00001-of-00004.bin",
166
+ "gpt_neox.layers.4.attention.rotary_emb.inv_freq": "pytorch_model-00001-of-00004.bin",
167
+ "gpt_neox.layers.4.input_layernorm.bias": "pytorch_model-00001-of-00004.bin",
168
+ "gpt_neox.layers.4.input_layernorm.weight": "pytorch_model-00001-of-00004.bin",
169
+ "gpt_neox.layers.4.mlp.dense_4h_to_h.bias": "pytorch_model-00002-of-00004.bin",
170
+ "gpt_neox.layers.4.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00004.bin",
171
+ "gpt_neox.layers.4.mlp.dense_h_to_4h.bias": "pytorch_model-00001-of-00004.bin",
172
+ "gpt_neox.layers.4.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00004.bin",
173
+ "gpt_neox.layers.4.post_attention_layernorm.bias": "pytorch_model-00001-of-00004.bin",
174
+ "gpt_neox.layers.4.post_attention_layernorm.weight": "pytorch_model-00001-of-00004.bin",
175
+ "gpt_neox.layers.5.attention.bias": "pytorch_model-00002-of-00004.bin",
176
+ "gpt_neox.layers.5.attention.dense.bias": "pytorch_model-00002-of-00004.bin",
177
+ "gpt_neox.layers.5.attention.dense.weight": "pytorch_model-00002-of-00004.bin",
178
+ "gpt_neox.layers.5.attention.masked_bias": "pytorch_model-00002-of-00004.bin",
179
+ "gpt_neox.layers.5.attention.query_key_value.bias": "pytorch_model-00002-of-00004.bin",
180
+ "gpt_neox.layers.5.attention.query_key_value.weight": "pytorch_model-00002-of-00004.bin",
181
+ "gpt_neox.layers.5.attention.rotary_emb.inv_freq": "pytorch_model-00002-of-00004.bin",
182
+ "gpt_neox.layers.5.input_layernorm.bias": "pytorch_model-00002-of-00004.bin",
183
+ "gpt_neox.layers.5.input_layernorm.weight": "pytorch_model-00002-of-00004.bin",
184
+ "gpt_neox.layers.5.mlp.dense_4h_to_h.bias": "pytorch_model-00002-of-00004.bin",
185
+ "gpt_neox.layers.5.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00004.bin",
186
+ "gpt_neox.layers.5.mlp.dense_h_to_4h.bias": "pytorch_model-00002-of-00004.bin",
187
+ "gpt_neox.layers.5.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00004.bin",
188
+ "gpt_neox.layers.5.post_attention_layernorm.bias": "pytorch_model-00002-of-00004.bin",
189
+ "gpt_neox.layers.5.post_attention_layernorm.weight": "pytorch_model-00002-of-00004.bin",
190
+ "gpt_neox.layers.6.attention.bias": "pytorch_model-00002-of-00004.bin",
191
+ "gpt_neox.layers.6.attention.dense.bias": "pytorch_model-00002-of-00004.bin",
192
+ "gpt_neox.layers.6.attention.dense.weight": "pytorch_model-00002-of-00004.bin",
193
+ "gpt_neox.layers.6.attention.masked_bias": "pytorch_model-00002-of-00004.bin",
194
+ "gpt_neox.layers.6.attention.query_key_value.bias": "pytorch_model-00002-of-00004.bin",
195
+ "gpt_neox.layers.6.attention.query_key_value.weight": "pytorch_model-00002-of-00004.bin",
196
+ "gpt_neox.layers.6.attention.rotary_emb.inv_freq": "pytorch_model-00002-of-00004.bin",
197
+ "gpt_neox.layers.6.input_layernorm.bias": "pytorch_model-00002-of-00004.bin",
198
+ "gpt_neox.layers.6.input_layernorm.weight": "pytorch_model-00002-of-00004.bin",
199
+ "gpt_neox.layers.6.mlp.dense_4h_to_h.bias": "pytorch_model-00002-of-00004.bin",
200
+ "gpt_neox.layers.6.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00004.bin",
201
+ "gpt_neox.layers.6.mlp.dense_h_to_4h.bias": "pytorch_model-00002-of-00004.bin",
202
+ "gpt_neox.layers.6.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00004.bin",
203
+ "gpt_neox.layers.6.post_attention_layernorm.bias": "pytorch_model-00002-of-00004.bin",
204
+ "gpt_neox.layers.6.post_attention_layernorm.weight": "pytorch_model-00002-of-00004.bin",
205
+ "gpt_neox.layers.7.attention.bias": "pytorch_model-00002-of-00004.bin",
206
+ "gpt_neox.layers.7.attention.dense.bias": "pytorch_model-00002-of-00004.bin",
207
+ "gpt_neox.layers.7.attention.dense.weight": "pytorch_model-00002-of-00004.bin",
208
+ "gpt_neox.layers.7.attention.masked_bias": "pytorch_model-00002-of-00004.bin",
209
+ "gpt_neox.layers.7.attention.query_key_value.bias": "pytorch_model-00002-of-00004.bin",
210
+ "gpt_neox.layers.7.attention.query_key_value.weight": "pytorch_model-00002-of-00004.bin",
211
+ "gpt_neox.layers.7.attention.rotary_emb.inv_freq": "pytorch_model-00002-of-00004.bin",
212
+ "gpt_neox.layers.7.input_layernorm.bias": "pytorch_model-00002-of-00004.bin",
213
+ "gpt_neox.layers.7.input_layernorm.weight": "pytorch_model-00002-of-00004.bin",
214
+ "gpt_neox.layers.7.mlp.dense_4h_to_h.bias": "pytorch_model-00002-of-00004.bin",
215
+ "gpt_neox.layers.7.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00004.bin",
216
+ "gpt_neox.layers.7.mlp.dense_h_to_4h.bias": "pytorch_model-00002-of-00004.bin",
217
+ "gpt_neox.layers.7.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00004.bin",
218
+ "gpt_neox.layers.7.post_attention_layernorm.bias": "pytorch_model-00002-of-00004.bin",
219
+ "gpt_neox.layers.7.post_attention_layernorm.weight": "pytorch_model-00002-of-00004.bin",
220
+ "gpt_neox.layers.8.attention.bias": "pytorch_model-00002-of-00004.bin",
221
+ "gpt_neox.layers.8.attention.dense.bias": "pytorch_model-00002-of-00004.bin",
222
+ "gpt_neox.layers.8.attention.dense.weight": "pytorch_model-00002-of-00004.bin",
223
+ "gpt_neox.layers.8.attention.masked_bias": "pytorch_model-00002-of-00004.bin",
224
+ "gpt_neox.layers.8.attention.query_key_value.bias": "pytorch_model-00002-of-00004.bin",
225
+ "gpt_neox.layers.8.attention.query_key_value.weight": "pytorch_model-00002-of-00004.bin",
226
+ "gpt_neox.layers.8.attention.rotary_emb.inv_freq": "pytorch_model-00002-of-00004.bin",
227
+ "gpt_neox.layers.8.input_layernorm.bias": "pytorch_model-00002-of-00004.bin",
228
+ "gpt_neox.layers.8.input_layernorm.weight": "pytorch_model-00002-of-00004.bin",
229
+ "gpt_neox.layers.8.mlp.dense_4h_to_h.bias": "pytorch_model-00002-of-00004.bin",
230
+ "gpt_neox.layers.8.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00004.bin",
231
+ "gpt_neox.layers.8.mlp.dense_h_to_4h.bias": "pytorch_model-00002-of-00004.bin",
232
+ "gpt_neox.layers.8.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00004.bin",
233
+ "gpt_neox.layers.8.post_attention_layernorm.bias": "pytorch_model-00002-of-00004.bin",
234
+ "gpt_neox.layers.8.post_attention_layernorm.weight": "pytorch_model-00002-of-00004.bin",
235
+ "gpt_neox.layers.9.attention.bias": "pytorch_model-00002-of-00004.bin",
236
+ "gpt_neox.layers.9.attention.dense.bias": "pytorch_model-00002-of-00004.bin",
237
+ "gpt_neox.layers.9.attention.dense.weight": "pytorch_model-00002-of-00004.bin",
238
+ "gpt_neox.layers.9.attention.masked_bias": "pytorch_model-00002-of-00004.bin",
239
+ "gpt_neox.layers.9.attention.query_key_value.bias": "pytorch_model-00002-of-00004.bin",
240
+ "gpt_neox.layers.9.attention.query_key_value.weight": "pytorch_model-00002-of-00004.bin",
241
+ "gpt_neox.layers.9.attention.rotary_emb.inv_freq": "pytorch_model-00002-of-00004.bin",
242
+ "gpt_neox.layers.9.input_layernorm.bias": "pytorch_model-00002-of-00004.bin",
243
+ "gpt_neox.layers.9.input_layernorm.weight": "pytorch_model-00002-of-00004.bin",
244
+ "gpt_neox.layers.9.mlp.dense_4h_to_h.bias": "pytorch_model-00002-of-00004.bin",
245
+ "gpt_neox.layers.9.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00004.bin",
246
+ "gpt_neox.layers.9.mlp.dense_h_to_4h.bias": "pytorch_model-00002-of-00004.bin",
247
+ "gpt_neox.layers.9.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00004.bin",
248
+ "gpt_neox.layers.9.post_attention_layernorm.bias": "pytorch_model-00002-of-00004.bin",
249
+ "gpt_neox.layers.9.post_attention_layernorm.weight": "pytorch_model-00002-of-00004.bin"
250
+ }
251
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "unk_token": "<|endoftext|>"
5
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<|endoftext|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|endoftext|>",
6
+ "model_max_length": 1000000000000000019884624838656,
7
+ "tokenizer_class": "GPTNeoXTokenizer",
8
+ "unk_token": "<|endoftext|>"
9
+ }