File size: 2,738 Bytes
d12dfd8 cc1eb8b d12dfd8 cc1eb8b |
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 |
---
pipeline_tag: text-generation
inference:
parameters:
temperature: 0.2
top_p: 0.95
widget:
- text: 'def print_hello_world():'
example_title: Hello world
group: Python
datasets:
- bigcode/the-stack-v2-train
license: bigcode-openrail-m
library_name: transformers
tags:
- code
- mlx
base_model: bigcode/starcoder2-15b
model-index:
- name: starcoder2-15b
results:
- task:
type: text-generation
dataset:
name: CruxEval-I
type: cruxeval-i
metrics:
- type: pass@1
value: 48.1
- task:
type: text-generation
dataset:
name: DS-1000
type: ds-1000
metrics:
- type: pass@1
value: 33.8
- task:
type: text-generation
dataset:
name: GSM8K (PAL)
type: gsm8k-pal
metrics:
- type: accuracy
value: 65.1
- task:
type: text-generation
dataset:
name: HumanEval+
type: humanevalplus
metrics:
- type: pass@1
value: 37.8
- task:
type: text-generation
dataset:
name: HumanEval
type: humaneval
metrics:
- type: pass@1
value: 46.3
- task:
type: text-generation
dataset:
name: RepoBench-v1.1
type: repobench-v1.1
metrics:
- type: edit-smiliarity
value: 74.08
---
# mlx-community/bigcode-starcoder2-15b-6bit
The Model [mlx-community/bigcode-starcoder2-15b-6bit](https://huggingface.co/mlx-community/bigcode-starcoder2-15b-6bit) was
converted to MLX format from [bigcode/starcoder2-15b](https://huggingface.co/bigcode/starcoder2-15b)
using mlx-lm version **0.21.1** by [Focused](https://focused.io).
[![Focused Logo](https://focused.io/images/header-logo.svg "Focused Logo")](https://focused.io)
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/bigcode-starcoder2-15b-6bit")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
```
---
Focused is a technology company at the forefront of AI-driven development, empowering organizations to unlock the full potential of artificial intelligence. From integrating innovative models into existing systems to building scalable, modern AI infrastructures, we specialize in delivering tailored, incremental solutions that meet you where you are.
Curious how we can help with your AI next project?
[Get in Touch](https://focused.io/capabilities/ai-readiness-implementation)
[![Focused Logo](https://focused.io/images/header-logo.svg "Focused Logo")](https://focused.io) |