Run this model with HF Jobs
Run Jamoni/codeparrot 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/Jamoni/codeparrot. 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/Jamoni/codeparrot 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/Jamoni/codeparrot. 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/Jamoni/codeparrot. 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 Jamoni/codeparrot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jamoni/codeparrot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jamoni/codeparrot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Jamoni/codeparrot") model = AutoModelForCausalLM.from_pretrained("Jamoni/codeparrot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jamoni/codeparrot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jamoni/codeparrot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jamoni/codeparrot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Jamoni/codeparrot
- SGLang
How to use Jamoni/codeparrot 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 "Jamoni/codeparrot" \ --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": "Jamoni/codeparrot", "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 "Jamoni/codeparrot" \ --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": "Jamoni/codeparrot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Jamoni/codeparrot with Docker Model Runner:
docker model run hf.co/Jamoni/codeparrot
Upload model
Browse filesFiles changed (4)
33 unmodified lines3435363738394033 unmodified lines}},"torch_dtype": "float32","transformers_version": "4.44.2","use_cache": true,"vocab_size": 32768}33 unmodified lines3435363738394033 unmodified lines}},"torch_dtype": "float32","transformers_version": "4.47.1","use_cache": true,"vocab_size": 32768}
1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 50256,"eos_token_id": 50256,"transformers_version": "4.44.2"}1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 50256,"eos_token_id": 50256,"transformers_version": "4.47.1"}
123version https://git-lfs.github.com/spec/v1oid sha256:9496947b8c9c58cb08aefe0647bdaeaad4d715b6e6c5b7da7d9812824d805d96size 4970916328123version https://git-lfs.github.com/spec/v1oid sha256:007f4eeadc026b26e7e5baf506a39ebf1ec5ddebb3a4bf0aadd39187440d0197size 4970916328
123version https://git-lfs.github.com/spec/v1oid sha256:0c55933df4c7d8501ab3e5f9bd2f12c4238d3b8215fcefa37a8795589b6295fbsize 1147659632123version https://git-lfs.github.com/spec/v1oid sha256:4ff6da37ae61b41aeb672849cb6bf65badab7ced62bf66eed93b4e29c6029241size 1147659632
config.json+1-1
generation_config.json+1-1
model-00001-of-00002.safetensors+1-1
model-00002-of-00002.safetensors+1-1