TheBloke commited on
Commit
f1f889a
1 Parent(s): 6671baf

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +377 -0
README.md ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ngoantech/Llama-2-7b-vietnamese-20k
3
+ inference: false
4
+ license: llama2
5
+ model_creator: Pham Van Ngoan
6
+ model_name: Llama 2 7B Vietnamese 20K
7
+ model_type: llama
8
+ prompt_template: '{prompt}
9
+
10
+ '
11
+ quantized_by: TheBloke
12
+ tags:
13
+ - text-generation
14
+ - llama-2
15
+ - llama-2-7B
16
+ - llama2-vietnamese
17
+ - vietnamese
18
+ ---
19
+
20
+ <!-- header start -->
21
+ <!-- 200823 -->
22
+ <div style="width: auto; margin-left: auto; margin-right: auto">
23
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
24
+ </div>
25
+ <div style="display: flex; justify-content: space-between; width: 100%;">
26
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
27
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
28
+ </div>
29
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
30
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
31
+ </div>
32
+ </div>
33
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
34
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
35
+ <!-- header end -->
36
+
37
+ # Llama 2 7B Vietnamese 20K - GPTQ
38
+ - Model creator: [Pham Van Ngoan](https://huggingface.co/ngoantech)
39
+ - Original model: [Llama 2 7B Vietnamese 20K](https://huggingface.co/ngoantech/Llama-2-7b-vietnamese-20k)
40
+
41
+ <!-- description start -->
42
+ ## Description
43
+
44
+ This repo contains GPTQ model files for [Pham Van Ngoan's Llama 2 7B Vietnamese 20K](https://huggingface.co/ngoantech/Llama-2-7b-vietnamese-20k).
45
+
46
+ Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
47
+
48
+ <!-- description end -->
49
+ <!-- repositories-available start -->
50
+ ## Repositories available
51
+
52
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-AWQ)
53
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ)
54
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GGUF)
55
+ * [Pham Van Ngoan's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ngoantech/Llama-2-7b-vietnamese-20k)
56
+ <!-- repositories-available end -->
57
+
58
+ <!-- prompt-template start -->
59
+ ## Prompt template: Unknown
60
+
61
+ ```
62
+ {prompt}
63
+
64
+ ```
65
+
66
+ <!-- prompt-template end -->
67
+
68
+
69
+ <!-- README_GPTQ.md-provided-files start -->
70
+ ## Provided files, and GPTQ parameters
71
+
72
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
73
+
74
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
75
+
76
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
77
+
78
+ <details>
79
+ <summary>Explanation of GPTQ parameters</summary>
80
+
81
+ - Bits: The bit size of the quantised model.
82
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
83
+ - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
84
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
85
+ - GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
86
+ - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
87
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit.
88
+
89
+ </details>
90
+
91
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
92
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
93
+ | [main](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [Alpaca Vietnamese](https://huggingface.co/datasets/nRuaif/Vietnamese_x_Alpaca) | 4096 | 3.90 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
94
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [Alpaca Vietnamese](https://huggingface.co/datasets/nRuaif/Vietnamese_x_Alpaca) | 4096 | 4.28 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
95
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [Alpaca Vietnamese](https://huggingface.co/datasets/nRuaif/Vietnamese_x_Alpaca) | 4096 | 7.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
96
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [Alpaca Vietnamese](https://huggingface.co/datasets/nRuaif/Vietnamese_x_Alpaca) | 4096 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
97
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [Alpaca Vietnamese](https://huggingface.co/datasets/nRuaif/Vietnamese_x_Alpaca) | 4096 | 7.62 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
98
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [Alpaca Vietnamese](https://huggingface.co/datasets/nRuaif/Vietnamese_x_Alpaca) | 4096 | 4.02 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
99
+
100
+ <!-- README_GPTQ.md-provided-files end -->
101
+
102
+ <!-- README_GPTQ.md-download-from-branches start -->
103
+ ## How to download, including from branches
104
+
105
+ ### In text-generation-webui
106
+
107
+ To download from the `main` branch, enter `TheBloke/Llama-2-7B-vietnamese-20k-GPTQ` in the "Download model" box.
108
+
109
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Llama-2-7B-vietnamese-20k-GPTQ:gptq-4bit-32g-actorder_True`
110
+
111
+ ### From the command line
112
+
113
+ I recommend using the `huggingface-hub` Python library:
114
+
115
+ ```shell
116
+ pip3 install huggingface-hub
117
+ ```
118
+
119
+ To download the `main` branch to a folder called `Llama-2-7B-vietnamese-20k-GPTQ`:
120
+
121
+ ```shell
122
+ mkdir Llama-2-7B-vietnamese-20k-GPTQ
123
+ huggingface-cli download TheBloke/Llama-2-7B-vietnamese-20k-GPTQ --local-dir Llama-2-7B-vietnamese-20k-GPTQ --local-dir-use-symlinks False
124
+ ```
125
+
126
+ To download from a different branch, add the `--revision` parameter:
127
+
128
+ ```shell
129
+ mkdir Llama-2-7B-vietnamese-20k-GPTQ
130
+ huggingface-cli download TheBloke/Llama-2-7B-vietnamese-20k-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir Llama-2-7B-vietnamese-20k-GPTQ --local-dir-use-symlinks False
131
+ ```
132
+
133
+ <details>
134
+ <summary>More advanced huggingface-cli download usage</summary>
135
+
136
+ If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Huggingface cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
137
+
138
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
139
+
140
+ 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).
141
+
142
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
143
+
144
+ ```shell
145
+ pip3 install hf_transfer
146
+ ```
147
+
148
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
149
+
150
+ ```shell
151
+ mkdir Llama-2-7B-vietnamese-20k-GPTQ
152
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Llama-2-7B-vietnamese-20k-GPTQ --local-dir Llama-2-7B-vietnamese-20k-GPTQ --local-dir-use-symlinks False
153
+ ```
154
+
155
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
156
+ </details>
157
+
158
+ ### With `git` (**not** recommended)
159
+
160
+ To clone a specific branch with `git`, use a command like this:
161
+
162
+ ```shell
163
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Llama-2-7B-vietnamese-20k-GPTQ
164
+ ```
165
+
166
+ Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.)
167
+
168
+ <!-- README_GPTQ.md-download-from-branches end -->
169
+ <!-- README_GPTQ.md-text-generation-webui start -->
170
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
171
+
172
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
173
+
174
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
175
+
176
+ 1. Click the **Model tab**.
177
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Llama-2-7B-vietnamese-20k-GPTQ`.
178
+ - To download from a specific branch, enter for example `TheBloke/Llama-2-7B-vietnamese-20k-GPTQ:gptq-4bit-32g-actorder_True`
179
+ - see Provided Files above for the list of branches for each option.
180
+ 3. Click **Download**.
181
+ 4. The model will start downloading. Once it's finished it will say "Done".
182
+ 5. In the top left, click the refresh icon next to **Model**.
183
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Llama-2-7B-vietnamese-20k-GPTQ`
184
+ 7. The model will automatically load, and is now ready for use!
185
+ 8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
186
+ * Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
187
+ 9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
188
+
189
+ <!-- README_GPTQ.md-text-generation-webui end -->
190
+
191
+ <!-- README_GPTQ.md-use-from-tgi start -->
192
+ ## Serving this model from Text Generation Inference (TGI)
193
+
194
+ It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
195
+
196
+ Example Docker parameters:
197
+
198
+ ```shell
199
+ --model-id TheBloke/Llama-2-7B-vietnamese-20k-GPTQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
200
+ ```
201
+
202
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
203
+
204
+ ```shell
205
+ pip3 install huggingface-hub
206
+ ```
207
+
208
+ ```python
209
+ from huggingface_hub import InferenceClient
210
+
211
+ endpoint_url = "https://your-endpoint-url-here"
212
+
213
+ prompt = "Tell me about AI"
214
+ prompt_template=f'''{prompt}
215
+ '''
216
+
217
+ client = InferenceClient(endpoint_url)
218
+ response = client.text_generation(prompt,
219
+ max_new_tokens=128,
220
+ do_sample=True,
221
+ temperature=0.7,
222
+ top_p=0.95,
223
+ top_k=40,
224
+ repetition_penalty=1.1)
225
+
226
+ print(f"Model output: {response}")
227
+ ```
228
+ <!-- README_GPTQ.md-use-from-tgi end -->
229
+ <!-- README_GPTQ.md-use-from-python start -->
230
+ ## How to use this GPTQ model from Python code
231
+
232
+ ### Install the necessary packages
233
+
234
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
235
+
236
+ ```shell
237
+ pip3 install transformers optimum
238
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
239
+ ```
240
+
241
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
242
+
243
+ ```shell
244
+ pip3 uninstall -y auto-gptq
245
+ git clone https://github.com/PanQiWei/AutoGPTQ
246
+ cd AutoGPTQ
247
+ git checkout v0.4.2
248
+ pip3 install .
249
+ ```
250
+
251
+ ### You can then use the following code
252
+
253
+ ```python
254
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
255
+
256
+ model_name_or_path = "TheBloke/Llama-2-7B-vietnamese-20k-GPTQ"
257
+ # To use a different branch, change revision
258
+ # For example: revision="gptq-4bit-32g-actorder_True"
259
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
260
+ device_map="auto",
261
+ trust_remote_code=False,
262
+ revision="main")
263
+
264
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
265
+
266
+ prompt = "Tell me about AI"
267
+ prompt_template=f'''{prompt}
268
+ '''
269
+
270
+ print("\n\n*** Generate:")
271
+
272
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
273
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
274
+ print(tokenizer.decode(output[0]))
275
+
276
+ # Inference can also be done using transformers' pipeline
277
+
278
+ print("*** Pipeline:")
279
+ pipe = pipeline(
280
+ "text-generation",
281
+ model=model,
282
+ tokenizer=tokenizer,
283
+ max_new_tokens=512,
284
+ do_sample=True,
285
+ temperature=0.7,
286
+ top_p=0.95,
287
+ top_k=40,
288
+ repetition_penalty=1.1
289
+ )
290
+
291
+ print(pipe(prompt_template)[0]['generated_text'])
292
+ ```
293
+ <!-- README_GPTQ.md-use-from-python end -->
294
+
295
+ <!-- README_GPTQ.md-compatibility start -->
296
+ ## Compatibility
297
+
298
+ The files provided are tested to work with AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI).
299
+
300
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama and Mistral models in 4-bit. Please see the Provided Files table above for per-file compatibility.
301
+
302
+ [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models.
303
+ <!-- README_GPTQ.md-compatibility end -->
304
+
305
+ <!-- footer start -->
306
+ <!-- 200823 -->
307
+ ## Discord
308
+
309
+ For further support, and discussions on these models and AI in general, join us at:
310
+
311
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
312
+
313
+ ## Thanks, and how to contribute
314
+
315
+ Thanks to the [chirper.ai](https://chirper.ai) team!
316
+
317
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
318
+
319
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
320
+
321
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
322
+
323
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
324
+
325
+ * Patreon: https://patreon.com/TheBlokeAI
326
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
327
+
328
+ **Special thanks to**: Aemon Algiz.
329
+
330
+ **Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski
331
+
332
+
333
+ Thank you to all my generous patrons and donaters!
334
+
335
+ And thank you again to a16z for their generous grant.
336
+
337
+ <!-- footer end -->
338
+
339
+ # Original model card: Pham Van Ngoan's Llama 2 7B Vietnamese 20K
340
+
341
+ # Model Card for Llama 2 Fine-Tuned on Vietnamese Instructions
342
+
343
+ ## Model Details
344
+ - Model Name: Llama-2-7b-vietnamese-20k
345
+ - Architecture: Llama 2 7B
346
+ - Fine-tuning Data Size: 20,000 instruction samples
347
+ - Purpose: To demonstrate the performance of the Llama 2 model on Vietnamese and gather initial insights. A more comprehensive model and evaluation will be released soon.
348
+ - Availability: The model checkpoint can be accessed on Hugging Face: ngoantech/Llama-2-7b-vietnamese-20k
349
+
350
+ ## Intended Use
351
+ This model is intended for researchers, developers, and enthusiasts who are interested in understanding the performance of the Llama 2 model on Vietnamese. It can be used for generating Vietnamese text based on given instructions or for any other task that requires a Vietnamese language model.
352
+
353
+ ## Example Output
354
+ ![Example output 1](exp_1.png "Example output 1")
355
+
356
+
357
+ ## Limitations
358
+ - Data Size: The model was fine-tuned on a relatively small dataset of 20,000 instruction samples, which might not capture the full complexity and nuances of the Vietnamese language.
359
+ - Preliminary Model: This is an initial experiment with the Llama 2 architecture on Vietnamese. More refined versions and evaluations will be available soon.
360
+ - Performance:
361
+ Specific performance metrics on this fine-tuned model will be provided in the upcoming comprehensive evaluation.
362
+
363
+ ## Ethical Considerations
364
+ - Bias and Fairness: Like any other machine learning model, there is a possibility that this model might reproduce or amplify biases present in the training data.
365
+ - Use in Critical Systems: As this is a preliminary model, it is recommended not to use it for mission-critical applications without proper validation.
366
+ - Fine-tuning Data:
367
+ The model was fine-tuned on a custom dataset of 20,000 instruction samples in Vietnamese. More details about the composition and source of this dataset will be provided in the detailed evaluation report.
368
+
369
+
370
+
371
+ ## Credits
372
+ I would like to express our gratitude to the creators of the Llama 2 architecture and the Hugging Face community for their tools and resources.
373
+
374
+ ## Contact
375
+ ngoantech@gmail.com
376
+
377
+ https://github.com/ngoanpv