bartowski commited on
Commit
1b1081d
โ€ข
1 Parent(s): 8641602

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -65
README.md CHANGED
@@ -4,89 +4,65 @@ tags:
4
  - code generation
5
  quantized_by: bartowski
6
  pipeline_tag: text-generation
 
 
 
 
 
 
 
 
 
 
7
  ---
8
 
9
- ## Llamacpp imatrix Quantizations of AlchemistCoder-L-7B
10
 
11
- Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3024">b3024</a> for quantization.
12
 
13
- Original model: https://huggingface.co/internlm/AlchemistCoder-L-7B
 
 
14
 
15
- All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
16
 
17
- ## Prompt format
 
18
 
19
- No chat template specified so default is used. This may be incorrect, check original model card for details.
20
 
21
- ```
22
- <s> [INST] <<SYS>>
23
- {system_prompt}
24
- <</SYS>>
25
-
26
- {prompt} [/INST] </s>
27
- ```
28
-
29
- ## Download a file (not the whole branch) from below:
30
-
31
- | Filename | Quant type | File Size | Description |
32
- | -------- | ---------- | --------- | ----------- |
33
- | [AlchemistCoder-L-7B-Q8_0.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q8_0.gguf) | Q8_0 | 7.16GB | Extremely high quality, generally unneeded but max available quant. |
34
- | [AlchemistCoder-L-7B-Q5_K_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q5_K_M.gguf) | Q5_K_M | 4.78GB | High quality, *recommended*. |
35
- | [AlchemistCoder-L-7B-Q4_K_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q4_K_M.gguf) | Q4_K_M | 4.08GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
36
- | [AlchemistCoder-L-7B-IQ4_XS.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ4_XS.gguf) | IQ4_XS | 3.61GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
37
- | [AlchemistCoder-L-7B-Q3_K_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q3_K_M.gguf) | Q3_K_M | 3.29GB | Even lower quality. |
38
- | [AlchemistCoder-L-7B-IQ3_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ3_M.gguf) | IQ3_M | 3.11GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
39
- | [AlchemistCoder-L-7B-Q3_K_S.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q3_K_S.gguf) | Q3_K_S | 2.94GB | Low quality, not recommended. |
40
- | [AlchemistCoder-L-7B-IQ3_XXS.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ3_XXS.gguf) | IQ3_XXS | 2.58GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
41
- | [AlchemistCoder-L-7B-Q2_K.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q2_K.gguf) | Q2_K | 2.53GB | Very low quality but surprisingly usable. |
42
- | [AlchemistCoder-L-7B-IQ2_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ2_M.gguf) | IQ2_M | 2.35GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
43
- | [AlchemistCoder-L-7B-IQ2_XXS.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF//main/AlchemistCoder-L-7B-IQ2_XXS.gguf) | IQ2_XXS | | Lower quality, uses SOTA techniques to be usable. |
44
- | [AlchemistCoder-L-7B-IQ1_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF//main/AlchemistCoder-L-7B-IQ1_M.gguf) | IQ1_M | | Extremely low quality, *not* recommended. |
45
-
46
- ## Downloading using huggingface-cli
47
-
48
- First, make sure you have hugginface-cli installed:
49
-
50
- ```
51
- pip install -U "huggingface_hub[cli]"
52
- ```
53
 
54
- Then, you can target the specific file you want:
55
 
56
  ```
57
- huggingface-cli download bartowski/AlchemistCoder-L-7B-GGUF --include "AlchemistCoder-L-7B-Q4_K_M.gguf" --local-dir ./
 
 
 
 
 
 
58
  ```
59
 
60
- 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:
61
-
62
- ```
63
- huggingface-cli download bartowski/AlchemistCoder-L-7B-GGUF --include "AlchemistCoder-L-7B-Q8_0.gguf/*" --local-dir AlchemistCoder-L-7B-Q8_0
64
- ```
65
-
66
- You can either specify a new local-dir (AlchemistCoder-L-7B-Q8_0) or download them all in place (./)
67
-
68
- ## Which file should I choose?
69
-
70
- A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
71
-
72
- 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.
73
-
74
- 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.
75
-
76
- 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.
77
 
78
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
79
 
80
- 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.
 
 
 
 
81
 
82
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
83
 
84
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
85
 
86
- 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.
87
 
88
- 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.
89
 
90
- 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.
91
 
92
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
 
4
  - code generation
5
  quantized_by: bartowski
6
  pipeline_tag: text-generation
7
+ lm_studio:
8
+ param_count: 7b
9
+ use_case: coding
10
+ release_date: 29-05-2024
11
+ model_creator: InternLM
12
+ prompt_template: Alpaca
13
+ system_prompt: none
14
+ base_model: Llama 2
15
+ original_repo: internlm/AlchemistCoder-L-7B
16
+ base_model: internlm/AlchemistCoder-L-7B
17
  ---
18
 
19
+ ## ๐Ÿ’ซ Community Model> AlchemistCoder L 7B by InternLM
20
 
21
+ *๐Ÿ‘พ [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)*.
22
 
23
+ **Model creator:** [InternLM](https://huggingface.co/internlm)<br>
24
+ **Original model**: [AlchemistCoder-L-7B](https://huggingface.co/internlm/AlchemistCoder-L-7B)<br>
25
+ **GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b3024](https://github.com/ggerganov/llama.cpp/releases/tag/b3024)<br>
26
 
27
+ ## Model Summary:
28
 
29
+ AlchemistCoder is a series of coding models by InternLM.<br>
30
+ This model is tuned from Llama 2, and should excel at all coding related tasks.
31
 
32
+ ## Prompt template:
33
 
34
+ Choose the `MetaAI Llama 2 Chat` preset in your LM Studio.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ Under the hood, the model will see a prompt that's formatted like so:
37
 
38
  ```
39
+ [INST]<<SYS>>
40
+ {System}
41
+ <</SYS>>[/INST]
42
+ [INST]
43
+ {User}
44
+ [/INST]
45
+ {Assistant}
46
  ```
47
 
48
+ ## Technical Details
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
+ Training details:
51
 
52
+ - **AlchemistPrompts**: Designed as data-specific prompts for harmonizing inherent conflicts in multi-source data and mitigating the instruction/response misalignment at a fined-grained level.
53
+ - **Code Comprehenstion Tasks**: Sourced from the process of data construction, consisting of instruction evolution, data filtering, and code review.
54
+ - **Harmonized Multi-source Data**: Instruction tuned on 200M tokens, including 6 types of high-quality data.
55
+ - **Superior Model Performance**: Surpassing all the open-source models of the same size (6.7/7B), and rivaling or even beating larger models (15B/33B/70B/ChatGPT) on 6 code benchmarks.
56
+ - **Advanced generic capabilities**: Demonstrated by the significant improvements on MMLU, BBH, and GSM8K.
57
 
58
+ For more information, check out their paper here: https://arxiv.org/abs/2405.19265
59
 
60
+ ## Special thanks
61
 
62
+ ๐Ÿ™ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/)
63
 
64
+ ๐Ÿ™ Special thanks to [Kalomaze](https://github.com/kalomaze) and [Dampf](https://github.com/Dampfinchen) for their work on the dataset (linked [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)) that was used for calculating the imatrix for all sizes.
65
 
66
+ ## Disclaimers
67
 
68
+ 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.