Run this model with HF Jobs

Run cosmo3769/starcoderbase-3b-GPTQ 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/cosmo3769/starcoderbase-3b-GPTQ. 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/cosmo3769/starcoderbase-3b-GPTQ 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/cosmo3769/starcoderbase-3b-GPTQ. 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/cosmo3769/starcoderbase-3b-GPTQ. 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.
How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "cosmo3769/starcoderbase-3b-GPTQ"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "cosmo3769/starcoderbase-3b-GPTQ",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/cosmo3769/starcoderbase-3b-GPTQ
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

starcoderbase-3b-GPTQ

Quantized starcoderbase-3b model to GPTQ format (4-bit precision) using Auto-GPTQ.

Quantization script

Benchmark

Benchmarking script

Baseline starcoderbase-3b model (non-quantized)

Tasks Version Filter n-shot Metric Value Stderr
codexglue_code2text N/A none None smoothed_bleu_4 1.3519 ± 0.3067
- code2text_go 1 none None smoothed_bleu_4 1.5781 ± 0.3734
- code2text_java 1 none None smoothed_bleu_4 1.2778 ± 0.1991
- code2text_javascript 1 none None smoothed_bleu_4 1.1443 ± 0.1181
- code2text_php 1 none None smoothed_bleu_4 0.5171 ± 0.5171
- code2text_python 1 none None smoothed_bleu_4 2.8338 ± 1.5323
- code2text_ruby 3 none None smoothed_bleu_4 0.7601 ± 0.7601
Groups Version Filter n-shot Metric Value Stderr
codexglue_code2text N/A none None smoothed_bleu_4 1.3519 ± 0.3067
Tasks Version Filter n-shot Metric Value Stderr
bigbench_code_line_description_generate_until 1 none None exact_match 0 ± 0
Tasks Version Filter n-shot Metric Value Stderr
bigbench_code_line_description_multiple_choice 0 none None acc 0.25 ± 0.0564

Quantized starcoderbase-3b model to GPTQ format

Tasks Version Filter n-shot Metric Value Stderr
codexglue_code2text N/A none None smoothed_bleu_4 0.9254 ± 0.2109
- code2text_go 1 none None smoothed_bleu_4 1.4702 ± 0.4813
- code2text_java 1 none None smoothed_bleu_4 0.6907 ± 0.6907
- code2text_javascript 1 none None smoothed_bleu_4 0.9469 ± 0.0339
- code2text_php 1 none None smoothed_bleu_4 0.5171 ± 0.5171
- code2text_python 1 none None smoothed_bleu_4 1.1676 ± 0.2156
- code2text_ruby 3 none None smoothed_bleu_4 0.7601 ± 0.7601
Groups Version Filter n-shot Metric Value Stderr
codexglue_code2text N/A none None smoothed_bleu_4 0.9254 ± 0.2109
Tasks Version Filter n-shot Metric Value Stderr
bigbench_code_line_description_generate_until 1 none None exact_match 0 ± 0
Tasks Version Filter n-shot Metric Value Stderr
bigbench_code_line_description_multiple_choice 0 none None acc 0.1 ± 0.1
Downloads last month
91
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support