andrijdavid commited on
Commit
ce65d5a
·
1 Parent(s): 2e6ddf7

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,21 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ TinyLlama-1.1B-32k-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ TinyLlama-1.1B-32k-Q3_K.gguf filter=lfs diff=lfs merge=lfs -text
38
+ TinyLlama-1.1B-32k-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
39
+ TinyLlama-1.1B-32k-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ TinyLlama-1.1B-32k-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
41
+ TinyLlama-1.1B-32k-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
42
+ TinyLlama-1.1B-32k-Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
43
+ TinyLlama-1.1B-32k-Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ TinyLlama-1.1B-32k-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
45
+ TinyLlama-1.1B-32k-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
46
+ TinyLlama-1.1B-32k-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
47
+ TinyLlama-1.1B-32k-Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
48
+ TinyLlama-1.1B-32k-Q5_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ TinyLlama-1.1B-32k-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
50
+ TinyLlama-1.1B-32k-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
51
+ TinyLlama-1.1B-32k-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
52
+ TinyLlama-1.1B-32k-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
53
+ TinyLlama-1.1B-32k-f16.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - llama
7
+ - llama 2
8
+ - GGUF
9
+ datasets:
10
+ - togethercomputer/RedPajama-Data-1T-Sample
11
+ quantized_by: andrijdavid
12
+ ---
13
+ # TinyLlama-1.1B-32k-GGUF
14
+ - Original model: [TinyLlama-1.1B-32k](https://huggingface.co/Doctor-Shotgun/TinyLlama-1.1B-32k)
15
+
16
+ <!-- description start -->
17
+ ## Description
18
+
19
+ This repo contains GGUF format model files for [TinyLlama-1.1B-32k](https://huggingface.co/Doctor-Shotgun/TinyLlama-1.1B-32k).
20
+
21
+ <!-- description end -->
22
+ <!-- README_GGUF.md-about-gguf start -->
23
+ ### About GGUF
24
+ GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
25
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
26
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). This is the source project for GGUF, providing both a Command Line Interface (CLI) and a server option.
27
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), Known as the most widely used web UI, this project boasts numerous features and powerful extensions, and supports GPU acceleration.
28
+ * [Ollama](https://github.com/jmorganca/ollama) Ollama is a lightweight and extensible framework designed for building and running language models locally. It features a simple API for creating, managing, and executing models, along with a library of pre-built models for use in various applications​
29
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), A comprehensive web UI offering GPU acceleration across all platforms and architectures, particularly renowned for storytelling.
30
+ * [GPT4All](https://gpt4all.io), This is a free and open source GUI that runs locally, supporting Windows, Linux, and macOS with full GPU acceleration.
31
+ * [LM Studio](https://lmstudio.ai/) An intuitive and powerful local GUI for Windows and macOS (Silicon), featuring GPU acceleration.
32
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui). A notable web UI with a variety of unique features, including a comprehensive model library for easy model selection.
33
+ * [Faraday.dev](https://faraday.dev/), An attractive, user-friendly character-based chat GUI for Windows and macOS (both Silicon and Intel), also offering GPU acceleration.
34
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), A Python library equipped with GPU acceleration, LangChain support, and an OpenAI-compatible API server.
35
+ * [candle](https://github.com/huggingface/candle), A Rust-based ML framework focusing on performance, including GPU support, and designed for ease of use.
36
+ * [ctransformers](https://github.com/marella/ctransformers), A Python library featuring GPU acceleration, LangChain support, and an OpenAI-compatible AI server.
37
+ * [localGPT](https://github.com/PromtEngineer/localGPT) An open-source initiative enabling private conversations with documents.
38
+ <!-- README_GGUF.md-about-gguf end -->
39
+
40
+ <!-- compatibility_gguf start -->
41
+ ## Explanation of quantisation methods
42
+ <details>
43
+ <summary>Click to see details</summary>
44
+ The new methods available are:
45
+
46
+ * GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
47
+ * GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
48
+ * GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
49
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
50
+ * GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw.
51
+ </details>
52
+ <!-- compatibility_gguf end -->
53
+
54
+ <!-- README_GGUF.md-how-to-download start -->
55
+ ## How to download GGUF files
56
+
57
+ **Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
58
+
59
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
60
+
61
+ * LM Studio
62
+ * LoLLMS Web UI
63
+ * Faraday.dev
64
+
65
+ ### In `text-generation-webui`
66
+
67
+ Under Download Model, you can enter the model repo: andrijdavid/TinyLlama-1.1B-32k-GGUF and below it, a specific filename to download, such as: TinyLlama-1.1B-32k-f16.gguf.
68
+
69
+ Then click Download.
70
+
71
+ ### On the command line, including multiple files at once
72
+
73
+ I recommend using the `huggingface-hub` Python library:
74
+
75
+ ```shell
76
+ pip3 install huggingface-hub
77
+ ```
78
+
79
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
80
+
81
+ ```shell
82
+ huggingface-cli download andrijdavid/TinyLlama-1.1B-32k-GGUF TinyLlama-1.1B-32k-f16.gguf --local-dir . --local-dir-use-symlinks False
83
+ ```
84
+
85
+ <details>
86
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
87
+
88
+ You can also download multiple files at once with a pattern:
89
+
90
+ ```shell
91
+ huggingface-cli download andrijdavid/TinyLlama-1.1B-32k-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
92
+ ```
93
+
94
+ For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
95
+
96
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
97
+
98
+ ```shell
99
+ pip3 install hf_transfer
100
+ ```
101
+
102
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
103
+
104
+ ```shell
105
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download andrijdavid/TinyLlama-1.1B-32k-GGUF TinyLlama-1.1B-32k-f16.gguf --local-dir . --local-dir-use-symlinks False
106
+ ```
107
+
108
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
109
+ </details>
110
+ <!-- README_GGUF.md-how-to-download end -->
111
+ <!-- README_GGUF.md-how-to-run start -->
112
+ ## Example `llama.cpp` command
113
+
114
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
115
+
116
+ ```shell
117
+ ./main -ngl 35 -m TinyLlama-1.1B-32k-f16.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<PROMPT>"
118
+ ```
119
+
120
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
121
+
122
+ Change `-c 4096` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically. Note that longer sequence lengths require much more resources, so you may need to reduce this value.
123
+
124
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
125
+
126
+ For other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)
127
+
128
+ ## How to run in `text-generation-webui`
129
+
130
+ Further instructions can be found in the text-generation-webui documentation, here: [text-generation-webui/docs/04 ‐ Model Tab.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/04%20%E2%80%90%20Model%20Tab.md#llamacpp).
131
+
132
+ ## How to run from Python code
133
+
134
+ You can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.
135
+
136
+ ### How to load this model in Python code, using llama-cpp-python
137
+
138
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
139
+
140
+ #### First install the package
141
+
142
+ Run one of the following commands, according to your system:
143
+
144
+ ```shell
145
+ # Base ctransformers with no GPU acceleration
146
+ pip install llama-cpp-python
147
+ # With NVidia CUDA acceleration
148
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
149
+ # Or with OpenBLAS acceleration
150
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
151
+ # Or with CLBLast acceleration
152
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
153
+ # Or with AMD ROCm GPU acceleration (Linux only)
154
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
155
+ # Or with Metal GPU acceleration for macOS systems only
156
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
157
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
158
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
159
+ pip install llama-cpp-python
160
+ ```
161
+
162
+ #### Simple llama-cpp-python example code
163
+
164
+ ```python
165
+ from llama_cpp import Llama
166
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
167
+ llm = Llama(
168
+ model_path="./TinyLlama-1.1B-32k-f16.gguf", # Download the model file first
169
+ n_ctx=32768, # The max sequence length to use - note that longer sequence lengths require much more resources
170
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
171
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
172
+ )
173
+ # Simple inference example
174
+ output = llm(
175
+ "<PROMPT>", # Prompt
176
+ max_tokens=512, # Generate up to 512 tokens
177
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
178
+ echo=True # Whether to echo the prompt
179
+ )
180
+ # Chat Completion API
181
+ llm = Llama(model_path="./TinyLlama-1.1B-32k-f16.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
182
+ llm.create_chat_completion(
183
+ messages = [
184
+ {"role": "system", "content": "You are a story writing assistant."},
185
+ {
186
+ "role": "user",
187
+ "content": "Write a story about llamas."
188
+ }
189
+ ]
190
+ )
191
+ ```
192
+
193
+ ## How to use with LangChain
194
+
195
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
196
+
197
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
198
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
199
+
200
+ <!-- README_GGUF.md-how-to-run end -->
201
+
202
+ <!-- footer end -->
203
+
204
+ <!-- original-model-card start -->
205
+ # Original model card: TinyLlama-1.1B-32k
206
+
207
+ # TinyLlama-1.1B-32k
208
+
209
+ 32k context finetune of TinyLlama-1.1B using increased rope theta (rope frequency base) meant to serve as a long-context speculative decoding model.
210
+
211
+ Created using [TinyLlama-1.1B](https://huggingface.co/TinyLlama/tinyLlama-intermediate-checkpoints-after-1T-token) and further pretraining at 32768 context length on [togethercomputer/RedPajama-Data-1T-Sample](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T-Sample).
212
+
213
+ Of note, the base checkpoint used was from commit "final model" fad4f1a5cd0563ac41349b8fec2e6e51156568a0 which was subsequently reverted, and not the current main branch 3T checkpoint of TinyLlama-1.1B.
214
+
215
+ Wikitext (wikitext-2-raw-v1_train) Perplexity (64 rows) as evaluated by [exllamav2](https://github.com/turboderp/exllamav2):
216
+ ```
217
+ Base Model
218
+ 2048: 8.5633
219
+ 4096: 208.3586
220
+ 8192: 863.7507
221
+ 16384: 1600.5021
222
+ 32768: 6981.9021
223
+
224
+ 32k Model
225
+ 2048: 8.6548
226
+ 4096: 7.8339
227
+ 8192: 7.4904
228
+ 16384: 7.3674
229
+ 32768: 7.1338
230
+ ```
231
+
232
+ <!-- original-model-card end -->
TinyLlama-1.1B-32k-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5acbfbe9df29f2a9e7bb5d419c07d33dd4a7dc7c5ab16d6be866f8896c7dd76
3
+ size 483116032
TinyLlama-1.1B-32k-Q3_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1cf452dd5d10ea7bec547bb490a99fc94cab97dfe2239534a7f5197066b1c9e
3
+ size 550818816
TinyLlama-1.1B-32k-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5b19335ce9c88f402fc5a6df44bb001a6e4ab45b7aa61cf44a2f9e70f53d7e8
3
+ size 592499712
TinyLlama-1.1B-32k-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1cf452dd5d10ea7bec547bb490a99fc94cab97dfe2239534a7f5197066b1c9e
3
+ size 550818816
TinyLlama-1.1B-32k-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8934095bf82543365ea263fff11264a37d05cb4cc2ca6e9dd20974af7071b40
3
+ size 500315136
TinyLlama-1.1B-32k-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1141414ce0d87194c3350dd20830187b12e9fdc59554cfe942d4479f23269d16
3
+ size 637699072
TinyLlama-1.1B-32k-Q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58d069252951c6896a328394c7089fa8edd57cf9f32aef6b1e7695756e444be2
3
+ size 702350336
TinyLlama-1.1B-32k-Q4_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa017255dd6ed72ed4791173fe71e63e4b271cdc4daaf1b5cc154d953400ed96
3
+ size 668787712
TinyLlama-1.1B-32k-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa017255dd6ed72ed4791173fe71e63e4b271cdc4daaf1b5cc154d953400ed96
3
+ size 668787712
TinyLlama-1.1B-32k-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03d26b82e11614062191dca460713b01a309701abca3ffbe8b842e3fd54430e3
3
+ size 643728384
TinyLlama-1.1B-32k-Q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bcf5425fc94e4663f777575c986050c536149ee5a674b8fc8b2a06814c3bfea
3
+ size 767001600
TinyLlama-1.1B-32k-Q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fd46c38b2903ca5d3dc927229d1e93319e83b990fc594232d3b2be3db2583f7
3
+ size 831652864
TinyLlama-1.1B-32k-Q5_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df9f976c7ddf763db805f6008ec6c095e79404f44dcefa53ce1d31e681091d40
3
+ size 783016960
TinyLlama-1.1B-32k-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df9f976c7ddf763db805f6008ec6c095e79404f44dcefa53ce1d31e681091d40
3
+ size 783016960
TinyLlama-1.1B-32k-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b057cc2010d45ffb8254311c0135017642f1445e62bf51ab4b2a70e4ba633f5
3
+ size 767001600
TinyLlama-1.1B-32k-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e8e71949dbb72f91e8801d95c12fb0fc7b48350dfcbd3aa4d2b68b6b8d40aff
3
+ size 904385536
TinyLlama-1.1B-32k-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:307074dd112e41cfbddd1f7d6c34b835b9bf73eef134cd7241f8aa59e860d71d
3
+ size 1170781184
TinyLlama-1.1B-32k-f16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c08de26a2fd76aedfebdf0ded208e7d737e9433ff6411341c373219f712b522
3
+ size 2201990080
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./models/TinyLlama-1.1B",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2048,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 5632,
14
+ "max_position_embeddings": 32768,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 22,
18
+ "num_key_value_heads": 4,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-05,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000.0,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.36.2",
26
+ "use_cache": false,
27
+ "vocab_size": 32000
28
+ }
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.36.2"
7
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
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,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": false,
34
+ "model_max_length": 1000000000000000019884624838656,
35
+ "pad_token": "</s>",
36
+ "padding_side": "right",
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "trust_remote_code": false,
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false,
43
+ "use_fast": true
44
+ }