Upload README.md
Browse files
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
datasets:
|
3 |
- rombodawg/LosslessMegaCodeTrainingV2_1m_Evol_Uncensored
|
4 |
- OpenAssistant/oasst1
|
5 |
-
-
|
6 |
- argilla/databricks-dolly-15k-curated-multilingual
|
7 |
inference: false
|
8 |
language:
|
@@ -51,19 +51,17 @@ GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is
|
|
51 |
|
52 |
The key benefit of GGUF is that it is a extensible, future-proof format which stores more information about the model as metadata. It also includes significantly improved tokenization code, including for the first time full support for special tokens. This should improve performance, especially with models that use new special tokens and implement custom prompt templates.
|
53 |
|
54 |
-
|
55 |
-
* [llama.cpp](https://github.com/ggerganov/llama.cpp)
|
56 |
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI. Supports GGUF with GPU acceleration via the ctransformers backend - llama-cpp-python backend should work soon too.
|
57 |
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), now supports GGUF as of release 1.41! A powerful GGML web UI, with full GPU accel. Especially good for story telling.
|
|
|
58 |
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), should now work, choose the `c_transformers` backend. A great web UI with many interesting features. Supports CUDA GPU acceleration.
|
59 |
* [ctransformers](https://github.com/marella/ctransformers), now supports GGUF as of version 0.2.24! A Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
|
60 |
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), supports GGUF as of version 0.1.79. A Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
61 |
* [candle](https://github.com/huggingface/candle), added GGUF support on August 22nd. Candle is a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
62 |
|
63 |
-
The clients and libraries below are expecting to add GGUF support shortly:
|
64 |
-
* [LM Studio](https://lmstudio.ai/), should be updated by end August 25th.
|
65 |
<!-- README_GGUF.md-about-gguf end -->
|
66 |
-
|
67 |
<!-- repositories-available start -->
|
68 |
## Repositories available
|
69 |
|
@@ -82,6 +80,7 @@ The clients and libraries below are expecting to add GGUF support shortly:
|
|
82 |
<|im_start|>user
|
83 |
{prompt}<|im_end|>
|
84 |
<|im_start|>assistant
|
|
|
85 |
```
|
86 |
|
87 |
<!-- prompt-template end -->
|
@@ -90,9 +89,7 @@ The clients and libraries below are expecting to add GGUF support shortly:
|
|
90 |
|
91 |
These quantised GGUF files are compatible with llama.cpp from August 21st 2023 onwards, as of commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9)
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
They are are not yet compatible with any other third-party UIS, libraries or utilities but this is expected to change very soon.
|
96 |
|
97 |
## Explanation of quantisation methods
|
98 |
<details>
|
@@ -114,16 +111,22 @@ Refer to the Provided Files table below to see what files use which methods, and
|
|
114 |
|
115 |
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
116 |
| ---- | ---- | ---- | ---- | ---- | ----- |
|
117 |
-
| [llama2-70b-oasst-sft-v10.
|
118 |
-
| [llama2-70b-oasst-sft-v10.
|
119 |
-
| [llama2-70b-oasst-sft-v10.
|
120 |
-
| [llama2-70b-oasst-sft-v10.
|
121 |
-
| [llama2-70b-oasst-sft-v10.
|
122 |
-
| [llama2-70b-oasst-sft-v10.
|
123 |
-
| [llama2-70b-oasst-sft-v10.
|
124 |
-
| [llama2-70b-oasst-sft-v10.
|
125 |
-
| llama2-70b-oasst-sft-v10.
|
126 |
-
| llama2-70b-oasst-sft-v10.
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
129 |
|
@@ -161,20 +164,19 @@ del llama2-70b-oasst-sft-v10.Q8_0.gguf-split-a llama2-70b-oasst-sft-v10.Q8_0.ggu
|
|
161 |
```
|
162 |
|
163 |
</details>
|
164 |
-
|
165 |
<!-- README_GGUF.md-provided-files end -->
|
166 |
|
167 |
<!-- README_GGUF.md-how-to-run start -->
|
168 |
-
##
|
169 |
|
170 |
Make sure you are using `llama.cpp` from commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9) or later.
|
171 |
|
172 |
-
For compatibility with older versions of llama.cpp, or for
|
173 |
|
174 |
```
|
175 |
-
./main -t 10 -ngl 32 -m llama2-70b-oasst-sft-v10.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "
|
176 |
```
|
177 |
-
Change `-t 10` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
|
178 |
|
179 |
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
180 |
|
@@ -187,6 +189,44 @@ For other parameters and how to use them, please refer to [the llama.cpp documen
|
|
187 |
## How to run in `text-generation-webui`
|
188 |
|
189 |
Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
<!-- README_GGUF.md-how-to-run end -->
|
191 |
|
192 |
<!-- footer start -->
|
@@ -212,7 +252,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
212 |
|
213 |
**Special thanks to**: Aemon Algiz.
|
214 |
|
215 |
-
**Patreon special mentions**:
|
216 |
|
217 |
|
218 |
Thank you to all my generous patrons and donaters!
|
@@ -226,7 +266,7 @@ And thank you again to a16z for their generous grant.
|
|
226 |
|
227 |
# Open-Assistant Llama2 70B SFT v10
|
228 |
|
229 |
-
This model is an Open-Assistant fine-tuning of Meta's [Llama2 70B](https://huggingface.co/meta-llama/Llama-2-70b) LLM.
|
230 |
It was fine-tuned in two stages, first on a mix of synthetic instrunctions and coding tasks and then in a "polishing" stage
|
231 |
on the best human demonstrations collected at [open-assistant.io](https://open-assistant.io/) up to July 23, 2023 (see [Configuration Details](#configuration-details) below).
|
232 |
|
@@ -237,7 +277,7 @@ on the best human demonstrations collected at [open-assistant.io](https://open-a
|
|
237 |
- **Language:** English (and limited capabilities in German, Spanish, French, Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish)
|
238 |
- **Weights & Biases training logs:** [Stage 1](https://wandb.ai/open-assistant/public-sft/runs/run45_oasst_pre10_llama2_70b) (1 epoch pretrain-mix, 12k steps), [Stage 2](https://wandb.ai/open-assistant/public-sft/runs/run46_oasst_sft10_llama2_70b) (3 epochs oasst top-1, 519 steps)
|
239 |
- **Demo:** [Continuations for 250 random prompts (TGI, 4bit nf4 quantization)](https://open-assistant.github.io/oasst-model-eval/?f=https%3A%2F%2Fraw.githubusercontent.com%2FOpen-Assistant%2Foasst-model-eval%2Fmain%2Fsampling_reports%2Foasst-sft%2F2023-08-22_OpenAssistant_llama2-70b-oasst-sft-v10_sampling_noprefix2_nf4.json%0A)
|
240 |
-
- **Evaluation** [FastEval-OpenAssistant Overview](https://tju01.github.io/FastEval-OpenAssistant/) (using [FastEval](https://github.com/FastEval/FastEval) & [vLLM](https://github.com/vllm-project/vllm))
|
241 |
- **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)
|
242 |
- **Contact:** [Open-Assistant Discord](https://ykilcher.com/open-assistant-discord)
|
243 |
|
@@ -271,7 +311,7 @@ The model input can contain multiple conversation turns between user and assista
|
|
271 |
(...)
|
272 |
```
|
273 |
|
274 |
-
The model was partly trained with orca system messages.
|
275 |
For inference we recommend to use the official [Llama2 system message](https://github.com/facebookresearch/llama/blob/ea9f33d6d3ea8ed7d560d270986407fd6c2e52b7/example_chat_completion.py#L57-L61):
|
276 |
```
|
277 |
<|im_start|>system
|
@@ -296,7 +336,7 @@ We want to especially thank everyone who contributed in the crowed-sourced Open-
|
|
296 |
|
297 |
## Ethical Considerations and Limitations
|
298 |
|
299 |
-
Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios.
|
300 |
For these reasons, as with all LLMs, the potential outputs of llama2-70b-oasst-sft-v10 cannot be predicted
|
301 |
in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses
|
302 |
to user prompts. Therefore, before deploying any applications of llama2-70b-oasst-sft-v10, developers should
|
@@ -304,12 +344,13 @@ perform safety testing and tuning tailored to their specific applications of the
|
|
304 |
|
305 |
Please see Meta's [Responsible Use Guide](https://ai.meta.com/llama/responsible-use-guide/).
|
306 |
|
307 |
-
## Note regarding inference with TGI
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
|
|
|
|
313 |
|
314 |
## Configuration Details
|
315 |
|
|
|
2 |
datasets:
|
3 |
- rombodawg/LosslessMegaCodeTrainingV2_1m_Evol_Uncensored
|
4 |
- OpenAssistant/oasst1
|
5 |
+
- shahules786/orca-best
|
6 |
- argilla/databricks-dolly-15k-curated-multilingual
|
7 |
inference: false
|
8 |
language:
|
|
|
51 |
|
52 |
The key benefit of GGUF is that it is a extensible, future-proof format which stores more information about the model as metadata. It also includes significantly improved tokenization code, including for the first time full support for special tokens. This should improve performance, especially with models that use new special tokens and implement custom prompt templates.
|
53 |
|
54 |
+
Here are a list of clients and libraries that are known to support GGUF:
|
55 |
+
* [llama.cpp](https://github.com/ggerganov/llama.cpp).
|
56 |
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI. Supports GGUF with GPU acceleration via the ctransformers backend - llama-cpp-python backend should work soon too.
|
57 |
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), now supports GGUF as of release 1.41! A powerful GGML web UI, with full GPU accel. Especially good for story telling.
|
58 |
+
* [LM Studio](https://lmstudio.ai/), version 0.2.2 and later support GGUF. A fully featured local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
|
59 |
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), should now work, choose the `c_transformers` backend. A great web UI with many interesting features. Supports CUDA GPU acceleration.
|
60 |
* [ctransformers](https://github.com/marella/ctransformers), now supports GGUF as of version 0.2.24! A Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
|
61 |
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), supports GGUF as of version 0.1.79. A Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
62 |
* [candle](https://github.com/huggingface/candle), added GGUF support on August 22nd. Candle is a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
63 |
|
|
|
|
|
64 |
<!-- README_GGUF.md-about-gguf end -->
|
|
|
65 |
<!-- repositories-available start -->
|
66 |
## Repositories available
|
67 |
|
|
|
80 |
<|im_start|>user
|
81 |
{prompt}<|im_end|>
|
82 |
<|im_start|>assistant
|
83 |
+
|
84 |
```
|
85 |
|
86 |
<!-- prompt-template end -->
|
|
|
89 |
|
90 |
These quantised GGUF files are compatible with llama.cpp from August 21st 2023 onwards, as of commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9)
|
91 |
|
92 |
+
They are now also compatible with many third party UIs and libraries - please see the list at the top of the README.
|
|
|
|
|
93 |
|
94 |
## Explanation of quantisation methods
|
95 |
<details>
|
|
|
111 |
|
112 |
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
113 |
| ---- | ---- | ---- | ---- | ---- | ----- |
|
114 |
+
| [llama2-70b-oasst-sft-v10.Q6_K.gguf-split-b](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q6_K.gguf-split-b) | Q6_K | 6 | 19.89 GB| 22.39 GB | very large, extremely low quality loss |
|
115 |
+
| [llama2-70b-oasst-sft-v10.Q2_K.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q2_K.gguf) | Q2_K | 2 | 29.28 GB| 31.78 GB | smallest, significant quality loss - not recommended for most purposes |
|
116 |
+
| [llama2-70b-oasst-sft-v10.Q3_K_S.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q3_K_S.gguf) | Q3_K_S | 3 | 29.92 GB| 32.42 GB | very small, high quality loss |
|
117 |
+
| [llama2-70b-oasst-sft-v10.Q3_K_M.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q3_K_M.gguf) | Q3_K_M | 3 | 33.19 GB| 35.69 GB | very small, high quality loss |
|
118 |
+
| [llama2-70b-oasst-sft-v10.Q3_K_L.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q3_K_L.gguf) | Q3_K_L | 3 | 36.15 GB| 38.65 GB | small, substantial quality loss |
|
119 |
+
| [llama2-70b-oasst-sft-v10.Q8_0.gguf-split-b](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q8_0.gguf-split-b) | Q8_0 | 8 | 36.59 GB| 39.09 GB | very large, extremely low quality loss - not recommended |
|
120 |
+
| [llama2-70b-oasst-sft-v10.Q6_K.gguf-split-a](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q6_K.gguf-split-a) | Q6_K | 6 | 36.70 GB| 39.20 GB | very large, extremely low quality loss |
|
121 |
+
| [llama2-70b-oasst-sft-v10.Q8_0.gguf-split-a](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q8_0.gguf-split-a) | Q8_0 | 8 | 36.70 GB| 39.20 GB | very large, extremely low quality loss - not recommended |
|
122 |
+
| [llama2-70b-oasst-sft-v10.Q4_0.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q4_0.gguf) | Q4_0 | 4 | 38.87 GB| 41.37 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
123 |
+
| [llama2-70b-oasst-sft-v10.Q4_K_S.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q4_K_S.gguf) | Q4_K_S | 4 | 39.08 GB| 41.58 GB | small, greater quality loss |
|
124 |
+
| [llama2-70b-oasst-sft-v10.Q4_K_M.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q4_K_M.gguf) | Q4_K_M | 4 | 41.42 GB| 43.92 GB | medium, balanced quality - recommended |
|
125 |
+
| [llama2-70b-oasst-sft-v10.Q5_0.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q5_0.gguf) | Q5_0 | 5 | 47.46 GB| 49.96 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
126 |
+
| [llama2-70b-oasst-sft-v10.Q5_K_S.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q5_K_S.gguf) | Q5_K_S | 5 | 47.46 GB| 49.96 GB | large, low quality loss - recommended |
|
127 |
+
| [llama2-70b-oasst-sft-v10.Q5_K_M.gguf](https://huggingface.co/TheBloke/Llama2-70B-OASST-SFT-v10-GGUF/blob/main/llama2-70b-oasst-sft-v10.Q5_K_M.gguf) | Q5_K_M | 5 | 48.76 GB| 51.26 GB | large, very low quality loss - recommended |
|
128 |
+
| llama2-70b-oasst-sft-v10.Q6_K.gguf | Q6_K | 6 | 56.59 GB| 59.09 GB | very large, extremely low quality loss |
|
129 |
+
| llama2-70b-oasst-sft-v10.Q8_0.gguf | Q8_0 | 8 | 73.29 GB| 75.79 GB | very large, extremely low quality loss - not recommended |
|
130 |
|
131 |
**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
132 |
|
|
|
164 |
```
|
165 |
|
166 |
</details>
|
|
|
167 |
<!-- README_GGUF.md-provided-files end -->
|
168 |
|
169 |
<!-- README_GGUF.md-how-to-run start -->
|
170 |
+
## Example `llama.cpp` command
|
171 |
|
172 |
Make sure you are using `llama.cpp` from commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9) or later.
|
173 |
|
174 |
+
For compatibility with older versions of llama.cpp, or for any third-party libraries or clients that haven't yet updated for GGUF, please use GGML files instead.
|
175 |
|
176 |
```
|
177 |
+
./main -t 10 -ngl 32 -m llama2-70b-oasst-sft-v10.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant"
|
178 |
```
|
179 |
+
Change `-t 10` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`. If offloading all layers to GPU, set `-t 1`.
|
180 |
|
181 |
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
182 |
|
|
|
189 |
## How to run in `text-generation-webui`
|
190 |
|
191 |
Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
|
192 |
+
|
193 |
+
## How to run from Python code
|
194 |
+
|
195 |
+
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.
|
196 |
+
|
197 |
+
### How to load this model from Python using ctransformers
|
198 |
+
|
199 |
+
#### First install the package
|
200 |
+
|
201 |
+
```bash
|
202 |
+
# Base ctransformers with no GPU acceleration
|
203 |
+
pip install ctransformers>=0.2.24
|
204 |
+
# Or with CUDA GPU acceleration
|
205 |
+
pip install ctransformers[cuda]>=0.2.24
|
206 |
+
# Or with ROCm GPU acceleration
|
207 |
+
CT_HIPBLAS=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
|
208 |
+
# Or with Metal GPU acceleration for macOS systems
|
209 |
+
CT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
|
210 |
+
```
|
211 |
+
|
212 |
+
#### Simple example code to load one of these GGUF models
|
213 |
+
|
214 |
+
```python
|
215 |
+
from ctransformers import AutoModelForCausalLM
|
216 |
+
|
217 |
+
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
218 |
+
llm = AutoModelForCausalLM.from_pretrained("TheBloke/Llama2-70B-OASST-SFT-v10-GGUF", model_file="llama2-70b-oasst-sft-v10.q4_K_M.gguf", model_type="llama", gpu_layers=50)
|
219 |
+
|
220 |
+
print(llm("AI is going to"))
|
221 |
+
```
|
222 |
+
|
223 |
+
## How to use with LangChain
|
224 |
+
|
225 |
+
Here's guides on using llama-cpp-python or ctransformers with LangChain:
|
226 |
+
|
227 |
+
* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
|
228 |
+
* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
|
229 |
+
|
230 |
<!-- README_GGUF.md-how-to-run end -->
|
231 |
|
232 |
<!-- footer start -->
|
|
|
252 |
|
253 |
**Special thanks to**: Aemon Algiz.
|
254 |
|
255 |
+
**Patreon special mentions**: Russ Johnson, J, alfie_i, Alex, NimbleBox.ai, Chadd, Mandus, Nikolai Manek, Ken Nordquist, ya boyyy, Illia Dulskyi, Viktor Bowallius, vamX, Iucharbius, zynix, Magnesian, Clay Pascal, Pierre Kircher, Enrico Ros, Tony Hughes, Elle, Andrey, knownsqashed, Deep Realms, Jerry Meng, Lone Striker, Derek Yates, Pyrater, Mesiah Bishop, James Bentley, Femi Adebogun, Brandon Frisco, SuperWojo, Alps Aficionado, Michael Dempsey, Vitor Caleffi, Will Dee, Edmond Seymore, usrbinkat, LangChain4j, Kacper Wikieł, Luke Pendergrass, John Detwiler, theTransient, Nathan LeClaire, Tiffany J. Kim, biorpg, Eugene Pentland, Stanislav Ovsiannikov, Fred von Graf, terasurfer, Kalila, Dan Guido, Nitin Borwankar, 阿明, Ai Maven, John Villwock, Gabriel Puliatti, Stephen Murray, Asp the Wyvern, danny, Chris Smitley, ReadyPlayerEmma, S_X, Daniel P. Andersen, Olakabola, Jeffrey Morgan, Imad Khwaja, Caitlyn Gatomon, webtim, Alicia Loh, Trenton Dambrowitz, Swaroop Kallakuri, Erik Bjäreholt, Leonard Tan, Spiking Neurons AB, Luke @flexchar, Ajan Kanaga, Thomas Belote, Deo Leter, RoA, Willem Michiel, transmissions 11, subjectnull, Matthew Berman, Joseph William Delisle, David Ziegler, Michael Davis, Johann-Peter Hartmann, Talal Aujan, senxiiz, Artur Olbinski, Rainer Wilmers, Spencer Kim, Fen Risland, Cap'n Zoog, Rishabh Srivastava, Michael Levine, Geoffrey Montalvo, Sean Connelly, Alexandros Triantafyllidis, Pieter, Gabriel Tamborski, Sam, Subspace Studios, Junyu Yang, Pedro Madruga, Vadim, Cory Kujawski, K, Raven Klaugh, Randy H, Mano Prime, Sebastain Graf, Space Cruiser
|
256 |
|
257 |
|
258 |
Thank you to all my generous patrons and donaters!
|
|
|
266 |
|
267 |
# Open-Assistant Llama2 70B SFT v10
|
268 |
|
269 |
+
This model is an Open-Assistant fine-tuning of Meta's [Llama2 70B](https://huggingface.co/meta-llama/Llama-2-70b) LLM.
|
270 |
It was fine-tuned in two stages, first on a mix of synthetic instrunctions and coding tasks and then in a "polishing" stage
|
271 |
on the best human demonstrations collected at [open-assistant.io](https://open-assistant.io/) up to July 23, 2023 (see [Configuration Details](#configuration-details) below).
|
272 |
|
|
|
277 |
- **Language:** English (and limited capabilities in German, Spanish, French, Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish)
|
278 |
- **Weights & Biases training logs:** [Stage 1](https://wandb.ai/open-assistant/public-sft/runs/run45_oasst_pre10_llama2_70b) (1 epoch pretrain-mix, 12k steps), [Stage 2](https://wandb.ai/open-assistant/public-sft/runs/run46_oasst_sft10_llama2_70b) (3 epochs oasst top-1, 519 steps)
|
279 |
- **Demo:** [Continuations for 250 random prompts (TGI, 4bit nf4 quantization)](https://open-assistant.github.io/oasst-model-eval/?f=https%3A%2F%2Fraw.githubusercontent.com%2FOpen-Assistant%2Foasst-model-eval%2Fmain%2Fsampling_reports%2Foasst-sft%2F2023-08-22_OpenAssistant_llama2-70b-oasst-sft-v10_sampling_noprefix2_nf4.json%0A)
|
280 |
+
- **Evaluation** [FastEval-OpenAssistant Overview](https://tju01.github.io/FastEval-OpenAssistant/) (using [FastEval](https://github.com/FastEval/FastEval) & [vLLM](https://github.com/vllm-project/vllm))
|
281 |
- **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)
|
282 |
- **Contact:** [Open-Assistant Discord](https://ykilcher.com/open-assistant-discord)
|
283 |
|
|
|
311 |
(...)
|
312 |
```
|
313 |
|
314 |
+
The model was partly trained with orca system messages.
|
315 |
For inference we recommend to use the official [Llama2 system message](https://github.com/facebookresearch/llama/blob/ea9f33d6d3ea8ed7d560d270986407fd6c2e52b7/example_chat_completion.py#L57-L61):
|
316 |
```
|
317 |
<|im_start|>system
|
|
|
336 |
|
337 |
## Ethical Considerations and Limitations
|
338 |
|
339 |
+
Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios.
|
340 |
For these reasons, as with all LLMs, the potential outputs of llama2-70b-oasst-sft-v10 cannot be predicted
|
341 |
in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses
|
342 |
to user prompts. Therefore, before deploying any applications of llama2-70b-oasst-sft-v10, developers should
|
|
|
344 |
|
345 |
Please see Meta's [Responsible Use Guide](https://ai.meta.com/llama/responsible-use-guide/).
|
346 |
|
|
|
347 |
|
348 |
+
## Inference via TGI
|
349 |
+
|
350 |
+
An early version of this model had an embedding count of 32,007 which was incompatible to sharding with [TGI](https://github.com/huggingface/text-generation-inference).
|
351 |
+
In the current version the embeddings and the lm_head weights have been padded to a multiple of 128 (by replicating the emembeddings of the unk-token (id: 0)).
|
352 |
+
Sharded inference with TGI should now work as expected.
|
353 |
+
|
354 |
|
355 |
## Configuration Details
|
356 |
|