Instructions to use hellonet22/codeparrot-ds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hellonet22/codeparrot-ds with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hellonet22/codeparrot-ds")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("hellonet22/codeparrot-ds", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hellonet22/codeparrot-ds with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hellonet22/codeparrot-ds" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hellonet22/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hellonet22/codeparrot-ds
- SGLang
How to use hellonet22/codeparrot-ds 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 "hellonet22/codeparrot-ds" \ --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": "hellonet22/codeparrot-ds", "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 "hellonet22/codeparrot-ds" \ --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": "hellonet22/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hellonet22/codeparrot-ds with Docker Model Runner:
docker model run hf.co/hellonet22/codeparrot-ds
Commit History
-
Training in progress, step 40000
Verified signatureb11231e -
Training in progress, step 30000
Verified signature2db3d1a -
Training in progress, step 38000
Verified signature7914147 -
Training in progress, step 28000
Verified signature44eed86 -
Training in progress, step 34000
Verified signature33ded82 -
Training in progress, step 26000
Verified signatureb20a9a6 -
Training in progress, step 30000
Verified signaturecefc8ff -
Training in progress, step 24000
Verified signature092dd43 -
Training in progress, step 28000
Verified signature1ee9a60 -
Training in progress, step 22000
Verified signaturee151340 -
Training in progress, step 24000
Verified signature1fe43f8 -
Training in progress, step 20000
Verified signature0121ef2 -
Training in progress, step 22000
Verified signature9267732 -
Training in progress, step 18000
Verified signature8beeec1 -
Training in progress, step 18000
Verified signatureeddaa46 -
Training in progress, step 16000
Verified signaturef20d14a -
Training in progress, step 16000
Verified signature182a963 -
Training in progress, step 14000
Verified signature136eee4 -
Training in progress, step 12000
Verified signaturefc2d49c -
Training in progress, step 12000
Verified signaturecba94e2 -
Training in progress, step 10000
Verified signature507bc55 -
Training in progress, step 10000
Verified signature4bf03f6 -
Training in progress, step 6000
Verified signature18dfb92 -
Training in progress, step 8000
Verified signature81539f4 -
Training in progress, step 4000
Verified signature9969db1 -
Training in progress, step 6000
Verified signature8e5faf3 -
Training in progress, step 2000
Verified signature3c7a01e
-
End of training
Verified signature1e0c96b