Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- CodeLlama-7b-hf-Q2_K.gguf +3 -0
- CodeLlama-7b-hf-Q3_K_L.gguf +3 -0
- CodeLlama-7b-hf-Q3_K_M.gguf +3 -0
- CodeLlama-7b-hf-Q3_K_S.gguf +3 -0
- CodeLlama-7b-hf-Q4_0.gguf +3 -0
- CodeLlama-7b-hf-Q4_K_M.gguf +3 -0
- CodeLlama-7b-hf-Q4_K_S.gguf +3 -0
- CodeLlama-7b-hf-Q5_0.gguf +3 -0
- CodeLlama-7b-hf-Q5_K_M.gguf +3 -0
- CodeLlama-7b-hf-Q5_K_S.gguf +3 -0
- CodeLlama-7b-hf-Q6_K.gguf +3 -0
- CodeLlama-7b-hf-Q8_0.gguf +3 -0
- README.md +74 -0
.gitattributes
CHANGED
@@ -33,3 +33,15 @@ 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 |
+
CodeLlama-7b-hf-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
CodeLlama-7b-hf-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
CodeLlama-7b-hf-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
CodeLlama-7b-hf-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
CodeLlama-7b-hf-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
CodeLlama-7b-hf-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
CodeLlama-7b-hf-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
CodeLlama-7b-hf-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
CodeLlama-7b-hf-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
CodeLlama-7b-hf-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
CodeLlama-7b-hf-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
CodeLlama-7b-hf-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
CodeLlama-7b-hf-Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4342d8e22216b4e59f71ae5739ca9696055a593278ee732be7f9d0115c0cc5ee
|
3 |
+
size 2532940000
|
CodeLlama-7b-hf-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef1a8511d1f09c8805905fb5fb810f30092c4d15c9568288c2beff3c07b98d51
|
3 |
+
size 3597193952
|
CodeLlama-7b-hf-Q3_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bffa23e59feeed906cae983c0cc43e0ffc766ea86fc99c75811c88e3a8c3c3bb
|
3 |
+
size 3298087648
|
CodeLlama-7b-hf-Q3_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:41bdaf956570455a1cb398e9adf873800376a1e847a6c777c36fb2920f21c770
|
3 |
+
size 2948387552
|
CodeLlama-7b-hf-Q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6c77bb75504aec58dee336f5d0de7a4ef6119bd787d72272d1a5d11973540e0
|
3 |
+
size 3825898720
|
CodeLlama-7b-hf-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:06d1bd2fc6c4a47a970d6f8cac560e3a0c47aa0aad8076060437006349791b64
|
3 |
+
size 4081095904
|
CodeLlama-7b-hf-Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a28e99bb3e5232fd449503abe8114b4b2dad0f6cd6196cb77a6fcceb2e5635ce
|
3 |
+
size 3856831712
|
CodeLlama-7b-hf-Q5_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69aa6847f4653793af814e59bf7c6430c5aa70520522bdb9c3694538e8def53d
|
3 |
+
size 4651791584
|
CodeLlama-7b-hf-Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64bfcd78cbff067c053e6821841e1004b0c55e1752c5d8c96420797e7572081f
|
3 |
+
size 4783256800
|
CodeLlama-7b-hf-Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04e2e7134e5a987ab68194214a692470d46c7af97b44b87e19c013c8717dc16b
|
3 |
+
size 4651791584
|
CodeLlama-7b-hf-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c26c2489c29760a651b5c350b89c390295e38b248f7bf6c7112b60ee01b8f9ac
|
3 |
+
size 5529302752
|
CodeLlama-7b-hf-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53b9c163ebe076a069161173dd297fc3fe87480d3a38e727f8724a6868cb42ab
|
3 |
+
size 7161230048
|
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- code
|
4 |
+
pipeline_tag: text-generation
|
5 |
+
tags:
|
6 |
+
- llama-2
|
7 |
+
- TensorBlock
|
8 |
+
- GGUF
|
9 |
+
license: llama2
|
10 |
+
base_model: codellama/CodeLlama-7b-hf
|
11 |
+
---
|
12 |
+
|
13 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
14 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
15 |
+
</div>
|
16 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
17 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
18 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
19 |
+
Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a>
|
20 |
+
</p>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
|
24 |
+
## codellama/CodeLlama-7b-hf - GGUF
|
25 |
+
|
26 |
+
This repo contains GGUF format model files for [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf).
|
27 |
+
|
28 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
29 |
+
|
30 |
+
## Prompt template
|
31 |
+
|
32 |
+
```
|
33 |
+
|
34 |
+
```
|
35 |
+
|
36 |
+
## Model file specification
|
37 |
+
|
38 |
+
| Filename | Quant type | File Size | Description |
|
39 |
+
| -------- | ---------- | --------- | ----------- |
|
40 |
+
| [CodeLlama-7b-hf-Q2_K.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q2_K.gguf) | Q2_K | 2.359 GB | smallest, significant quality loss - not recommended for most purposes |
|
41 |
+
| [CodeLlama-7b-hf-Q3_K_S.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q3_K_S.gguf) | Q3_K_S | 2.746 GB | very small, high quality loss |
|
42 |
+
| [CodeLlama-7b-hf-Q3_K_M.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q3_K_M.gguf) | Q3_K_M | 3.072 GB | very small, high quality loss |
|
43 |
+
| [CodeLlama-7b-hf-Q3_K_L.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q3_K_L.gguf) | Q3_K_L | 3.350 GB | small, substantial quality loss |
|
44 |
+
| [CodeLlama-7b-hf-Q4_0.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q4_0.gguf) | Q4_0 | 3.563 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
45 |
+
| [CodeLlama-7b-hf-Q4_K_S.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q4_K_S.gguf) | Q4_K_S | 3.592 GB | small, greater quality loss |
|
46 |
+
| [CodeLlama-7b-hf-Q4_K_M.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q4_K_M.gguf) | Q4_K_M | 3.801 GB | medium, balanced quality - recommended |
|
47 |
+
| [CodeLlama-7b-hf-Q5_0.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q5_0.gguf) | Q5_0 | 4.332 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
48 |
+
| [CodeLlama-7b-hf-Q5_K_S.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q5_K_S.gguf) | Q5_K_S | 4.332 GB | large, low quality loss - recommended |
|
49 |
+
| [CodeLlama-7b-hf-Q5_K_M.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q5_K_M.gguf) | Q5_K_M | 4.455 GB | large, very low quality loss - recommended |
|
50 |
+
| [CodeLlama-7b-hf-Q6_K.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q6_K.gguf) | Q6_K | 5.150 GB | very large, extremely low quality loss |
|
51 |
+
| [CodeLlama-7b-hf-Q8_0.gguf](https://huggingface.co/tensorblock/CodeLlama-7b-hf-GGUF/tree/main/CodeLlama-7b-hf-Q8_0.gguf) | Q8_0 | 6.669 GB | very large, extremely low quality loss - not recommended |
|
52 |
+
|
53 |
+
|
54 |
+
## Downloading instruction
|
55 |
+
|
56 |
+
### Command line
|
57 |
+
|
58 |
+
Firstly, install Huggingface Client
|
59 |
+
|
60 |
+
```shell
|
61 |
+
pip install -U "huggingface_hub[cli]"
|
62 |
+
```
|
63 |
+
|
64 |
+
Then, downoad the individual model file the a local directory
|
65 |
+
|
66 |
+
```shell
|
67 |
+
huggingface-cli download tensorblock/CodeLlama-7b-hf-GGUF --include "CodeLlama-7b-hf-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
68 |
+
```
|
69 |
+
|
70 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
71 |
+
|
72 |
+
```shell
|
73 |
+
huggingface-cli download tensorblock/CodeLlama-7b-hf-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
74 |
+
```
|