Update README.md
Browse files
README.md
CHANGED
@@ -16,99 +16,47 @@ tags:
|
|
16 |
- code
|
17 |
quantized_by: bartowski
|
18 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
---
|
|
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
|
|
|
|
24 |
|
25 |
-
|
26 |
|
27 |
-
|
|
|
28 |
|
29 |
-
## Prompt
|
30 |
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
<s> [INST] <<SYS>>
|
35 |
-
{system_prompt}
|
36 |
-
<</SYS>>
|
37 |
|
38 |
-
|
39 |
-
|
|
|
|
|
40 |
|
41 |
-
##
|
42 |
|
43 |
-
|
44 |
-
| -------- | ---------- | --------- | ----------- |
|
45 |
-
| [CodeLlama-7B-KStack-Q8_0.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q8_0.gguf) | Q8_0 | 7.16GB | Extremely high quality, generally unneeded but max available quant. |
|
46 |
-
| [CodeLlama-7B-KStack-Q6_K.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q6_K.gguf) | Q6_K | 5.52GB | Very high quality, near perfect, *recommended*. |
|
47 |
-
| [CodeLlama-7B-KStack-Q5_K_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q5_K_M.gguf) | Q5_K_M | 4.78GB | High quality, *recommended*. |
|
48 |
-
| [CodeLlama-7B-KStack-Q5_K_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q5_K_S.gguf) | Q5_K_S | 4.65GB | High quality, *recommended*. |
|
49 |
-
| [CodeLlama-7B-KStack-Q4_K_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q4_K_M.gguf) | Q4_K_M | 4.08GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
50 |
-
| [CodeLlama-7B-KStack-Q4_K_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q4_K_S.gguf) | Q4_K_S | 3.85GB | Slightly lower quality with more space savings, *recommended*. |
|
51 |
-
| [CodeLlama-7B-KStack-IQ4_NL.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ4_NL.gguf) | IQ4_NL | 3.82GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
|
52 |
-
| [CodeLlama-7B-KStack-IQ4_XS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ4_XS.gguf) | IQ4_XS | 3.61GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
53 |
-
| [CodeLlama-7B-KStack-Q3_K_L.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q3_K_L.gguf) | Q3_K_L | 3.59GB | Lower quality but usable, good for low RAM availability. |
|
54 |
-
| [CodeLlama-7B-KStack-Q3_K_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q3_K_M.gguf) | Q3_K_M | 3.29GB | Even lower quality. |
|
55 |
-
| [CodeLlama-7B-KStack-IQ3_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_M.gguf) | IQ3_M | 3.11GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
56 |
-
| [CodeLlama-7B-KStack-IQ3_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_S.gguf) | IQ3_S | 2.94GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
|
57 |
-
| [CodeLlama-7B-KStack-Q3_K_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q3_K_S.gguf) | Q3_K_S | 2.94GB | Low quality, not recommended. |
|
58 |
-
| [CodeLlama-7B-KStack-IQ3_XS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_XS.gguf) | IQ3_XS | 2.79GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
59 |
-
| [CodeLlama-7B-KStack-IQ3_XXS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_XXS.gguf) | IQ3_XXS | 2.58GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
|
60 |
-
| [CodeLlama-7B-KStack-Q2_K.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q2_K.gguf) | Q2_K | 2.53GB | Very low quality but surprisingly usable. |
|
61 |
-
| [CodeLlama-7B-KStack-IQ2_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_M.gguf) | IQ2_M | 2.35GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
|
62 |
-
| [CodeLlama-7B-KStack-IQ2_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_S.gguf) | IQ2_S | 2.19GB | Very low quality, uses SOTA techniques to be usable. |
|
63 |
-
| [CodeLlama-7B-KStack-IQ2_XS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_XS.gguf) | IQ2_XS | 2.03GB | Very low quality, uses SOTA techniques to be usable. |
|
64 |
-
| [CodeLlama-7B-KStack-IQ2_XXS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_XXS.gguf) | IQ2_XXS | 1.85GB | Lower quality, uses SOTA techniques to be usable. |
|
65 |
-
| [CodeLlama-7B-KStack-IQ1_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ1_M.gguf) | IQ1_M | 1.65GB | Extremely low quality, *not* recommended. |
|
66 |
-
| [CodeLlama-7B-KStack-IQ1_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ1_S.gguf) | IQ1_S | 1.52GB | Extremely low quality, *not* recommended. |
|
67 |
|
68 |
-
|
69 |
|
70 |
-
|
71 |
|
72 |
-
|
73 |
-
pip install -U "huggingface_hub[cli]"
|
74 |
-
```
|
75 |
-
|
76 |
-
Then, you can target the specific file you want:
|
77 |
-
|
78 |
-
```
|
79 |
-
huggingface-cli download bartowski/CodeLlama-7B-KStack-GGUF --include "CodeLlama-7B-KStack-Q4_K_M.gguf" --local-dir ./
|
80 |
-
```
|
81 |
-
|
82 |
-
If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
|
83 |
-
|
84 |
-
```
|
85 |
-
huggingface-cli download bartowski/CodeLlama-7B-KStack-GGUF --include "CodeLlama-7B-KStack-Q8_0.gguf/*" --local-dir CodeLlama-7B-KStack-Q8_0
|
86 |
-
```
|
87 |
-
|
88 |
-
You can either specify a new local-dir (CodeLlama-7B-KStack-Q8_0) or download them all in place (./)
|
89 |
-
|
90 |
-
## Which file should I choose?
|
91 |
-
|
92 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
93 |
-
|
94 |
-
The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
|
95 |
-
|
96 |
-
If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
|
97 |
-
|
98 |
-
If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
|
99 |
-
|
100 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
101 |
-
|
102 |
-
If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
|
103 |
-
|
104 |
-
If you want to get more into the weeds, you can check out this extremely useful feature chart:
|
105 |
-
|
106 |
-
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
|
107 |
-
|
108 |
-
But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
|
109 |
-
|
110 |
-
These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
|
111 |
-
|
112 |
-
The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
|
113 |
-
|
114 |
-
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
|
|
|
16 |
- code
|
17 |
quantized_by: bartowski
|
18 |
pipeline_tag: text-generation
|
19 |
+
lm_studio:
|
20 |
+
param_count: 7b
|
21 |
+
use_case: code completion
|
22 |
+
release_date: 21-05-2024
|
23 |
+
model_creator: JetBrains
|
24 |
+
prompt_template: none
|
25 |
+
system_prompt: none
|
26 |
+
base_model: CodeLlama-7b
|
27 |
+
original_repo: JetBrains/CodeLlama-7B-KStack
|
28 |
+
base_model: JetBrains/CodeLlama-7B-KStack
|
29 |
---
|
30 |
+
## ๐ซ Community Model> CodeLlama 7B KStack by JetBrains
|
31 |
|
32 |
+
*๐พ [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.
|
33 |
|
34 |
+
**Model creator:** [JetBrains](https://huggingface.co/JetBrains)<br>
|
35 |
+
**Original model**: [CodeLlama-7B-KStack](https://huggingface.co/JetBrains/CodeLlama-7B-KStack)<br>
|
36 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2965](https://github.com/ggerganov/llama.cpp/releases/tag/b2965)<br>
|
37 |
|
38 |
+
## Model Summary:
|
39 |
|
40 |
+
This model is designed to be used exclusive for code completion and tuned specifically for Kotlin.<br>
|
41 |
+
Use this model as a coding assistant and for completion in your IDE to generate strong Kotlin code.
|
42 |
|
43 |
+
## Prompt template:
|
44 |
|
45 |
+
There is no prompt template for this model, it should be used for completion.
|
46 |
|
47 |
+
## Technical Details
|
|
|
|
|
|
|
48 |
|
49 |
+
This model is based on the CodeLlama-7b and trained on the KStack dataset found here: https://huggingface.co/datasets/JetBrains/KStack<br>
|
50 |
+
The dataset was filtered and cleaned for quality prior to training.<br>
|
51 |
+
It supports FIM tokens:
|
52 |
+
- `'<PRE> ' + prefix + ' <SUF> ' + suffix + ' <MID>'`
|
53 |
|
54 |
+
## Special thanks
|
55 |
|
56 |
+
๐ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
+
๐ Special thanks to [Kalomaze](https://github.com/kalomaze), [Dampf](https://github.com/Dampfinchen) and [turboderp](https://github.com/turboderp/) for their work on the dataset (linked [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)) that was used for calculating the imatrix for all sizes.
|
59 |
|
60 |
+
## Disclaimers
|
61 |
|
62 |
+
LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|