GGUF
GGUF
andrijdavid commited on
Commit
f89736f
β€’
1 Parent(s): 8d81621

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,30 @@ 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-00002.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Q3_K_L/Q3_K_L-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Q3_K_M/Q3_K_M-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Q3_K_M/Q3_K_M-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Q3_K_S/Q3_K_S-00001-of-00001.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Q4_0/Q4_0-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Q4_0/Q4_0-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Q4_1/Q4_1-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Q4_1/Q4_1-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Q4_K_M/Q4_K_M-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Q4_K_M/Q4_K_M-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Q4_K_S/Q4_K_S-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Q4_K_S/Q4_K_S-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Q5_0/Q5_0-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Q5_0/Q5_0-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Q5_1/Q5_1-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Q5_1/Q5_1-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Q5_K_M/Q5_K_M-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Q5_K_M/Q5_K_M-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Q5_K_S/Q5_K_S-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Q5_K_S/Q5_K_S-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Q6_K/Q6_K-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
59
+ Q6_K/Q6_K-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
60
+ Q8_0/Q8_0-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
61
+ Q8_0/Q8_0-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
62
+ Q8_0/Q8_0-00003-of-00003.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:6d814147c920df567adfddd403a1d459101c01422d64198faadc3280911762f4
3
+ size 25462446432
Q3_K_L/Q3_K_L-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3b649aa550b57c735b48b643a966499afbc79636672226d1a1a870ac87eccc1
3
+ size 32189280384
Q3_K_L/Q3_K_L-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58418f24c984fe6e951b87c40189613d756a9483e6f13aeb41fc5800bf1a60e4
3
+ size 3958566048
Q3_K_M/Q3_K_M-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a73ba7019e410e5556930118a8b4a992f930ae84c92621f8c7d81f51ff0c042
3
+ size 32107494688
Q3_K_M/Q3_K_M-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ba411c9bccd776c2619c0eed602af29b4cc2235a951bb9aa8ab9d96d8d62958
3
+ size 1167253504
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:e78bd4006b2bcc5041a7282000090c0a88666292f90b8d09212985df4b4b887a
3
+ size 29919304864
Q4_0/Q4_0-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a75bc6ac2c3538f142473892a4032055cece918168ff711b24ccfc4eada07ba
3
+ size 32135162368
Q4_0/Q4_0-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:295715b3ce0ab4d9d70a56b60ce1f310a5c78d8db76b14afbdf9b43f8fbc5a4d
3
+ size 6737098592
Q4_1/Q4_1-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fe4fe5f779357c6bef4aed5c457607292b5ad6a30299fb9e0677b586efde566
3
+ size 32108092832
Q4_1/Q4_1-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85dd8ec51277ec7bb97e64f8c8ea7d6d5d694916d45e49f131ce078351db8fec
3
+ size 11058742752
Q4_K_M/Q4_K_M-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:495ca77c9175a60aac4000c0863a3e3ef5d12d52ca559a4f96ff65b5ac80f4f9
3
+ size 32205152896
Q4_K_M/Q4_K_M-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcbf24731581f55ac730c806a4c1c3d1dcfc87f1938b53cafeb260afe14741fd
3
+ size 9217769184
Q4_K_S/Q4_K_S-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bb8b1b28b0c2dc8d4e605655436d17ad6b9fa84050142f1969c241555bcb901
3
+ size 32148727840
Q4_K_S/Q4_K_S-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6eba8e0db340510e7ea11a2493dfed94906f741de3145735fad250ad8f14465e
3
+ size 7101020480
Q5_0/Q5_0-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc2f9c693e628e79bc53943b654ac25e1dde17c2ff7a48501e571aea4d542433
3
+ size 32053892256
Q5_0/Q5_0-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e942ec946fc9513b8626a94254222713f2cace04525fd67f260a2fa974ae339d
3
+ size 15407517888
Q5_1/Q5_1-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9e842eedba5a337cf91ee91c40d8a70b582312225fbafd71e0255ee803e3e50
3
+ size 32110840960
Q5_1/Q5_1-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:374ba2624ef88942e5750a0247017ba91b7213aeb7ce45fe998ae5d7141b0ebd
3
+ size 19645143776
Q5_K_M/Q5_K_M-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:829912b6054a20d3fa4144868385a592c64593f7a9c2ba3d28efb39d12e529d5
3
+ size 32194859584
Q5_K_M/Q5_K_M-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60f639f13160f1adb029f0d17045094cd93077992283de2ec77012c79f8707be
3
+ size 16558920480
Q5_K_S/Q5_K_S-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20f8d510d245956855d7ca029869b0f5639e383df721cb1f5da0251de401ebe8
3
+ size 32053892256
Q5_K_S/Q5_K_S-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4cff97ba82ae9f6f901709392182c30a63058291a9709254b991dc554d9b13ce
3
+ size 15407517888
Q6_K/Q6_K-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38e12e2a3373cbab85613244a9fdf83855257add8e9be04594a15191ac11186d
3
+ size 32120358432
Q6_K/Q6_K-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7089efed3875038cbb9f25825f4a860d5d2319e12d7c42955ce10f9b73bd8c99
3
+ size 24467022720
Q8_0/Q8_0-00001-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4923dae60aa021f0d304762ce7ddcad0497ea198c3e113f2de14c54a0379dc7a
3
+ size 32189741152
Q8_0/Q8_0-00002-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd1a9f3a41cc6c184ce4ddf00f865263fea13c90528c369bed5559aa80446de2
3
+ size 32142215808
Q8_0/Q8_0-00003-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d227f084e63b1c1c8ca09b7da4206d97c1ebaee5f866ab7fe1b73d2368a3b6c4
3
+ size 8960390848
README.md ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ ---
4
+ license: llama2
5
+ tags:
6
+ - GGUF
7
+ quantized_by: andrijdavid
8
+ ---
9
+ # WizardLM-70B-V1.0-GGUF
10
+ - Original model: [WizardLM-70B-V1.0](https://huggingface.co/WizardLMTeam/WizardLM-70B-V1.0)
11
+
12
+ <!-- description start -->
13
+ ## Description
14
+
15
+ This repo contains GGUF format model files for [WizardLM-70B-V1.0](https://huggingface.co/WizardLMTeam/WizardLM-70B-V1.0).
16
+
17
+ <!-- description end -->
18
+ <!-- README_GGUF.md-about-gguf start -->
19
+ ### About GGUF
20
+ 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.
21
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
22
+ * [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.
23
+ * [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.
24
+ * [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​
25
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), A comprehensive web UI offering GPU acceleration across all platforms and architectures, particularly renowned for storytelling.
26
+ * [GPT4All](https://gpt4all.io), This is a free and open source GUI that runs locally, supporting Windows, Linux, and macOS with full GPU acceleration.
27
+ * [LM Studio](https://lmstudio.ai/) An intuitive and powerful local GUI for Windows and macOS (Silicon), featuring GPU acceleration.
28
+ * [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.
29
+ * [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.
30
+ * [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.
31
+ * [candle](https://github.com/huggingface/candle), A Rust-based ML framework focusing on performance, including GPU support, and designed for ease of use.
32
+ * [ctransformers](https://github.com/marella/ctransformers), A Python library featuring GPU acceleration, LangChain support, and an OpenAI-compatible AI server.
33
+ * [localGPT](https://github.com/PromtEngineer/localGPT) An open-source initiative enabling private conversations with documents.
34
+ <!-- README_GGUF.md-about-gguf end -->
35
+
36
+ <!-- compatibility_gguf start -->
37
+ ## Explanation of quantisation methods
38
+ <details>
39
+ <summary>Click to see details</summary>
40
+ The new methods available are:
41
+
42
+ * 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)
43
+ * 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.
44
+ * 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.
45
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
46
+ * 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.
47
+ </details>
48
+ <!-- compatibility_gguf end -->
49
+
50
+ <!-- README_GGUF.md-how-to-download start -->
51
+ ## How to download GGUF files
52
+
53
+ **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.
54
+
55
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
56
+
57
+ * LM Studio
58
+ * LoLLMS Web UI
59
+ * Faraday.dev
60
+
61
+ ### In `text-generation-webui`
62
+
63
+ Under Download Model, you can enter the model repo: LiteLLMs/WizardLM-70B-V1.0-GGUF and below it, a specific filename to download, such as: Q4_0/Q4_0-00001-of-00009.gguf.
64
+
65
+ Then click Download.
66
+
67
+ ### On the command line, including multiple files at once
68
+
69
+ I recommend using the `huggingface-hub` Python library:
70
+
71
+ ```shell
72
+ pip3 install huggingface-hub
73
+ ```
74
+
75
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
76
+
77
+ ```shell
78
+ huggingface-cli download LiteLLMs/WizardLM-70B-V1.0-GGUF Q4_0/Q4_0-00001-of-00009.gguf --local-dir . --local-dir-use-symlinks False
79
+ ```
80
+
81
+ <details>
82
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
83
+
84
+ You can also download multiple files at once with a pattern:
85
+
86
+ ```shell
87
+ huggingface-cli download LiteLLMs/WizardLM-70B-V1.0-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
88
+ ```
89
+
90
+ 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).
91
+
92
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
93
+
94
+ ```shell
95
+ pip3 install huggingface_hub[hf_transfer]
96
+ ```
97
+
98
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
99
+
100
+ ```shell
101
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download LiteLLMs/WizardLM-70B-V1.0-GGUF Q4_0/Q4_0-00001-of-00009.gguf --local-dir . --local-dir-use-symlinks False
102
+ ```
103
+
104
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
105
+ </details>
106
+ <!-- README_GGUF.md-how-to-download end -->
107
+ <!-- README_GGUF.md-how-to-run start -->
108
+ ## Example `llama.cpp` command
109
+
110
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
111
+
112
+ ```shell
113
+ ./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>"
114
+ ```
115
+
116
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
117
+
118
+ 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.
119
+
120
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
121
+
122
+ 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)
123
+
124
+ ## How to run in `text-generation-webui`
125
+
126
+ 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).
127
+
128
+ ## How to run from Python code
129
+
130
+ 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.
131
+
132
+ ### How to load this model in Python code, using llama-cpp-python
133
+
134
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
135
+
136
+ #### First install the package
137
+
138
+ Run one of the following commands, according to your system:
139
+
140
+ ```shell
141
+ # Base ctransformers with no GPU acceleration
142
+ pip install llama-cpp-python
143
+ # With NVidia CUDA acceleration
144
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
145
+ # Or with OpenBLAS acceleration
146
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
147
+ # Or with CLBLast acceleration
148
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
149
+ # Or with AMD ROCm GPU acceleration (Linux only)
150
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
151
+ # Or with Metal GPU acceleration for macOS systems only
152
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
153
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
154
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
155
+ pip install llama-cpp-python
156
+ ```
157
+
158
+ #### Simple llama-cpp-python example code
159
+
160
+ ```python
161
+ from llama_cpp import Llama
162
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
163
+ llm = Llama(
164
+ model_path="./Q4_0/Q4_0-00001-of-00009.gguf", # Download the model file first
165
+ n_ctx=32768, # The max sequence length to use - note that longer sequence lengths require much more resources
166
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
167
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
168
+ )
169
+ # Simple inference example
170
+ output = llm(
171
+ "<PROMPT>", # Prompt
172
+ max_tokens=512, # Generate up to 512 tokens
173
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
174
+ echo=True # Whether to echo the prompt
175
+ )
176
+ # Chat Completion API
177
+ 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
178
+ llm.create_chat_completion(
179
+ messages = [
180
+ {"role": "system", "content": "You are a story writing assistant."},
181
+ {
182
+ "role": "user",
183
+ "content": "Write a story about llamas."
184
+ }
185
+ ]
186
+ )
187
+ ```
188
+
189
+ ## How to use with LangChain
190
+
191
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
192
+
193
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
194
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
195
+
196
+ <!-- README_GGUF.md-how-to-run end -->
197
+
198
+ <!-- footer end -->
199
+
200
+ <!-- original-model-card start -->
201
+ # Original model card: WizardLM-70B-V1.0
202
+
203
+
204
+
205
+ ## WizardLM: Empowering Large Pre-Trained Language Models to Follow Complex Instructions
206
+
207
+
208
+ <p style="font-size:28px;" align="center">
209
+ 🏠 <a href="https://wizardlm.github.io/" target="_blank">Home Page</a> </p>
210
+ <p align="center">
211
+ πŸ€— <a href="https://huggingface.co/WizardLM" target="_blank">HF Repo</a> β€’πŸ± <a href="https://github.com/nlpxucan/WizardLM" target="_blank">Github Repo</a> β€’ 🐦 <a href="https://twitter.com/WizardLM_AI" target="_blank">Twitter</a> β€’ πŸ“ƒ <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> β€’ πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> β€’ πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a> <br>
212
+ </p>
213
+ <p align="center">
214
+ πŸ‘‹ Join our <a href="https://discord.gg/VZjjHtWrKs" target="_blank">Discord</a>
215
+ </p>
216
+
217
+ ## Unofficial Video Introductions
218
+ Thanks to the enthusiastic friends, their video introductions are more lively and interesting.
219
+ 1. [NEW WizardLM 70b πŸ”₯ Giant Model...Insane Performance](https://www.youtube.com/watch?v=WdpiIXrO4_o)
220
+ 2. [GET WizardLM NOW! 7B LLM KING That Can Beat ChatGPT! I'm IMPRESSED!](https://www.youtube.com/watch?v=SaJ8wyKMBds)
221
+ 3. [WizardLM: Enhancing Large Language Models to Follow Complex Instructions](https://www.youtube.com/watch?v=I6sER-qivYk)
222
+ 4. [WizardCoder AI Is The NEW ChatGPT's Coding TWIN!](https://www.youtube.com/watch?v=XjsyHrmd3Xo)
223
+
224
+ ## News
225
+
226
+ - πŸ”₯πŸ”₯πŸ”₯[2023/08/26] We released **WizardCoder-Python-34B-V1.0** , which achieves the **73.2 pass@1** and surpasses **GPT4 (2023/03/15)**, **ChatGPT-3.5**, and **Claude2** on the [HumanEval Benchmarks](https://github.com/openai/human-eval). For more details, please refer to [WizardCoder](https://github.com/nlpxucan/WizardLM/tree/main/WizardCoder).
227
+ - [2023/06/16] We released **WizardCoder-15B-V1.0** , which surpasses **Claude-Plus (+6.8)**, **Bard (+15.3)** and **InstructCodeT5+ (+22.3)** on the [HumanEval Benchmarks](https://github.com/openai/human-eval). For more details, please refer to [WizardCoder](https://github.com/nlpxucan/WizardLM/tree/main/WizardCoder).
228
+
229
+ | Model | Checkpoint | Paper | HumanEval | MBPP | Demo | License |
230
+ | | | - | -- | -- | -- | -- |
231
+ | WizardMath-70B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardMath-70B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a> | **81.6** | **22.7** | [Demo](http://47.103.63.15:50083/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> |
232
+ | WizardMath-13B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardMath-13B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a> | **63.9** | **14.0** | [Demo](http://47.103.63.15:50082/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> |
233
+ | WizardMath-7B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardMath-7B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a> | **54.9** | **10.7** | [Demo](http://47.103.63.15:50080/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> |
234
+
235
+
236
+ <font size=4>
237
+
238
+ | <sup>Model</sup> | <sup>Checkpoint</sup> | <sup>Paper</sup> | <sup>MT-Bench</sup> | <sup>AlpacaEval</sup> | <sup>GSM8k</sup> | <sup>HumanEval</sup> | <sup>License</sup> |
239
+ | -- | | | -- | --- |
240
+ | <sup>**WizardLM-70B-V1.0**</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-70B-V1.0" target="_blank">HF Link</a> </sup> | <sup>πŸ“ƒ**Coming Soon**</sup> | <sup>**7.78**</sup> | <sup>**92.91%**</sup> | <sup>**77.6%**</sup> | <sup> **50.6 pass@1**</sup> | <sup> <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a></sup> |
241
+ | <sup>WizardLM-13B-V1.2</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.2" target="_blank">HF Link</a> </sup> | | <sup>7.06</sup> | <sup>89.17%</sup> | <sup>55.3%</sup> | <sup>36.6 pass@1</sup> | <sup> <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a></sup> |
242
+ | <sup>WizardLM-13B-V1.1</sup> | <sup> πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.1" target="_blank">HF Link</a> </sup> | | <sup>6.76</sup> | <sup>86.32%</sup> | | <sup>25.0 pass@1</sup> | <sup>Non-commercial</sup> |
243
+ | <sup>WizardLM-30B-V1.0</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-30B-V1.0" target="_blank">HF Link</a></sup> | | <sup>7.01</sup> | | | <sup>37.8 pass@1</sup> | <sup>Non-commercial</sup> |
244
+ | <sup>WizardLM-13B-V1.0</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.0" target="_blank">HF Link</a> </sup> | | <sup>6.35</sup> | <sup>75.31%</sup> | | <sup> 24.0 pass@1 </sup> | <sup>Non-commercial</sup> |
245
+ | <sup>WizardLM-7B-V1.0 </sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-7B-V1.0" target="_blank">HF Link</a> </sup> | <sup> πŸ“ƒ <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> </sup> | | | | <sup>19.1 pass@1 </sup> | <sup> Non-commercial</sup> |
246
+ </font>
247
+
248
+ - πŸ”₯πŸ”₯πŸ”₯ [08/09/2023] We released **WizardLM-70B-V1.0** model.
249
+
250
+ **Github Repo**: https://github.com/nlpxucan/WizardLM
251
+
252
+ **Twitter**: https://twitter.com/WizardLM_AI/status/1689270108747976704
253
+
254
+ **Discord**: https://discord.gg/bpmeZD7V
255
+
256
+
257
+
258
+ ❗<b>Note for model system prompts usage:</b>
259
+
260
+
261
+ <b>WizardLM</b> adopts the prompt format from <b>Vicuna</b> and supports **multi-turn** conversation. The prompt should be as following:
262
+
263
+ ```
264
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Hi ASSISTANT: Hello.</s>USER: Who are you? ASSISTANT: I am WizardLM.</s>......
265
+ ```
266
+
267
+ ## Inference WizardLM Demo Script
268
+
269
+ We provide the inference WizardLM demo code [here](https://github.com/nlpxucan/WizardLM/tree/main/demo).
270
+
271
+ Please cite the paper if you use the data or code from WizardLM.
272
+
273
+ ```
274
+ @article{xu2023wizardlm,
275
+ title={Wizardlm: Empowering large language models to follow complex instructions},
276
+ author={Xu, Can and Sun, Qingfeng and Zheng, Kai and Geng, Xiubo and Zhao, Pu and Feng, Jiazhan and Tao, Chongyang and Jiang, Daxin},
277
+ journal={arXiv preprint arXiv:2304.12244},
278
+ year={2023}
279
+ }
280
+ ```
281
+
282
+ ❗<b>To commen concern about dataset:</b>
283
+
284
+ Recently, there have been clear changes in the open-source policy and regulations of our overall organization's code, data, and models.
285
+
286
+
287
+ Despite this, we have still worked hard to obtain opening the weights of the model first, but the data involves stricter auditing and is in review with our legal team .
288
+
289
+ Our researchers have no authority to publicly release them without authorization.
290
+
291
+ Thank you for your understanding.
292
+
293
+ <!-- original-model-card end -->