Run this model with HF Jobs
Run bigcode/octocoder 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/bigcode/octocoder. 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/bigcode/octocoder 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/bigcode/octocoder. 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/bigcode/octocoder. 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.
Instructions to use bigcode/octocoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigcode/octocoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigcode/octocoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bigcode/octocoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigcode/octocoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigcode/octocoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigcode/octocoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigcode/octocoder
- SGLang
How to use bigcode/octocoder with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "bigcode/octocoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigcode/octocoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "bigcode/octocoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigcode/octocoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigcode/octocoder with Docker Model Runner:
docker model run hf.co/bigcode/octocoder
updated metadata (results from table 2)
#2
by rootacess - opened
36 unmodified lines37383940414236 unmodified linestype: pass@1value: 39.2verified: false---36 unmodified lines37383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123236 unmodified linestype: pass@1value: 39.2verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalSynthesize Javametrics:- name: pass@1type: pass@1value: 38.2verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalSynthesize Gometrics:- name: pass@1type: pass@1value: 30.4verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalSynthesize C++metrics:- name: pass@1type: pass@1value: 35.6verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalSynthesize Rustmetrics:- name: pass@1type: pass@1value: 23.4verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalSynthesize Avg.metrics:- name: pass@1type: pass@1value: 35.5verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain Pythonmetrics:- name: pass@1type: pass@1value: 35.1verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain JavaScriptmetrics:- name: pass@1type: pass@1value: 24.5verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain Javametrics:- name: pass@1type: pass@1value: 27.3verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain Gometrics:- name: pass@1type: pass@1value: 21.1verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain C++metrics:- name: pass@1type: pass@1value: 24.1verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain Rustmetrics:- name: pass@1type: pass@1value: 14.8verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalExplain Avg.metrics:- name: pass@1type: pass@1value: 24.5verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix Pythonmetrics:- name: pass@1type: pass@1value: 30.2verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix JavaScriptmetrics:- name: pass@1type: pass@1value: 28.4verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix Javametrics:- name: pass@1type: pass@1value: 30.6verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix Gometrics:- name: pass@1type: pass@1value: 30.2verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix C++metrics:- name: pass@1type: pass@1value: 26.1verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix Rustmetrics:- name: pass@1type: pass@1value: 16.5verified: false- task:type: text-generationdataset:type: bigcode/humanevalpackname: HumanEvalFix Avg.metrics:- name: pass@1type: pass@1value: 27.0verified: false---
README.md+190