SlyEcho commited on
Commit
40ed1bc
1 Parent(s): d0c5818
.gitattributes CHANGED
@@ -4,6 +4,7 @@
4
  *.bz2 filter=lfs diff=lfs merge=lfs -text
5
  *.ckpt filter=lfs diff=lfs merge=lfs -text
6
  *.ftz filter=lfs diff=lfs merge=lfs -text
 
7
  *.gz filter=lfs diff=lfs merge=lfs -text
8
  *.h5 filter=lfs diff=lfs merge=lfs -text
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
 
4
  *.bz2 filter=lfs diff=lfs merge=lfs -text
5
  *.ckpt filter=lfs diff=lfs merge=lfs -text
6
  *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gguf filter=lfs diff=lfs merge=lfs -text
8
  *.gz filter=lfs diff=lfs merge=lfs -text
9
  *.h5 filter=lfs diff=lfs merge=lfs -text
10
  *.joblib filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ llama.cpp*/
2
+ venv/
3
+ pytorch_model*.bin
4
+ *.sha
5
+ *.tar.gz
6
+ tokenizer.model
7
+ config.json
8
+ tokenizer_config.json
Makefile ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MODEL_NAME= open-llama-7b-v2
2
+ PYTHON?= python
3
+ LLAMA_BUILD= 1132
4
+ LLAMA_TAR= b$(LLAMA_BUILD).tar.gz
5
+ LLAMA_DIR= llama.cpp-b$(LLAMA_BUILD)
6
+ LLAMA_FLAGS=
7
+ HF_REPO= openlm-research/open_llama_7b_v2
8
+ HF_REF= main
9
+ HF_FILES= pytorch_model-00001-of-00002.bin \
10
+ pytorch_model-00002-of-00002.bin \
11
+ tokenizer.model \
12
+ config.json \
13
+ tokenizer_config.json
14
+ $(HF_FILES): SITE= https://huggingface.co/$(HF_REPO)/resolve/$(HF_REF)
15
+ $(LLAMA_TAR): SITE= https://github.com/ggerganov/llama.cpp/archive/refs/tags
16
+
17
+ QUANTS= f16 q4_0 q4_1 q5_0 q5_1 q8_0 \
18
+ q2_K \
19
+ q3_K_S q3_K_M q3_K_L \
20
+ q4_K_S q4_K_M \
21
+ q5_K_S q5_K_M \
22
+ q6_K
23
+
24
+ FILES= $(HF_FILES) $(LLAMA_TAR)
25
+ MODEL_FILES= $(foreach q,$(QUANTS),$(MODEL_NAME)-$(q).gguf)
26
+
27
+ .PHONY: all
28
+ all: $(MODEL_FILES) SHA256SUMS
29
+
30
+ $(FILES):
31
+ curl -L -o $@ --url $(SITE)/$@
32
+
33
+ $(LLAMA_DIR): | $(LLAMA_TAR)
34
+ tar -xf $(LLAMA_TAR)
35
+
36
+ $(LLAMA_DIR)/quantize: | $(LLAMA_DIR)
37
+ $(MAKE) -C $(LLAMA_DIR) $(LLAMA_FLAGS) quantize
38
+
39
+ venv:
40
+ $(PYTHON) -m venv venv
41
+ venv/bin/pip install -e $(LLAMA_DIR)/gguf-py
42
+ venv/bin/pip install -r $(LLAMA_DIR)/requirements.txt
43
+
44
+ $(MODEL_NAME)-f16.gguf: $(HF_FILES) | $(LLAMA_DIR) venv
45
+ venv/bin/python $(LLAMA_DIR)/convert.py --outtype f16 --outfile $@ .
46
+
47
+ $(MODEL_NAME)-q%.gguf: $(MODEL_NAME)-f16.gguf | $(LLAMA_DIR)/quantize
48
+ $(LLAMA_DIR)/quantize $< $@ q$*
49
+
50
+ %.sha: %
51
+ sha256sum $< > $@
52
+
53
+ SHA256SUMS: $(addsuffix .sha,$(MODEL_FILES))
54
+ cat $^ > $@
README.md CHANGED
@@ -1,3 +1,15 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+
5
+ # gguf versions of OpenLLaMa 7B v2
6
+
7
+ - Version: [version 2 final 1T tokens](https://github.com/openlm-research/open_llama#07072023)
8
+ - Project: [OpenLLaMA: An Open Reproduction of LLaMA](https://github.com/openlm-research/open_llama)
9
+ - Model: [openlm-research/open_llama_7b_v2](https://huggingface.co/openlm-research/open_llama_7b_v2)
10
+ - [llama.cpp](https://github.com/ggerganov/llama.cpp): build 1012 (6381d4e) or later
11
+ - [ggml version](https://huggingface.co/SlyEcho/open_llama_7b_v2_ggml)
12
+
13
+ ## Perplexity on wiki.test.406
14
+
15
+ Coming soon...
SHA256SUMS ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 79262501cdc3a688ae9f641e37f431d1844934ad28735eff1c6041e7bddc0d8d open-llama-7b-v2-f16.gguf
2
+ 87616025fcf417f857f631db89f0b15238e8d03a621cfc665ab632e8d5e4c789 open-llama-7b-v2-q4_0.gguf
3
+ 5a202ba97532d7da0a980b806c1d08b9721325e120842ebb10f2dfff5cf4cb85 open-llama-7b-v2-q4_1.gguf
4
+ 9e67e3ca4c34dfe342fe064e600908435b79a163fe17239709943b8b95cb2d07 open-llama-7b-v2-q5_0.gguf
5
+ a2b336edbc93e788a644c79f06565c932637839eb6f078db1726b982c8927962 open-llama-7b-v2-q5_1.gguf
6
+ 2aff8fcdff69e26595059ae9252f4cbcfde1e7a7dd246a16c22f1d93b5d65e10 open-llama-7b-v2-q8_0.gguf
7
+ 2c22e744d4aac99b85f9607363f4df58e77a89d372053367f900626d8ccfb99b open-llama-7b-v2-q2_K.gguf
8
+ 4d4b76064a6b6a7cc87eb2c335f4e5fe4489411a6e88558dbecf072b0331b56b open-llama-7b-v2-q3_K_S.gguf
9
+ 679b90fb5a54af0e08711279fc4c31d23c06d1b99ee408f03487379fa7901b1f open-llama-7b-v2-q3_K_M.gguf
10
+ da48217a3997587deffeadeb0a0c573669850bb4ea5b5a147a720b726a9bee5d open-llama-7b-v2-q3_K_L.gguf
11
+ cf15b3f86bd39ddb20e313129f699e7a6f5b7af90878cd573d5cabff66ca384b open-llama-7b-v2-q4_K_S.gguf
12
+ 5fe444cd2338b3c257ca6ca98c6385e9573989bb75042c5a09de4bf366340d0b open-llama-7b-v2-q4_K_M.gguf
13
+ 4385a7f4f60ab151a808fbba1da1e59963648fa2bc0e38ce1e635ea34c22c881 open-llama-7b-v2-q5_K_S.gguf
14
+ 9ca9d74646a1082ee042cd0d05bc12029b8e661fc12a8a651cbadc6fa342b601 open-llama-7b-v2-q5_K_M.gguf
15
+ 121553be75551e618757928dc45446efa8d8ea7048a0fff87143c6a1ebbc160e open-llama-7b-v2-q6_K.gguf
open-llama-7b-v2-f16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79262501cdc3a688ae9f641e37f431d1844934ad28735eff1c6041e7bddc0d8d
3
+ size 13478116576
open-llama-7b-v2-q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c22e744d4aac99b85f9607363f4df58e77a89d372053367f900626d8ccfb99b
3
+ size 2825952544
open-llama-7b-v2-q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da48217a3997587deffeadeb0a0c573669850bb4ea5b5a147a720b726a9bee5d
3
+ size 3597122848
open-llama-7b-v2-q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:679b90fb5a54af0e08711279fc4c31d23c06d1b99ee408f03487379fa7901b1f
3
+ size 3298016544
open-llama-7b-v2-q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d4b76064a6b6a7cc87eb2c335f4e5fe4489411a6e88558dbecf072b0331b56b
3
+ size 2948316448
open-llama-7b-v2-q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87616025fcf417f857f631db89f0b15238e8d03a621cfc665ab632e8d5e4c789
3
+ size 3825818912
open-llama-7b-v2-q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a202ba97532d7da0a980b806c1d08b9721325e120842ebb10f2dfff5cf4cb85
3
+ size 4238761248
open-llama-7b-v2-q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fe444cd2338b3c257ca6ca98c6385e9573989bb75042c5a09de4bf366340d0b
3
+ size 4081016096
open-llama-7b-v2-q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf15b3f86bd39ddb20e313129f699e7a6f5b7af90878cd573d5cabff66ca384b
3
+ size 3856751904
open-llama-7b-v2-q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e67e3ca4c34dfe342fe064e600908435b79a163fe17239709943b8b95cb2d07
3
+ size 4651703584
open-llama-7b-v2-q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2b336edbc93e788a644c79f06565c932637839eb6f078db1726b982c8927962
3
+ size 5064645920
open-llama-7b-v2-q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ca9d74646a1082ee042cd0d05bc12029b8e661fc12a8a651cbadc6fa342b601
3
+ size 4783168800
open-llama-7b-v2-q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4385a7f4f60ab151a808fbba1da1e59963648fa2bc0e38ce1e635ea34c22c881
3
+ size 4651703584
open-llama-7b-v2-q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:121553be75551e618757928dc45446efa8d8ea7048a0fff87143c6a1ebbc160e
3
+ size 5529206048
open-llama-7b-v2-q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aff8fcdff69e26595059ae9252f4cbcfde1e7a7dd246a16c22f1d93b5d65e10
3
+ size 7161101600