Instructions to use burcucan/codeparrot-ds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use burcucan/codeparrot-ds with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="burcucan/codeparrot-ds")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("burcucan/codeparrot-ds") model = AutoModelForCausalLM.from_pretrained("burcucan/codeparrot-ds", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use burcucan/codeparrot-ds with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "burcucan/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": "burcucan/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/burcucan/codeparrot-ds
- SGLang
How to use burcucan/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 "burcucan/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": "burcucan/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 "burcucan/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": "burcucan/codeparrot-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use burcucan/codeparrot-ds with Docker Model Runner:
docker model run hf.co/burcucan/codeparrot-ds
Commit History
-
Training in progress, step 30000
Verified signaturea7df76c -
Training in progress, step 25000
Verified signature7a733e1 -
Training in progress, step 20000
Verified signature73cddd4 -
Training in progress, step 15000
Verified signature2b3785f -
Training in progress, step 10000
Verified signature42a9c5a -
Training in progress, step 5000
Verified signature7f405cc -
Training in progress, step 40000
Verified signatureae99667 -
Training in progress, step 35000
Verified signature09a01f3 -
Training in progress, step 30000
Verified signature1c2f911 -
Training in progress, step 25000
Verified signature9758414 -
Training in progress, step 20000
Verified signaturef48f86f -
Training in progress, step 15000
Verified signature815261b -
Training in progress, step 10000
Verified signature0689f2b -
Training in progress, step 5000
Verified signature90801bb
-
Training in progress, step 5000
Verified signaturef158f38
-
Training in progress, step 30000
Verified signature0a4bd06 -
Training in progress, step 25000
Verified signature4415c24 -
Training in progress, step 20000
Verified signature8d9ca3f -
Training in progress, step 15000
Verified signaturefc1de9d -
Training in progress, step 10000
Verified signature527d08e -
Training in progress, step 5000
Verified signatured0f5352
-
Training in progress, step 5000
Verified signaturefb0b487 -
Training in progress, step 165000
Verified signature2fe1f23 -
Training in progress, step 160000
Verified signatureaab7520 -
Training in progress, step 155000
Verified signature0d251b3 -
Training in progress, step 150000
Verified signaturef175bcf -
Training in progress, step 145000
Verified signaturec8e29a8 -
Training in progress, step 140000
Verified signaturefe5fc36 -
Training in progress, step 135000
Verified signature5f473f6 -
Training in progress, step 130000
Verified signaturee022965 -
Training in progress, step 125000
Verified signaturef473058 -
Training in progress, step 120000
Verified signaturec8982f4 -
Training in progress, step 115000
Verified signature8920bd5 -
Training in progress, step 110000
Verified signature5f93c8b -
Training in progress, step 105000
Verified signaturea0f2455 -
Training in progress, step 100000
Verified signature64a2191 -
Training in progress, step 95000
Verified signaturec5885fe -
Training in progress, step 90000
Verified signatureae5242b -
Training in progress, step 85000
Verified signature20f8e3d -
Training in progress, step 80000
Verified signatureba9656c -
Training in progress, step 75000
Verified signature49eb579 -
Training in progress, step 70000
Verified signatured9af330 -
Training in progress, step 65000
Verified signaturef76c902 -
Training in progress, step 60000
Verified signature3d5b8b6 -
Training in progress, step 55000
Verified signature3f4ce0b -
Training in progress, step 50000
Verified signatureaaa09fe -
Training in progress, step 45000
Verified signature52ce271 -
Training in progress, step 40000
Verified signaturecc1dc2f -
Training in progress, step 35000
Verified signature432393e -
Training in progress, step 30000
Verified signaturead7a6f1