Transformers
GGUF
GGUF
conversational
andrijdavid commited on
Commit
30be68e
·
verified ·
1 Parent(s): 755ef2f

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,18 @@ 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
+ Q2_K/Q2_K-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Q3_K_L/Q3_K_L-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Q3_K_M/Q3_K_M-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Q3_K_S/Q3_K_S-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Q4_0/Q4_0-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Q4_1/Q4_1-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Q4_K_M/Q4_K_M-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Q4_K_S/Q4_K_S-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Q5_0/Q5_0-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Q5_1/Q5_1-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Q5_K_M/Q5_K_M-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Q5_K_S/Q5_K_S-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Q6_K/Q6_K-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Q8_0/Q8_0-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Q8_0/Q8_0-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
Q2_K/Q2_K-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b753d9fdd7e9fc09df78938aca013c478313dea82ff7d9f87207cd9c852f8eb
3
+ size 13817395968
Q3_K_L/Q3_K_L-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0cd1e01bb1bc25c6316b0c5c727007e560fd041d3b9a7145f869efcf43869df
3
+ size 19149404928
Q3_K_M/Q3_K_M-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f5890394d34c0539a895b80d2dbc8000b9275fe1f0e76e9d0c97bced6a72346
3
+ size 17618483968
Q3_K_S/Q3_K_S-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a11ac1d65c2c596746c7641bcd576fd05943615f260ffc5fadb375c408d72179
3
+ size 15862119168
Q4_0/Q4_0-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64681d88480ab4dcbda7c7ffb0828955b3fc639961dca6f09a50509a9366ac6a
3
+ size 20229438208
Q4_1/Q4_1-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c869e3e4c0bf9a0ed219eb55c3222089348b1d270b74f0bc9e08566fb29c38b
3
+ size 22284647168
Q4_K_M/Q4_K_M-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f6f228fc6e3b177041fe22229d9b12447cf666f43e28e6ea5cd25b8fe8c4c81
3
+ size 21527051008
Q4_K_S/Q4_K_S-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33003e73a00b8a9cb62a448a69fc0473c1623e8ce1b3361cdba5df056d4d6353
3
+ size 20378336000
Q5_0/Q5_0-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:260a4be68602acb119e7366273ea0143f93f256fbafeef3b74016d2a5fbe514d
3
+ size 24339856128
Q5_1/Q5_1-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d7df746e6b8b4c01620d789b060a47e04181657c36a2b51000b559ec6e5ec3c
3
+ size 26395065088
Q5_K_M/Q5_K_M-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c7ba744ce85c0ec55f06ac317eca031b0774c9bb570bf481cc77c8bf0c6a269
3
+ size 25008323328
Q5_K_S/Q5_K_S-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57725b85fa6177058fa205511162e022ae6827d43ecc6bd417a70bbbb21bc50b
3
+ size 24339856128
Q6_K/Q6_K-00001-of-00001.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b456829c7dbcaa09d8a2c7740c953417a578024dccfe04215f9767843c840cbd
3
+ size 28707175168
Q8_0/Q8_0-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40b4a53a4d210f3790cdc9de4cec71982f0ac797b4f99621f3246f760ba3f523
3
+ size 32134115296
Q8_0/Q8_0-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96f0b39edd306e18f29e5e63dcdfb102d165180486028db3c048908f66fd18e6
3
+ size 5044898688
README.md ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ ---
4
+ language:
5
+ - en
6
+ - fr
7
+ - de
8
+ - es
9
+ - it
10
+ - pt
11
+ - ja
12
+ - ko
13
+ - zh
14
+ - ar
15
+ - el
16
+ - fa
17
+ - pl
18
+ - id
19
+ - cs
20
+ - he
21
+ - hi
22
+ - nl
23
+ - ro
24
+ - ru
25
+ - tr
26
+ - uk
27
+ - vi
28
+ license: cc-by-nc-4.0
29
+ library_name: transformers
30
+ tags:
31
+ - GGUF
32
+ inference: false
33
+ quantized_by: andrijdavid
34
+ ---
35
+ # aya-23-35B-GGUF
36
+ - Original model: [aya-23-35B](https://huggingface.co/CohereForAI/aya-23-35B)
37
+
38
+ <!-- description start -->
39
+ ## Description
40
+
41
+ This repo contains GGUF format model files for [aya-23-35B](https://huggingface.co/CohereForAI/aya-23-35B).
42
+
43
+ <!-- description end -->
44
+ <!-- README_GGUF.md-about-gguf start -->
45
+ ### About GGUF
46
+ 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.
47
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
48
+ * [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.
49
+ * [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.
50
+ * [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​
51
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), A comprehensive web UI offering GPU acceleration across all platforms and architectures, particularly renowned for storytelling.
52
+ * [GPT4All](https://gpt4all.io), This is a free and open source GUI that runs locally, supporting Windows, Linux, and macOS with full GPU acceleration.
53
+ * [LM Studio](https://lmstudio.ai/) An intuitive and powerful local GUI for Windows and macOS (Silicon), featuring GPU acceleration.
54
+ * [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.
55
+ * [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.
56
+ * [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.
57
+ * [candle](https://github.com/huggingface/candle), A Rust-based ML framework focusing on performance, including GPU support, and designed for ease of use.
58
+ * [ctransformers](https://github.com/marella/ctransformers), A Python library featuring GPU acceleration, LangChain support, and an OpenAI-compatible AI server.
59
+ * [localGPT](https://github.com/PromtEngineer/localGPT) An open-source initiative enabling private conversations with documents.
60
+ <!-- README_GGUF.md-about-gguf end -->
61
+
62
+ <!-- compatibility_gguf start -->
63
+ ## Explanation of quantisation methods
64
+ <details>
65
+ <summary>Click to see details</summary>
66
+ The new methods available are:
67
+
68
+ * 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)
69
+ * 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.
70
+ * 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.
71
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
72
+ * 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.
73
+ </details>
74
+ <!-- compatibility_gguf end -->
75
+
76
+ <!-- README_GGUF.md-how-to-download start -->
77
+ ## How to download GGUF files
78
+
79
+ **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 folder.
80
+
81
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
82
+
83
+ * LM Studio
84
+ * LoLLMS Web UI
85
+ * Faraday.dev
86
+
87
+ ### In `text-generation-webui`
88
+
89
+ Under Download Model, you can enter the model repo: LiteLLMs/aya-23-35B-GGUF and below it, a specific filename to download, such as: Q4_0/Q4_0-00001-of-00009.gguf.
90
+
91
+ Then click Download.
92
+
93
+ ### On the command line, including multiple files at once
94
+
95
+ I recommend using the `huggingface-hub` Python library:
96
+
97
+ ```shell
98
+ pip3 install huggingface-hub
99
+ ```
100
+
101
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
102
+
103
+ ```shell
104
+ huggingface-cli download LiteLLMs/aya-23-35B-GGUF Q4_0/Q4_0-00001-of-00009.gguf --local-dir . --local-dir-use-symlinks False
105
+ ```
106
+
107
+ <details>
108
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
109
+
110
+ You can also download multiple files at once with a pattern:
111
+
112
+ ```shell
113
+ huggingface-cli download LiteLLMs/aya-23-35B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
114
+ ```
115
+
116
+ 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).
117
+
118
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
119
+
120
+ ```shell
121
+ pip3 install huggingface_hub[hf_transfer]
122
+ ```
123
+
124
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
125
+
126
+ ```shell
127
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download LiteLLMs/aya-23-35B-GGUF Q4_0/Q4_0-00001-of-00009.gguf --local-dir . --local-dir-use-symlinks False
128
+ ```
129
+
130
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
131
+ </details>
132
+ <!-- README_GGUF.md-how-to-download end -->
133
+ <!-- README_GGUF.md-how-to-run start -->
134
+ ## Example `llama.cpp` command
135
+
136
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
137
+
138
+ ```shell
139
+ ./main -ngl 35 -m Q4_0/Q4_0-00001-of-00009.gguf --color -c 8192 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<PROMPT>"
140
+ ```
141
+
142
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
143
+
144
+ Change `-c 8192` 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.
145
+
146
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
147
+
148
+ 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)
149
+
150
+ ## How to run in `text-generation-webui`
151
+
152
+ 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).
153
+
154
+ ## How to run from Python code
155
+
156
+ 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.
157
+
158
+ ### How to load this model in Python code, using llama-cpp-python
159
+
160
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
161
+
162
+ #### First install the package
163
+
164
+ Run one of the following commands, according to your system:
165
+
166
+ ```shell
167
+ # Base ctransformers with no GPU acceleration
168
+ pip install llama-cpp-python
169
+ # With NVidia CUDA acceleration
170
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
171
+ # Or with OpenBLAS acceleration
172
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
173
+ # Or with CLBLast acceleration
174
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
175
+ # Or with AMD ROCm GPU acceleration (Linux only)
176
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
177
+ # Or with Metal GPU acceleration for macOS systems only
178
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
179
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
180
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
181
+ pip install llama-cpp-python
182
+ ```
183
+
184
+ #### Simple llama-cpp-python example code
185
+
186
+ ```python
187
+ from llama_cpp import Llama
188
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
189
+ llm = Llama(
190
+ model_path="./Q4_0/Q4_0-00001-of-00009.gguf", # Download the model file first
191
+ n_ctx=32768, # The max sequence length to use - note that longer sequence lengths require much more resources
192
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
193
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
194
+ )
195
+ # Simple inference example
196
+ output = llm(
197
+ "<PROMPT>", # Prompt
198
+ max_tokens=512, # Generate up to 512 tokens
199
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
200
+ echo=True # Whether to echo the prompt
201
+ )
202
+ # Chat Completion API
203
+ llm = Llama(model_path="./Q4_0/Q4_0-00001-of-00009.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
204
+ llm.create_chat_completion(
205
+ messages = [
206
+ {"role": "system", "content": "You are a story writing assistant."},
207
+ {
208
+ "role": "user",
209
+ "content": "Write a story about llamas."
210
+ }
211
+ ]
212
+ )
213
+ ```
214
+
215
+ ## How to use with LangChain
216
+
217
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
218
+
219
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
220
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
221
+
222
+ <!-- README_GGUF.md-how-to-run end -->
223
+
224
+ <!-- footer end -->
225
+
226
+ <!-- original-model-card start -->
227
+ # Original model card: aya-23-35B
228
+
229
+
230
+ # Model Card for Aya-23-35B
231
+
232
+ **Try Aya 23**
233
+
234
+ You can try out Aya 23 (35B) before downloading the weights in our hosted Hugging Face Space [here](https://huggingface.co/spaces/CohereForAI/aya-23).
235
+
236
+ ## Model Summary
237
+
238
+ Aya 23 is an open weights research release of an instruction fine-tuned model with highly advanced multilingual capabilities. Aya 23 focuses on pairing a highly performant pre-trained [Command family](https://huggingface.co/CohereForAI/c4ai-command-r-plus) of models with the recently released [Aya Collection](https://huggingface.co/datasets/CohereForAI/aya_collection). The result is a powerful multilingual large language model serving 23 languages.
239
+
240
+ This model card corresponds to the 35-billion version of the Aya 23 model. We also released an 8-billion version which you can find [here](https://huggingface.co/CohereForAI/aya-23-8B).
241
+
242
+ We cover 23 languages: Arabic, Chinese (simplified & traditional), Czech, Dutch, English, French, German, Greek, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Romanian, Russian, Spanish, Turkish, Ukrainian, and Vietnamese
243
+
244
+ Developed by: [Cohere For AI](https://cohere.for.ai) and [Cohere](https://cohere.com/)
245
+
246
+ - Point of Contact: Cohere For AI: [cohere.for.ai](https://cohere.for.ai/)
247
+ - License: [CC-BY-NC](https://cohere.com/c4ai-cc-by-nc-license), requires also adhering to [C4AI's Acceptable Use Policy](https://docs.cohere.com/docs/c4ai-acceptable-use-policy)
248
+ - Model: aya-23-35B
249
+ - Model Size: 35 billion parameters
250
+
251
+ ### Usage
252
+
253
+ Please install transformers from the source repository that includes the necessary changes for this model
254
+
255
+ ```python
256
+ # pip install 'git+https://github.com/huggingface/transformers.git'
257
+ from transformers import AutoTokenizer, AutoModelForCausalLM
258
+
259
+ model_id = "CohereForAI/aya-23-35B"
260
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
261
+ model = AutoModelForCausalLM.from_pretrained(model_id)
262
+
263
+ # Format message with the command-r-plus chat template
264
+ messages = [{"role": "user", "content": "Anneme onu ne kadar sevdiğimi anlatan bir mektup yaz"}]
265
+ input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
266
+ ## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Anneme onu ne kadar sevdiğimi anlatan bir mektup yaz<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
267
+
268
+ gen_tokens = model.generate(
269
+ input_ids,
270
+ max_new_tokens=100,
271
+ do_sample=True,
272
+ temperature=0.3,
273
+ )
274
+
275
+ gen_text = tokenizer.decode(gen_tokens[0])
276
+ print(gen_text)
277
+ ```
278
+
279
+ ### Example Notebook
280
+
281
+ [This notebook](https://huggingface.co/CohereForAI/aya-23-35B/blob/main/Aya_23_notebook.ipynb) showcases a detailed use of Aya 23 (8B) including inference and fine-tuning with [QLoRA](https://huggingface.co/blog/4bit-transformers-bitsandbytes).
282
+
283
+ ## Model Details
284
+
285
+ **Input**: Models input text only.
286
+
287
+ **Output**: Models generate text only.
288
+
289
+ **Model Architecture**: Aya-23-35B is an auto-regressive language model that uses an optimized transformer architecture. After pretraining, this model is fine-tuned (IFT) to follow human instructions.
290
+
291
+ **Languages covered**: The model is particularly optimized for multilinguality and supports the following languages: Arabic, Chinese (simplified & traditional), Czech, Dutch, English, French, German, Greek, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Romanian, Russian, Spanish, Turkish, Ukrainian, and Vietnamese
292
+
293
+ **Context length**: 8192
294
+
295
+ ### Evaluation
296
+
297
+ <img src="benchmarks.png" alt="multilingual benchmarks" width="650" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
298
+ <img src="winrates.png" alt="average win rates" width="650" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
299
+
300
+ Please refer to the [Aya 23 technical report](https://cohere.com/research/papers/aya-command-23-8b-and-35b-technical-report-2024-05-23) for further details about the base model, data, instruction tuning, and evaluation.
301
+
302
+ ### Model Card Contact
303
+
304
+ For errors or additional questions about details in this model card, contact [email protected].
305
+
306
+ ### Terms of Use
307
+
308
+ We hope that the release of this model will make community-based research efforts more accessible, by releasing the weights of a highly performant multilingual model to researchers all over the world. This model is governed by a [CC-BY-NC](https://cohere.com/c4ai-cc-by-nc-license) License with an acceptable use addendum, and also requires adhering to [C4AI's Acceptable Use Policy](https://docs.cohere.com/docs/c4ai-acceptable-use-policy).
309
+
310
+ ### Try the model today
311
+
312
+ You can try Aya 23 in the Cohere [playground](https://dashboard.cohere.com/playground/chat) here. You can also use it in our dedicated Hugging Face Space [here](https://huggingface.co/spaces/CohereForAI/aya-23).
313
+
314
+ ### Citation info
315
+ ```bibtex
316
+ @misc{aryabumi2024aya,
317
+ title={Aya 23: Open Weight Releases to Further Multilingual Progress},
318
+ author={Viraat Aryabumi and John Dang and Dwarak Talupuru and Saurabh Dash and David Cairuz and Hangyu Lin and Bharat Venkitesh and Madeline Smith and Kelly Marchisio and Sebastian Ruder and Acyr Locatelli and Julia Kreutzer and Nick Frosst and Phil Blunsom and Marzieh Fadaee and Ahmet Üstün and Sara Hooker},
319
+ year={2024},
320
+ eprint={2405.15032},
321
+ archivePrefix={arXiv},
322
+ primaryClass={cs.CL}
323
+ }
324
+ ```
325
+
326
+ <!-- original-model-card end -->