Upload README.md
Browse files
README.md
CHANGED
@@ -41,7 +41,7 @@ This repo contains GGUF format model files for [ICBU-NPU's FashionGPT 70B V1.1](
|
|
41 |
<!-- README_GGUF.md-about-gguf start -->
|
42 |
### About GGUF
|
43 |
|
44 |
-
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.
|
45 |
|
46 |
Here is an incomplate list of clients and libraries that are known to support GGUF:
|
47 |
|
@@ -79,7 +79,7 @@ Here is an incomplate list of clients and libraries that are known to support GG
|
|
79 |
<!-- compatibility_gguf start -->
|
80 |
## Compatibility
|
81 |
|
82 |
-
These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [
|
83 |
|
84 |
They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
|
85 |
|
@@ -166,7 +166,7 @@ The following clients/libraries will automatically download models for you, prov
|
|
166 |
|
167 |
### In `text-generation-webui`
|
168 |
|
169 |
-
Under Download Model, you can enter the model repo: TheBloke/FashionGPT-70B-V1.1-GGUF and below it, a specific filename to download, such as: fashiongpt-70b-v1.1.
|
170 |
|
171 |
Then click Download.
|
172 |
|
@@ -175,13 +175,13 @@ Then click Download.
|
|
175 |
I recommend using the `huggingface-hub` Python library:
|
176 |
|
177 |
```shell
|
178 |
-
pip3 install huggingface-hub
|
179 |
```
|
180 |
|
181 |
Then you can download any individual model file to the current directory, at high speed, with a command like this:
|
182 |
|
183 |
```shell
|
184 |
-
huggingface-cli download TheBloke/FashionGPT-70B-V1.1-GGUF fashiongpt-70b-v1.1.
|
185 |
```
|
186 |
|
187 |
<details>
|
@@ -204,20 +204,20 @@ pip3 install hf_transfer
|
|
204 |
And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
|
205 |
|
206 |
```shell
|
207 |
-
|
208 |
```
|
209 |
|
210 |
-
Windows
|
211 |
</details>
|
212 |
<!-- README_GGUF.md-how-to-download end -->
|
213 |
|
214 |
<!-- README_GGUF.md-how-to-run start -->
|
215 |
## Example `llama.cpp` command
|
216 |
|
217 |
-
Make sure you are using `llama.cpp` from commit [
|
218 |
|
219 |
```shell
|
220 |
-
./main -ngl 32 -m fashiongpt-70b-v1.1.
|
221 |
```
|
222 |
|
223 |
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
@@ -236,35 +236,37 @@ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://git
|
|
236 |
|
237 |
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.
|
238 |
|
239 |
-
### How to load this model
|
240 |
|
241 |
#### First install the package
|
242 |
|
243 |
-
|
|
|
|
|
244 |
# Base ctransformers with no GPU acceleration
|
245 |
-
pip install ctransformers
|
246 |
# Or with CUDA GPU acceleration
|
247 |
-
pip install ctransformers[cuda]
|
248 |
-
# Or with ROCm GPU acceleration
|
249 |
-
CT_HIPBLAS=1 pip install ctransformers
|
250 |
-
# Or with Metal GPU acceleration for macOS systems
|
251 |
-
CT_METAL=1 pip install ctransformers
|
252 |
```
|
253 |
|
254 |
-
#### Simple example code
|
255 |
|
256 |
```python
|
257 |
from ctransformers import AutoModelForCausalLM
|
258 |
|
259 |
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
260 |
-
llm = AutoModelForCausalLM.from_pretrained("TheBloke/FashionGPT-70B-V1.1-GGUF", model_file="fashiongpt-70b-v1.1.
|
261 |
|
262 |
print(llm("AI is going to"))
|
263 |
```
|
264 |
|
265 |
## How to use with LangChain
|
266 |
|
267 |
-
Here
|
268 |
|
269 |
* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
|
270 |
* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
|
|
|
41 |
<!-- README_GGUF.md-about-gguf start -->
|
42 |
### About GGUF
|
43 |
|
44 |
+
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.
|
45 |
|
46 |
Here is an incomplate list of clients and libraries that are known to support GGUF:
|
47 |
|
|
|
79 |
<!-- compatibility_gguf start -->
|
80 |
## Compatibility
|
81 |
|
82 |
+
These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
|
83 |
|
84 |
They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
|
85 |
|
|
|
166 |
|
167 |
### In `text-generation-webui`
|
168 |
|
169 |
+
Under Download Model, you can enter the model repo: TheBloke/FashionGPT-70B-V1.1-GGUF and below it, a specific filename to download, such as: fashiongpt-70b-v1.1.Q4_K_M.gguf.
|
170 |
|
171 |
Then click Download.
|
172 |
|
|
|
175 |
I recommend using the `huggingface-hub` Python library:
|
176 |
|
177 |
```shell
|
178 |
+
pip3 install huggingface-hub
|
179 |
```
|
180 |
|
181 |
Then you can download any individual model file to the current directory, at high speed, with a command like this:
|
182 |
|
183 |
```shell
|
184 |
+
huggingface-cli download TheBloke/FashionGPT-70B-V1.1-GGUF fashiongpt-70b-v1.1.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
|
185 |
```
|
186 |
|
187 |
<details>
|
|
|
204 |
And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
|
205 |
|
206 |
```shell
|
207 |
+
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/FashionGPT-70B-V1.1-GGUF fashiongpt-70b-v1.1.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
|
208 |
```
|
209 |
|
210 |
+
Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
|
211 |
</details>
|
212 |
<!-- README_GGUF.md-how-to-download end -->
|
213 |
|
214 |
<!-- README_GGUF.md-how-to-run start -->
|
215 |
## Example `llama.cpp` command
|
216 |
|
217 |
+
Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
|
218 |
|
219 |
```shell
|
220 |
+
./main -ngl 32 -m fashiongpt-70b-v1.1.Q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "{prompt}"
|
221 |
```
|
222 |
|
223 |
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
|
|
236 |
|
237 |
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.
|
238 |
|
239 |
+
### How to load this model in Python code, using ctransformers
|
240 |
|
241 |
#### First install the package
|
242 |
|
243 |
+
Run one of the following commands, according to your system:
|
244 |
+
|
245 |
+
```shell
|
246 |
# Base ctransformers with no GPU acceleration
|
247 |
+
pip install ctransformers
|
248 |
# Or with CUDA GPU acceleration
|
249 |
+
pip install ctransformers[cuda]
|
250 |
+
# Or with AMD ROCm GPU acceleration (Linux only)
|
251 |
+
CT_HIPBLAS=1 pip install ctransformers --no-binary ctransformers
|
252 |
+
# Or with Metal GPU acceleration for macOS systems only
|
253 |
+
CT_METAL=1 pip install ctransformers --no-binary ctransformers
|
254 |
```
|
255 |
|
256 |
+
#### Simple ctransformers example code
|
257 |
|
258 |
```python
|
259 |
from ctransformers import AutoModelForCausalLM
|
260 |
|
261 |
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
262 |
+
llm = AutoModelForCausalLM.from_pretrained("TheBloke/FashionGPT-70B-V1.1-GGUF", model_file="fashiongpt-70b-v1.1.Q4_K_M.gguf", model_type="llama", gpu_layers=50)
|
263 |
|
264 |
print(llm("AI is going to"))
|
265 |
```
|
266 |
|
267 |
## How to use with LangChain
|
268 |
|
269 |
+
Here are guides on using llama-cpp-python and ctransformers with LangChain:
|
270 |
|
271 |
* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
|
272 |
* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
|