Run this model with HF Jobs

Run mlx-community/starcoder2-3b-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/mlx-community/starcoder2-3b-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/starcoder2-3b-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/mlx-community/starcoder2-3b-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/mlx-community/starcoder2-3b-4bit. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
starcoder2-3b-4bit / README.md
muhtasham's picture
Upload folder using huggingface_hub
d90b61f verified
|
Raw History Blame Contribute Delete
1.65 kB
metadata
license: bigcode-openrail-m
library_name: transformers
tags:
  - code
  - mlx
datasets:
  - bigcode/the-stack-v2-train
pipeline_tag: text-generation
inference: true
widget:
  - text: 'def print_hello_world():'
    example_title: Hello world
    group: Python
model-index:
  - name: starcoder2-3b
    results:
      - task:
          type: text-generation
        dataset:
          name: CruxEval-I
          type: cruxeval-i
        metrics:
          - type: pass@1
            value: 32.7
      - task:
          type: text-generation
        dataset:
          name: DS-1000
          type: ds-1000
        metrics:
          - type: pass@1
            value: 25
      - task:
          type: text-generation
        dataset:
          name: GSM8K (PAL)
          type: gsm8k-pal
        metrics:
          - type: accuracy
            value: 27.7
      - task:
          type: text-generation
        dataset:
          name: HumanEval+
          type: humanevalplus
        metrics:
          - type: pass@1
            value: 27.4
      - task:
          type: text-generation
        dataset:
          name: HumanEval
          type: humaneval
        metrics:
          - type: pass@1
            value: 31.7
      - task:
          type: text-generation
        dataset:
          name: RepoBench-v1.1
          type: repobench-v1.1
        metrics:
          - type: edit-smiliarity
            value: 71.19

mlx-community/starcoder2-3b-4bit

This model was converted to MLX format from bigcode/starcoder2-3b. Refer to the original model card for more details on the model.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/starcoder2-3b-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)