File size: 6,541 Bytes
7a82521
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5bc6817
 
 
 
 
 
 
 
 
7a82521
 
5bc6817
7a82521
5bc6817
7a82521
5bc6817
 
 
7a82521
5bc6817
 
7a0b5c6
5bc6817
 
 
 
 
 
 
7a82521
 
 
 
 
 
 
 
 
 
 
5bc6817
 
 
 
 
 
 
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
d6ddd59
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
7a82521
5bc6817
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
pipeline_tag: text-generation
base_model: bigcode/starcoder2-15b
datasets:
- bigcode/self-oss-instruct-sc2-exec-filter-50k
license: bigcode-openrail-m
library_name: transformers
tags:
- code
model-index:
- name: starcoder2-15b-instruct-v0.1
  results:
  - task:
      type: text-generation
    dataset:
      name: LiveCodeBench (code generation)
      type: livecodebench-codegeneration
    metrics:
    - type: pass@1
      value: 20.4
  - task:
      type: text-generation
    dataset:
      name: LiveCodeBench (self repair)
      type: livecodebench-selfrepair
    metrics:
    - type: pass@1
      value: 20.9
  - task:
      type: text-generation
    dataset:
      name: LiveCodeBench (test output prediction)
      type: livecodebench-testoutputprediction
    metrics:
    - type: pass@1
      value: 29.8
  - task:
      type: text-generation
    dataset:
      name: LiveCodeBench (code execution)
      type: livecodebench-codeexecution
    metrics:
    - type: pass@1
      value: 28.1
  - task:
      type: text-generation
    dataset:
      name: HumanEval
      type: humaneval
    metrics:
    - type: pass@1
      value: 72.6
  - task:
      type: text-generation
    dataset:
      name: HumanEval+
      type: humanevalplus
    metrics:
    - type: pass@1
      value: 63.4
  - task:
      type: text-generation
    dataset:
      name: MBPP
      type: mbpp
    metrics:
    - type: pass@1
      value: 75.2
  - task:
      type: text-generation
    dataset:
      name: MBPP+
      type: mbppplus
    metrics:
    - type: pass@1
      value: 61.2
  - task:
      type: text-generation
    dataset:
      name: DS-1000
      type: ds-1000
    metrics:
    - type: pass@1
      value: 40.6
quantized_by: bartowski
lm_studio:
  param_count: 15b
  use_case: coding
  release_date: 30-04-2024
  model_creator: BigCode
  prompt_template: Starcoder2 Instruct
  system_prompt: none
  base_model: starcoder2
  original_repo: bigcode/starcoder2-15b-instruct-v0.1
---

## ๐Ÿ’ซ Community Model> Starcoder2 15B Instruct v0.1 by BigCode

*๐Ÿ‘พ [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)*.

**Model creator:** [bigcode](https://huggingface.co/bigcode)<br>
**Original model**: [starcoder2-15b-instruct-v0.1](https://huggingface.co/bigcode/starcoder2-15b-instruct-v0.1)<br>
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2756](https://github.com/ggerganov/llama.cpp/releases/tag/b2756)<br>

## Model Summary:
Starcoder2-15B-Instruct-v0.1 is self-proclaimed to be the first entirely self-aligned code model with a fully permissive and transparent pipeline.<br>
This model is meant to be used for coding instructions in a <b>single turn</b>, any other styles may result in less accurate responses.<br>
Starcoder2 has been primarily finetuned for Python code generation and as such should primarily be used for Python tasks.

## Prompt Template:

Choose the 'Starcoder2 Instruct' preset in your LM Studio. 

Under the hood, the model will see a prompt that's formatted like so:

```
<|endoftext|>You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.

### Instruction
{prompt}

### Response
<|endoftext|>
```

## Use case and examples

This model should be used for single turn coding related instructions.

## Coding with requirements

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/rNqulMDumAp7s1LdIAerC.png)

## Creating unit tests

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/q_VNUflz6tcAScY_yDLet.png)

## More coding examples

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/QTXYlWITzko8Put9QXPL5.png)

## Technical Details

Starcoder2 15B instruct was trained primarily on Python code generation tasks. Using Starcoder2 15B (non instruct) to generated thousands of instruction-reponse pairs, the results were used to fine tune an instruct model without human annotation or distilled data.

The dataset created is open and available: [self-oss-instruct-sc2-exec-filter-50k](https://huggingface.co/datasets/bigcode/self-oss-instruct-sc2-exec-filter-50k)

And the code used to create the self-alignment has been shared here: [starcoder2-self-align](https://github.com/bigcode-project/starcoder2-self-align)

The results of the self-alignment are extremely promising, with significantly higher scores across all coding benchmarks, which is a great sign for future progress.

More details on their model card [here](https://huggingface.co/bigcode/starcoder2-15b-instruct-v0.1)

## Special thanks

๐Ÿ™ 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.

๐Ÿ™ Special thanks to [Kalomaze](https://github.com/kalomaze) for his dataset (linked [here](https://github.com/ggerganov/llama.cpp/discussions/5263)) that was used for calculating the imatrix for these quants, which improves the overall quality!

## Disclaimers

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.