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
Commit History
-
Update README.md
0f863c6 -
Update README.md
d1bdd3d -
Update README.md
c841a1f
-
Update README.md
1a7b0dd
-
Update README.md
bf6bf0d -
Update README.md
28b6d6b
-
Adding `safetensors` variant of this model (#3)
- Adding `safetensors` variant of this model (71246e6a64a69997b3b5fb0087e73d3bc4b139c2)f06387a -
Update README.md
9a79e27 -
Update README.md
6e8b1b3
-
Update README.md
5181078 -
Update README.md
2c3af99 -
updated metadata (results from table 2) (#2)
- updated metadata (results from table 2) (f1611a1a75207d9ce767de8af1d1f2c22341e633) Co-authored-by: Swayam Singh <rootacess@users.noreply.huggingface.co>b8bb92f -
Update README.md
08466d2 -
Update README.md
09a617d -
Update README.md
7066072 -
Update README.md
ea2b405 -
Update README.md
9ba0a0b -
Update README.md
b9c92c5 -
Update README.md
5359c60 -
Update README.md
739b4fc -
Update README.md
e1278b8 -
Update README.md
26c238e
-
Add
e622421 -
Create README.md
14e6c10
-
initial commit
bebc92f