Run this model with HF Jobs
Run m-a-p/OpenCodeInterpreter-CL-13B 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/m-a-p/OpenCodeInterpreter-CL-13B. 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/m-a-p/OpenCodeInterpreter-CL-13B 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/m-a-p/OpenCodeInterpreter-CL-13B. 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/m-a-p/OpenCodeInterpreter-CL-13B. 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 m-a-p/OpenCodeInterpreter-CL-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use m-a-p/OpenCodeInterpreter-CL-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="m-a-p/OpenCodeInterpreter-CL-13B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("m-a-p/OpenCodeInterpreter-CL-13B") model = AutoModelForCausalLM.from_pretrained("m-a-p/OpenCodeInterpreter-CL-13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use m-a-p/OpenCodeInterpreter-CL-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "m-a-p/OpenCodeInterpreter-CL-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "m-a-p/OpenCodeInterpreter-CL-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/m-a-p/OpenCodeInterpreter-CL-13B
- SGLang
How to use m-a-p/OpenCodeInterpreter-CL-13B 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 "m-a-p/OpenCodeInterpreter-CL-13B" \ --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": "m-a-p/OpenCodeInterpreter-CL-13B", "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 "m-a-p/OpenCodeInterpreter-CL-13B" \ --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": "m-a-p/OpenCodeInterpreter-CL-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use m-a-p/OpenCodeInterpreter-CL-13B with Docker Model Runner:
docker model run hf.co/m-a-p/OpenCodeInterpreter-CL-13B
Commit History
-
Update README.md
Verified signaturee46c2aa
-
Update config.json
Verified signaturea19fc7d
-
Update README.md (#5)
Verified signature- Update README.md (7da3a56e061fb858e3894f8eefdb58cde91d0841) Co-authored-by: XUELING LIU <Anitaliu98@users.noreply.huggingface.co>7dc9795 -
Update README.md (#6)
Verified signature- Update README.md (c85e5b65345a5f9a263dff4f06659dc816bf2ac3) Co-authored-by: XUELING LIU <Anitaliu98@users.noreply.huggingface.co>754cab9 -
Update README.md
Verified signatured710536
-
Update config.json
Verified signature8a27ca1
-
Update README.md
Verified signature1dce9e6 -
Update README.md (#4)
Verified signature- Update README.md (0ed97fe1c994d3c23ee7b02dc9de5c8a70d3f0b3) Co-authored-by: XUELING LIU <Anitaliu98@users.noreply.huggingface.co>3409ad6 -
Update README.md
Verified signatureb531ac1
-
Update README.md
Verified signature61391ac
-
Update README.md (#2)
Verified signature- Update README.md (91fd3763f01e66f56c6375d6a7968288ff017905) Co-authored-by: XUELING LIU <Anitaliu98@users.noreply.huggingface.co>91532fb -
Create README.md (#1)
Verified signature- Create README.md (71c47770bcf0fc800116bdea3923b88d95886b4d) Co-authored-by: XUELING LIU <Anitaliu98@users.noreply.huggingface.co>286b8a3
-
add model
6debac6 -
initial commit
Verified signaturebf91694