kylesayrs commited on
Commit
2e41c07
·
verified ·
1 Parent(s): bdf6999

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - cerebras/SlimPajama-627B
5
+ - bigcode/starcoderdata
6
+ - HuggingFaceH4/ultrachat_200k
7
+ - HuggingFaceH4/ultrafeedback_binarized
8
+ language:
9
+ - en
10
+ widget:
11
+ - example_title: Fibonacci (Python)
12
+ messages:
13
+ - role: system
14
+ content: You are a chatbot who can help code!
15
+ - role: user
16
+ content: Write me a function to calculate the first 10 digits of the fibonacci sequence in Python and print it out to the CLI.
17
+ ---
18
+ <div align="center">
19
+
20
+ # TinyLlama-1.1B
21
+ </div>
22
+
23
+ https://github.com/jzhang38/TinyLlama
24
+
25
+ The TinyLlama project aims to **pretrain** a **1.1B Llama model on 3 trillion tokens**. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01.
26
+
27
+
28
+ We adopted exactly the same architecture and tokenizer as Llama 2. This means TinyLlama can be plugged and played in many open-source projects built upon Llama. Besides, TinyLlama is compact with only 1.1B parameters. This compactness allows it to cater to a multitude of applications demanding a restricted computation and memory footprint.
29
+
30
+ #### This Model
31
+ This is the chat model finetuned on top of [TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T). **We follow [HF's Zephyr](https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha)'s training recipe.** The model was " initially fine-tuned on a variant of the [`UltraChat`](https://huggingface.co/datasets/stingning/ultrachat) dataset, which contains a diverse range of synthetic dialogues generated by ChatGPT.
32
+ We then further aligned the model with [🤗 TRL's](https://github.com/huggingface/trl) `DPOTrainer` on the [openbmb/UltraFeedback](https://huggingface.co/datasets/openbmb/UltraFeedback) dataset, which contain 64k prompts and model completions that are ranked by GPT-4."
33
+
34
+
35
+ #### How to use
36
+ You will need the transformers>=4.34
37
+ Do check the [TinyLlama](https://github.com/jzhang38/TinyLlama) github page for more information.
38
+
39
+ ```python
40
+ # Install transformers from source - only needed for versions <= v4.34
41
+ # pip install git+https://github.com/huggingface/transformers.git
42
+ # pip install accelerate
43
+
44
+ import torch
45
+ from transformers import pipeline
46
+
47
+ pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype=torch.bfloat16, device_map="auto")
48
+
49
+ # We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
50
+ messages = [
51
+ {
52
+ "role": "system",
53
+ "content": "You are a friendly chatbot who always responds in the style of a pirate",
54
+ },
55
+ {"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
56
+ ]
57
+ prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
58
+ outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
59
+ print(outputs[0]["generated_text"])
60
+ # <|system|>
61
+ # You are a friendly chatbot who always responds in the style of a pirate.</s>
62
+ # <|user|>
63
+ # How many helicopters can a human eat in one sitting?</s>
64
+ # <|assistant|>
65
+ # ...
66
+ ```
chat_template.jinja ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% for message in messages %}
2
+ {% if message['role'] == 'user' %}
3
+ {{ '<|user|>
4
+ ' + message['content'] + eos_token }}
5
+ {% elif message['role'] == 'system' %}
6
+ {{ '<|system|>
7
+ ' + message['content'] + eos_token }}
8
+ {% elif message['role'] == 'assistant' %}
9
+ {{ '<|assistant|>
10
+ ' + message['content'] + eos_token }}
11
+ {% endif %}
12
+ {% if loop.last and add_generation_prompt %}
13
+ {{ '<|assistant|>' }}
14
+ {% endif %}
15
+ {% endfor %}
config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 2048,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 5632,
12
+ "max_position_embeddings": 2048,
13
+ "model_type": "llama",
14
+ "num_attention_heads": 32,
15
+ "num_hidden_layers": 22,
16
+ "num_key_value_heads": 4,
17
+ "pretraining_tp": 1,
18
+ "quantization_config": {
19
+ "config_groups": {
20
+ "config_group_0": {
21
+ "format": "float-quantized",
22
+ "input_activations": {
23
+ "actorder": null,
24
+ "block_structure": null,
25
+ "dynamic": true,
26
+ "group_size": null,
27
+ "num_bits": 8,
28
+ "observer": null,
29
+ "observer_kwargs": {},
30
+ "scale_dtype": null,
31
+ "strategy": "token",
32
+ "symmetric": true,
33
+ "type": "float",
34
+ "zp_dtype": null
35
+ },
36
+ "output_activations": null,
37
+ "targets": [
38
+ "Linear"
39
+ ],
40
+ "weights": {
41
+ "actorder": null,
42
+ "block_structure": null,
43
+ "dynamic": false,
44
+ "group_size": null,
45
+ "num_bits": 8,
46
+ "observer": "memoryless_minmax",
47
+ "observer_kwargs": {},
48
+ "scale_dtype": null,
49
+ "strategy": "channel",
50
+ "symmetric": true,
51
+ "type": "float",
52
+ "zp_dtype": null
53
+ }
54
+ }
55
+ },
56
+ "format": "float-quantized",
57
+ "global_compression_ratio": null,
58
+ "ignore": [
59
+ "lm_head",
60
+ "re:.*visual.*",
61
+ "re:.*embed_tokens.*"
62
+ ],
63
+ "kv_cache_scheme": null,
64
+ "quant_method": "compressed-tensors",
65
+ "quantization_status": "compressed",
66
+ "transform_config": {},
67
+ "version": "0.15.1.dev26+g9c3dd05"
68
+ },
69
+ "rms_norm_eps": 1e-05,
70
+ "rope_scaling": null,
71
+ "rope_theta": 10000.0,
72
+ "tie_word_embeddings": false,
73
+ "torch_dtype": "bfloat16",
74
+ "transformers_version": "4.35.0",
75
+ "use_cache": true,
76
+ "vocab_size": 32000
77
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -2.707406759262085,
4
+ "eval_logits/rejected": -2.656524419784546,
5
+ "eval_logps/chosen": -370.1297607421875,
6
+ "eval_logps/rejected": -296.0738525390625,
7
+ "eval_loss": 0.513750433921814,
8
+ "eval_rewards/accuracies": 0.738095223903656,
9
+ "eval_rewards/chosen": -0.02744222804903984,
10
+ "eval_rewards/margins": 1.0087225437164307,
11
+ "eval_rewards/rejected": -1.03616464138031,
12
+ "eval_runtime": 93.5908,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 21.37,
15
+ "eval_steps_per_second": 0.673
16
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "eos_token_id": 2,
4
+ "max_length": 2048,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.35.0"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c43c46717ea3f81d8bde7622d04e0efd691ed4c478ccb66ddbf230042b73b17
3
+ size 1232042352
model.safetensors.index.json ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 1232001024
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model.safetensors",
7
+ "model.embed_tokens.weight": "model.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model.safetensors",
10
+ "model.layers.0.mlp.down_proj.weight_scale": "model.safetensors",
11
+ "model.layers.0.mlp.gate_proj.weight": "model.safetensors",
12
+ "model.layers.0.mlp.gate_proj.weight_scale": "model.safetensors",
13
+ "model.layers.0.mlp.up_proj.weight": "model.safetensors",
14
+ "model.layers.0.mlp.up_proj.weight_scale": "model.safetensors",
15
+ "model.layers.0.post_attention_layernorm.weight": "model.safetensors",
16
+ "model.layers.0.self_attn.k_proj.weight": "model.safetensors",
17
+ "model.layers.0.self_attn.k_proj.weight_scale": "model.safetensors",
18
+ "model.layers.0.self_attn.o_proj.weight": "model.safetensors",
19
+ "model.layers.0.self_attn.o_proj.weight_scale": "model.safetensors",
20
+ "model.layers.0.self_attn.q_proj.weight": "model.safetensors",
21
+ "model.layers.0.self_attn.q_proj.weight_scale": "model.safetensors",
22
+ "model.layers.0.self_attn.v_proj.weight": "model.safetensors",
23
+ "model.layers.0.self_attn.v_proj.weight_scale": "model.safetensors",
24
+ "model.layers.1.input_layernorm.weight": "model.safetensors",
25
+ "model.layers.1.mlp.down_proj.weight": "model.safetensors",
26
+ "model.layers.1.mlp.down_proj.weight_scale": "model.safetensors",
27
+ "model.layers.1.mlp.gate_proj.weight": "model.safetensors",
28
+ "model.layers.1.mlp.gate_proj.weight_scale": "model.safetensors",
29
+ "model.layers.1.mlp.up_proj.weight": "model.safetensors",
30
+ "model.layers.1.mlp.up_proj.weight_scale": "model.safetensors",
31
+ "model.layers.1.post_attention_layernorm.weight": "model.safetensors",
32
+ "model.layers.1.self_attn.k_proj.weight": "model.safetensors",
33
+ "model.layers.1.self_attn.k_proj.weight_scale": "model.safetensors",
34
+ "model.layers.1.self_attn.o_proj.weight": "model.safetensors",
35
+ "model.layers.1.self_attn.o_proj.weight_scale": "model.safetensors",
36
+ "model.layers.1.self_attn.q_proj.weight": "model.safetensors",
37
+ "model.layers.1.self_attn.q_proj.weight_scale": "model.safetensors",
38
+ "model.layers.1.self_attn.v_proj.weight": "model.safetensors",
39
+ "model.layers.1.self_attn.v_proj.weight_scale": "model.safetensors",
40
+ "model.layers.10.input_layernorm.weight": "model.safetensors",
41
+ "model.layers.10.mlp.down_proj.weight": "model.safetensors",
42
+ "model.layers.10.mlp.down_proj.weight_scale": "model.safetensors",
43
+ "model.layers.10.mlp.gate_proj.weight": "model.safetensors",
44
+ "model.layers.10.mlp.gate_proj.weight_scale": "model.safetensors",
45
+ "model.layers.10.mlp.up_proj.weight": "model.safetensors",
46
+ "model.layers.10.mlp.up_proj.weight_scale": "model.safetensors",
47
+ "model.layers.10.post_attention_layernorm.weight": "model.safetensors",
48
+ "model.layers.10.self_attn.k_proj.weight": "model.safetensors",
49
+ "model.layers.10.self_attn.k_proj.weight_scale": "model.safetensors",
50
+ "model.layers.10.self_attn.o_proj.weight": "model.safetensors",
51
+ "model.layers.10.self_attn.o_proj.weight_scale": "model.safetensors",
52
+ "model.layers.10.self_attn.q_proj.weight": "model.safetensors",
53
+ "model.layers.10.self_attn.q_proj.weight_scale": "model.safetensors",
54
+ "model.layers.10.self_attn.v_proj.weight": "model.safetensors",
55
+ "model.layers.10.self_attn.v_proj.weight_scale": "model.safetensors",
56
+ "model.layers.11.input_layernorm.weight": "model.safetensors",
57
+ "model.layers.11.mlp.down_proj.weight": "model.safetensors",
58
+ "model.layers.11.mlp.down_proj.weight_scale": "model.safetensors",
59
+ "model.layers.11.mlp.gate_proj.weight": "model.safetensors",
60
+ "model.layers.11.mlp.gate_proj.weight_scale": "model.safetensors",
61
+ "model.layers.11.mlp.up_proj.weight": "model.safetensors",
62
+ "model.layers.11.mlp.up_proj.weight_scale": "model.safetensors",
63
+ "model.layers.11.post_attention_layernorm.weight": "model.safetensors",
64
+ "model.layers.11.self_attn.k_proj.weight": "model.safetensors",
65
+ "model.layers.11.self_attn.k_proj.weight_scale": "model.safetensors",
66
+ "model.layers.11.self_attn.o_proj.weight": "model.safetensors",
67
+ "model.layers.11.self_attn.o_proj.weight_scale": "model.safetensors",
68
+ "model.layers.11.self_attn.q_proj.weight": "model.safetensors",
69
+ "model.layers.11.self_attn.q_proj.weight_scale": "model.safetensors",
70
+ "model.layers.11.self_attn.v_proj.weight": "model.safetensors",
71
+ "model.layers.11.self_attn.v_proj.weight_scale": "model.safetensors",
72
+ "model.layers.12.input_layernorm.weight": "model.safetensors",
73
+ "model.layers.12.mlp.down_proj.weight": "model.safetensors",
74
+ "model.layers.12.mlp.down_proj.weight_scale": "model.safetensors",
75
+ "model.layers.12.mlp.gate_proj.weight": "model.safetensors",
76
+ "model.layers.12.mlp.gate_proj.weight_scale": "model.safetensors",
77
+ "model.layers.12.mlp.up_proj.weight": "model.safetensors",
78
+ "model.layers.12.mlp.up_proj.weight_scale": "model.safetensors",
79
+ "model.layers.12.post_attention_layernorm.weight": "model.safetensors",
80
+ "model.layers.12.self_attn.k_proj.weight": "model.safetensors",
81
+ "model.layers.12.self_attn.k_proj.weight_scale": "model.safetensors",
82
+ "model.layers.12.self_attn.o_proj.weight": "model.safetensors",
83
+ "model.layers.12.self_attn.o_proj.weight_scale": "model.safetensors",
84
+ "model.layers.12.self_attn.q_proj.weight": "model.safetensors",
85
+ "model.layers.12.self_attn.q_proj.weight_scale": "model.safetensors",
86
+ "model.layers.12.self_attn.v_proj.weight": "model.safetensors",
87
+ "model.layers.12.self_attn.v_proj.weight_scale": "model.safetensors",
88
+ "model.layers.13.input_layernorm.weight": "model.safetensors",
89
+ "model.layers.13.mlp.down_proj.weight": "model.safetensors",
90
+ "model.layers.13.mlp.down_proj.weight_scale": "model.safetensors",
91
+ "model.layers.13.mlp.gate_proj.weight": "model.safetensors",
92
+ "model.layers.13.mlp.gate_proj.weight_scale": "model.safetensors",
93
+ "model.layers.13.mlp.up_proj.weight": "model.safetensors",
94
+ "model.layers.13.mlp.up_proj.weight_scale": "model.safetensors",
95
+ "model.layers.13.post_attention_layernorm.weight": "model.safetensors",
96
+ "model.layers.13.self_attn.k_proj.weight": "model.safetensors",
97
+ "model.layers.13.self_attn.k_proj.weight_scale": "model.safetensors",
98
+ "model.layers.13.self_attn.o_proj.weight": "model.safetensors",
99
+ "model.layers.13.self_attn.o_proj.weight_scale": "model.safetensors",
100
+ "model.layers.13.self_attn.q_proj.weight": "model.safetensors",
101
+ "model.layers.13.self_attn.q_proj.weight_scale": "model.safetensors",
102
+ "model.layers.13.self_attn.v_proj.weight": "model.safetensors",
103
+ "model.layers.13.self_attn.v_proj.weight_scale": "model.safetensors",
104
+ "model.layers.14.input_layernorm.weight": "model.safetensors",
105
+ "model.layers.14.mlp.down_proj.weight": "model.safetensors",
106
+ "model.layers.14.mlp.down_proj.weight_scale": "model.safetensors",
107
+ "model.layers.14.mlp.gate_proj.weight": "model.safetensors",
108
+ "model.layers.14.mlp.gate_proj.weight_scale": "model.safetensors",
109
+ "model.layers.14.mlp.up_proj.weight": "model.safetensors",
110
+ "model.layers.14.mlp.up_proj.weight_scale": "model.safetensors",
111
+ "model.layers.14.post_attention_layernorm.weight": "model.safetensors",
112
+ "model.layers.14.self_attn.k_proj.weight": "model.safetensors",
113
+ "model.layers.14.self_attn.k_proj.weight_scale": "model.safetensors",
114
+ "model.layers.14.self_attn.o_proj.weight": "model.safetensors",
115
+ "model.layers.14.self_attn.o_proj.weight_scale": "model.safetensors",
116
+ "model.layers.14.self_attn.q_proj.weight": "model.safetensors",
117
+ "model.layers.14.self_attn.q_proj.weight_scale": "model.safetensors",
118
+ "model.layers.14.self_attn.v_proj.weight": "model.safetensors",
119
+ "model.layers.14.self_attn.v_proj.weight_scale": "model.safetensors",
120
+ "model.layers.15.input_layernorm.weight": "model.safetensors",
121
+ "model.layers.15.mlp.down_proj.weight": "model.safetensors",
122
+ "model.layers.15.mlp.down_proj.weight_scale": "model.safetensors",
123
+ "model.layers.15.mlp.gate_proj.weight": "model.safetensors",
124
+ "model.layers.15.mlp.gate_proj.weight_scale": "model.safetensors",
125
+ "model.layers.15.mlp.up_proj.weight": "model.safetensors",
126
+ "model.layers.15.mlp.up_proj.weight_scale": "model.safetensors",
127
+ "model.layers.15.post_attention_layernorm.weight": "model.safetensors",
128
+ "model.layers.15.self_attn.k_proj.weight": "model.safetensors",
129
+ "model.layers.15.self_attn.k_proj.weight_scale": "model.safetensors",
130
+ "model.layers.15.self_attn.o_proj.weight": "model.safetensors",
131
+ "model.layers.15.self_attn.o_proj.weight_scale": "model.safetensors",
132
+ "model.layers.15.self_attn.q_proj.weight": "model.safetensors",
133
+ "model.layers.15.self_attn.q_proj.weight_scale": "model.safetensors",
134
+ "model.layers.15.self_attn.v_proj.weight": "model.safetensors",
135
+ "model.layers.15.self_attn.v_proj.weight_scale": "model.safetensors",
136
+ "model.layers.16.input_layernorm.weight": "model.safetensors",
137
+ "model.layers.16.mlp.down_proj.weight": "model.safetensors",
138
+ "model.layers.16.mlp.down_proj.weight_scale": "model.safetensors",
139
+ "model.layers.16.mlp.gate_proj.weight": "model.safetensors",
140
+ "model.layers.16.mlp.gate_proj.weight_scale": "model.safetensors",
141
+ "model.layers.16.mlp.up_proj.weight": "model.safetensors",
142
+ "model.layers.16.mlp.up_proj.weight_scale": "model.safetensors",
143
+ "model.layers.16.post_attention_layernorm.weight": "model.safetensors",
144
+ "model.layers.16.self_attn.k_proj.weight": "model.safetensors",
145
+ "model.layers.16.self_attn.k_proj.weight_scale": "model.safetensors",
146
+ "model.layers.16.self_attn.o_proj.weight": "model.safetensors",
147
+ "model.layers.16.self_attn.o_proj.weight_scale": "model.safetensors",
148
+ "model.layers.16.self_attn.q_proj.weight": "model.safetensors",
149
+ "model.layers.16.self_attn.q_proj.weight_scale": "model.safetensors",
150
+ "model.layers.16.self_attn.v_proj.weight": "model.safetensors",
151
+ "model.layers.16.self_attn.v_proj.weight_scale": "model.safetensors",
152
+ "model.layers.17.input_layernorm.weight": "model.safetensors",
153
+ "model.layers.17.mlp.down_proj.weight": "model.safetensors",
154
+ "model.layers.17.mlp.down_proj.weight_scale": "model.safetensors",
155
+ "model.layers.17.mlp.gate_proj.weight": "model.safetensors",
156
+ "model.layers.17.mlp.gate_proj.weight_scale": "model.safetensors",
157
+ "model.layers.17.mlp.up_proj.weight": "model.safetensors",
158
+ "model.layers.17.mlp.up_proj.weight_scale": "model.safetensors",
159
+ "model.layers.17.post_attention_layernorm.weight": "model.safetensors",
160
+ "model.layers.17.self_attn.k_proj.weight": "model.safetensors",
161
+ "model.layers.17.self_attn.k_proj.weight_scale": "model.safetensors",
162
+ "model.layers.17.self_attn.o_proj.weight": "model.safetensors",
163
+ "model.layers.17.self_attn.o_proj.weight_scale": "model.safetensors",
164
+ "model.layers.17.self_attn.q_proj.weight": "model.safetensors",
165
+ "model.layers.17.self_attn.q_proj.weight_scale": "model.safetensors",
166
+ "model.layers.17.self_attn.v_proj.weight": "model.safetensors",
167
+ "model.layers.17.self_attn.v_proj.weight_scale": "model.safetensors",
168
+ "model.layers.18.input_layernorm.weight": "model.safetensors",
169
+ "model.layers.18.mlp.down_proj.weight": "model.safetensors",
170
+ "model.layers.18.mlp.down_proj.weight_scale": "model.safetensors",
171
+ "model.layers.18.mlp.gate_proj.weight": "model.safetensors",
172
+ "model.layers.18.mlp.gate_proj.weight_scale": "model.safetensors",
173
+ "model.layers.18.mlp.up_proj.weight": "model.safetensors",
174
+ "model.layers.18.mlp.up_proj.weight_scale": "model.safetensors",
175
+ "model.layers.18.post_attention_layernorm.weight": "model.safetensors",
176
+ "model.layers.18.self_attn.k_proj.weight": "model.safetensors",
177
+ "model.layers.18.self_attn.k_proj.weight_scale": "model.safetensors",
178
+ "model.layers.18.self_attn.o_proj.weight": "model.safetensors",
179
+ "model.layers.18.self_attn.o_proj.weight_scale": "model.safetensors",
180
+ "model.layers.18.self_attn.q_proj.weight": "model.safetensors",
181
+ "model.layers.18.self_attn.q_proj.weight_scale": "model.safetensors",
182
+ "model.layers.18.self_attn.v_proj.weight": "model.safetensors",
183
+ "model.layers.18.self_attn.v_proj.weight_scale": "model.safetensors",
184
+ "model.layers.19.input_layernorm.weight": "model.safetensors",
185
+ "model.layers.19.mlp.down_proj.weight": "model.safetensors",
186
+ "model.layers.19.mlp.down_proj.weight_scale": "model.safetensors",
187
+ "model.layers.19.mlp.gate_proj.weight": "model.safetensors",
188
+ "model.layers.19.mlp.gate_proj.weight_scale": "model.safetensors",
189
+ "model.layers.19.mlp.up_proj.weight": "model.safetensors",
190
+ "model.layers.19.mlp.up_proj.weight_scale": "model.safetensors",
191
+ "model.layers.19.post_attention_layernorm.weight": "model.safetensors",
192
+ "model.layers.19.self_attn.k_proj.weight": "model.safetensors",
193
+ "model.layers.19.self_attn.k_proj.weight_scale": "model.safetensors",
194
+ "model.layers.19.self_attn.o_proj.weight": "model.safetensors",
195
+ "model.layers.19.self_attn.o_proj.weight_scale": "model.safetensors",
196
+ "model.layers.19.self_attn.q_proj.weight": "model.safetensors",
197
+ "model.layers.19.self_attn.q_proj.weight_scale": "model.safetensors",
198
+ "model.layers.19.self_attn.v_proj.weight": "model.safetensors",
199
+ "model.layers.19.self_attn.v_proj.weight_scale": "model.safetensors",
200
+ "model.layers.2.input_layernorm.weight": "model.safetensors",
201
+ "model.layers.2.mlp.down_proj.weight": "model.safetensors",
202
+ "model.layers.2.mlp.down_proj.weight_scale": "model.safetensors",
203
+ "model.layers.2.mlp.gate_proj.weight": "model.safetensors",
204
+ "model.layers.2.mlp.gate_proj.weight_scale": "model.safetensors",
205
+ "model.layers.2.mlp.up_proj.weight": "model.safetensors",
206
+ "model.layers.2.mlp.up_proj.weight_scale": "model.safetensors",
207
+ "model.layers.2.post_attention_layernorm.weight": "model.safetensors",
208
+ "model.layers.2.self_attn.k_proj.weight": "model.safetensors",
209
+ "model.layers.2.self_attn.k_proj.weight_scale": "model.safetensors",
210
+ "model.layers.2.self_attn.o_proj.weight": "model.safetensors",
211
+ "model.layers.2.self_attn.o_proj.weight_scale": "model.safetensors",
212
+ "model.layers.2.self_attn.q_proj.weight": "model.safetensors",
213
+ "model.layers.2.self_attn.q_proj.weight_scale": "model.safetensors",
214
+ "model.layers.2.self_attn.v_proj.weight": "model.safetensors",
215
+ "model.layers.2.self_attn.v_proj.weight_scale": "model.safetensors",
216
+ "model.layers.20.input_layernorm.weight": "model.safetensors",
217
+ "model.layers.20.mlp.down_proj.weight": "model.safetensors",
218
+ "model.layers.20.mlp.down_proj.weight_scale": "model.safetensors",
219
+ "model.layers.20.mlp.gate_proj.weight": "model.safetensors",
220
+ "model.layers.20.mlp.gate_proj.weight_scale": "model.safetensors",
221
+ "model.layers.20.mlp.up_proj.weight": "model.safetensors",
222
+ "model.layers.20.mlp.up_proj.weight_scale": "model.safetensors",
223
+ "model.layers.20.post_attention_layernorm.weight": "model.safetensors",
224
+ "model.layers.20.self_attn.k_proj.weight": "model.safetensors",
225
+ "model.layers.20.self_attn.k_proj.weight_scale": "model.safetensors",
226
+ "model.layers.20.self_attn.o_proj.weight": "model.safetensors",
227
+ "model.layers.20.self_attn.o_proj.weight_scale": "model.safetensors",
228
+ "model.layers.20.self_attn.q_proj.weight": "model.safetensors",
229
+ "model.layers.20.self_attn.q_proj.weight_scale": "model.safetensors",
230
+ "model.layers.20.self_attn.v_proj.weight": "model.safetensors",
231
+ "model.layers.20.self_attn.v_proj.weight_scale": "model.safetensors",
232
+ "model.layers.21.input_layernorm.weight": "model.safetensors",
233
+ "model.layers.21.mlp.down_proj.weight": "model.safetensors",
234
+ "model.layers.21.mlp.down_proj.weight_scale": "model.safetensors",
235
+ "model.layers.21.mlp.gate_proj.weight": "model.safetensors",
236
+ "model.layers.21.mlp.gate_proj.weight_scale": "model.safetensors",
237
+ "model.layers.21.mlp.up_proj.weight": "model.safetensors",
238
+ "model.layers.21.mlp.up_proj.weight_scale": "model.safetensors",
239
+ "model.layers.21.post_attention_layernorm.weight": "model.safetensors",
240
+ "model.layers.21.self_attn.k_proj.weight": "model.safetensors",
241
+ "model.layers.21.self_attn.k_proj.weight_scale": "model.safetensors",
242
+ "model.layers.21.self_attn.o_proj.weight": "model.safetensors",
243
+ "model.layers.21.self_attn.o_proj.weight_scale": "model.safetensors",
244
+ "model.layers.21.self_attn.q_proj.weight": "model.safetensors",
245
+ "model.layers.21.self_attn.q_proj.weight_scale": "model.safetensors",
246
+ "model.layers.21.self_attn.v_proj.weight": "model.safetensors",
247
+ "model.layers.21.self_attn.v_proj.weight_scale": "model.safetensors",
248
+ "model.layers.3.input_layernorm.weight": "model.safetensors",
249
+ "model.layers.3.mlp.down_proj.weight": "model.safetensors",
250
+ "model.layers.3.mlp.down_proj.weight_scale": "model.safetensors",
251
+ "model.layers.3.mlp.gate_proj.weight": "model.safetensors",
252
+ "model.layers.3.mlp.gate_proj.weight_scale": "model.safetensors",
253
+ "model.layers.3.mlp.up_proj.weight": "model.safetensors",
254
+ "model.layers.3.mlp.up_proj.weight_scale": "model.safetensors",
255
+ "model.layers.3.post_attention_layernorm.weight": "model.safetensors",
256
+ "model.layers.3.self_attn.k_proj.weight": "model.safetensors",
257
+ "model.layers.3.self_attn.k_proj.weight_scale": "model.safetensors",
258
+ "model.layers.3.self_attn.o_proj.weight": "model.safetensors",
259
+ "model.layers.3.self_attn.o_proj.weight_scale": "model.safetensors",
260
+ "model.layers.3.self_attn.q_proj.weight": "model.safetensors",
261
+ "model.layers.3.self_attn.q_proj.weight_scale": "model.safetensors",
262
+ "model.layers.3.self_attn.v_proj.weight": "model.safetensors",
263
+ "model.layers.3.self_attn.v_proj.weight_scale": "model.safetensors",
264
+ "model.layers.4.input_layernorm.weight": "model.safetensors",
265
+ "model.layers.4.mlp.down_proj.weight": "model.safetensors",
266
+ "model.layers.4.mlp.down_proj.weight_scale": "model.safetensors",
267
+ "model.layers.4.mlp.gate_proj.weight": "model.safetensors",
268
+ "model.layers.4.mlp.gate_proj.weight_scale": "model.safetensors",
269
+ "model.layers.4.mlp.up_proj.weight": "model.safetensors",
270
+ "model.layers.4.mlp.up_proj.weight_scale": "model.safetensors",
271
+ "model.layers.4.post_attention_layernorm.weight": "model.safetensors",
272
+ "model.layers.4.self_attn.k_proj.weight": "model.safetensors",
273
+ "model.layers.4.self_attn.k_proj.weight_scale": "model.safetensors",
274
+ "model.layers.4.self_attn.o_proj.weight": "model.safetensors",
275
+ "model.layers.4.self_attn.o_proj.weight_scale": "model.safetensors",
276
+ "model.layers.4.self_attn.q_proj.weight": "model.safetensors",
277
+ "model.layers.4.self_attn.q_proj.weight_scale": "model.safetensors",
278
+ "model.layers.4.self_attn.v_proj.weight": "model.safetensors",
279
+ "model.layers.4.self_attn.v_proj.weight_scale": "model.safetensors",
280
+ "model.layers.5.input_layernorm.weight": "model.safetensors",
281
+ "model.layers.5.mlp.down_proj.weight": "model.safetensors",
282
+ "model.layers.5.mlp.down_proj.weight_scale": "model.safetensors",
283
+ "model.layers.5.mlp.gate_proj.weight": "model.safetensors",
284
+ "model.layers.5.mlp.gate_proj.weight_scale": "model.safetensors",
285
+ "model.layers.5.mlp.up_proj.weight": "model.safetensors",
286
+ "model.layers.5.mlp.up_proj.weight_scale": "model.safetensors",
287
+ "model.layers.5.post_attention_layernorm.weight": "model.safetensors",
288
+ "model.layers.5.self_attn.k_proj.weight": "model.safetensors",
289
+ "model.layers.5.self_attn.k_proj.weight_scale": "model.safetensors",
290
+ "model.layers.5.self_attn.o_proj.weight": "model.safetensors",
291
+ "model.layers.5.self_attn.o_proj.weight_scale": "model.safetensors",
292
+ "model.layers.5.self_attn.q_proj.weight": "model.safetensors",
293
+ "model.layers.5.self_attn.q_proj.weight_scale": "model.safetensors",
294
+ "model.layers.5.self_attn.v_proj.weight": "model.safetensors",
295
+ "model.layers.5.self_attn.v_proj.weight_scale": "model.safetensors",
296
+ "model.layers.6.input_layernorm.weight": "model.safetensors",
297
+ "model.layers.6.mlp.down_proj.weight": "model.safetensors",
298
+ "model.layers.6.mlp.down_proj.weight_scale": "model.safetensors",
299
+ "model.layers.6.mlp.gate_proj.weight": "model.safetensors",
300
+ "model.layers.6.mlp.gate_proj.weight_scale": "model.safetensors",
301
+ "model.layers.6.mlp.up_proj.weight": "model.safetensors",
302
+ "model.layers.6.mlp.up_proj.weight_scale": "model.safetensors",
303
+ "model.layers.6.post_attention_layernorm.weight": "model.safetensors",
304
+ "model.layers.6.self_attn.k_proj.weight": "model.safetensors",
305
+ "model.layers.6.self_attn.k_proj.weight_scale": "model.safetensors",
306
+ "model.layers.6.self_attn.o_proj.weight": "model.safetensors",
307
+ "model.layers.6.self_attn.o_proj.weight_scale": "model.safetensors",
308
+ "model.layers.6.self_attn.q_proj.weight": "model.safetensors",
309
+ "model.layers.6.self_attn.q_proj.weight_scale": "model.safetensors",
310
+ "model.layers.6.self_attn.v_proj.weight": "model.safetensors",
311
+ "model.layers.6.self_attn.v_proj.weight_scale": "model.safetensors",
312
+ "model.layers.7.input_layernorm.weight": "model.safetensors",
313
+ "model.layers.7.mlp.down_proj.weight": "model.safetensors",
314
+ "model.layers.7.mlp.down_proj.weight_scale": "model.safetensors",
315
+ "model.layers.7.mlp.gate_proj.weight": "model.safetensors",
316
+ "model.layers.7.mlp.gate_proj.weight_scale": "model.safetensors",
317
+ "model.layers.7.mlp.up_proj.weight": "model.safetensors",
318
+ "model.layers.7.mlp.up_proj.weight_scale": "model.safetensors",
319
+ "model.layers.7.post_attention_layernorm.weight": "model.safetensors",
320
+ "model.layers.7.self_attn.k_proj.weight": "model.safetensors",
321
+ "model.layers.7.self_attn.k_proj.weight_scale": "model.safetensors",
322
+ "model.layers.7.self_attn.o_proj.weight": "model.safetensors",
323
+ "model.layers.7.self_attn.o_proj.weight_scale": "model.safetensors",
324
+ "model.layers.7.self_attn.q_proj.weight": "model.safetensors",
325
+ "model.layers.7.self_attn.q_proj.weight_scale": "model.safetensors",
326
+ "model.layers.7.self_attn.v_proj.weight": "model.safetensors",
327
+ "model.layers.7.self_attn.v_proj.weight_scale": "model.safetensors",
328
+ "model.layers.8.input_layernorm.weight": "model.safetensors",
329
+ "model.layers.8.mlp.down_proj.weight": "model.safetensors",
330
+ "model.layers.8.mlp.down_proj.weight_scale": "model.safetensors",
331
+ "model.layers.8.mlp.gate_proj.weight": "model.safetensors",
332
+ "model.layers.8.mlp.gate_proj.weight_scale": "model.safetensors",
333
+ "model.layers.8.mlp.up_proj.weight": "model.safetensors",
334
+ "model.layers.8.mlp.up_proj.weight_scale": "model.safetensors",
335
+ "model.layers.8.post_attention_layernorm.weight": "model.safetensors",
336
+ "model.layers.8.self_attn.k_proj.weight": "model.safetensors",
337
+ "model.layers.8.self_attn.k_proj.weight_scale": "model.safetensors",
338
+ "model.layers.8.self_attn.o_proj.weight": "model.safetensors",
339
+ "model.layers.8.self_attn.o_proj.weight_scale": "model.safetensors",
340
+ "model.layers.8.self_attn.q_proj.weight": "model.safetensors",
341
+ "model.layers.8.self_attn.q_proj.weight_scale": "model.safetensors",
342
+ "model.layers.8.self_attn.v_proj.weight": "model.safetensors",
343
+ "model.layers.8.self_attn.v_proj.weight_scale": "model.safetensors",
344
+ "model.layers.9.input_layernorm.weight": "model.safetensors",
345
+ "model.layers.9.mlp.down_proj.weight": "model.safetensors",
346
+ "model.layers.9.mlp.down_proj.weight_scale": "model.safetensors",
347
+ "model.layers.9.mlp.gate_proj.weight": "model.safetensors",
348
+ "model.layers.9.mlp.gate_proj.weight_scale": "model.safetensors",
349
+ "model.layers.9.mlp.up_proj.weight": "model.safetensors",
350
+ "model.layers.9.mlp.up_proj.weight_scale": "model.safetensors",
351
+ "model.layers.9.post_attention_layernorm.weight": "model.safetensors",
352
+ "model.layers.9.self_attn.k_proj.weight": "model.safetensors",
353
+ "model.layers.9.self_attn.k_proj.weight_scale": "model.safetensors",
354
+ "model.layers.9.self_attn.o_proj.weight": "model.safetensors",
355
+ "model.layers.9.self_attn.o_proj.weight_scale": "model.safetensors",
356
+ "model.layers.9.self_attn.q_proj.weight": "model.safetensors",
357
+ "model.layers.9.self_attn.q_proj.weight_scale": "model.safetensors",
358
+ "model.layers.9.self_attn.v_proj.weight": "model.safetensors",
359
+ "model.layers.9.self_attn.v_proj.weight_scale": "model.safetensors",
360
+ "model.norm.weight": "model.safetensors"
361
+ }
362
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "extra_special_tokens": {},
35
+ "legacy": false,
36
+ "model_max_length": 2048,
37
+ "pad_token": "</s>",
38
+ "padding_side": "right",
39
+ "sp_model_kwargs": {},
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }