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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("burcucan/codeparrot-ds") model = AutoModelForCausalLM.from_pretrained("burcucan/codeparrot-ds") - 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
Training in progress, step 5000
Browse files- model.safetensors +1 -1
- runs/Apr10_11-39-38_905f6aa6fa62/events.out.tfevents.1712749178.905f6aa6fa62.2752.9 +2 -2
- runs/Apr10_11-39-38_905f6aa6fa62/events.out.tfevents.1712749333.905f6aa6fa62.2752.10 +3 -0
- runs/Apr10_11-44-09_905f6aa6fa62/events.out.tfevents.1712749450.905f6aa6fa62.2752.11 +3 -0
- training_args.bin +1 -1
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 157301184
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b46607acd8ab0971b0269521b4fdc71b85d3d842085d492b6fcc23fe03e00302
|
| 3 |
size 157301184
|
runs/Apr10_11-39-38_905f6aa6fa62/events.out.tfevents.1712749178.905f6aa6fa62.2752.9
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e00466ee4245f28b9615ef17cee975793ba4d8000ab1cfd66e1b06176a0e1cf
|
| 3 |
+
size 5435
|
runs/Apr10_11-39-38_905f6aa6fa62/events.out.tfevents.1712749333.905f6aa6fa62.2752.10
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be6e773dc231116578ae553c0621bf08cc7e2ce5a9a99131d6a5abbbfa701504
|
| 3 |
+
size 359
|
runs/Apr10_11-44-09_905f6aa6fa62/events.out.tfevents.1712749450.905f6aa6fa62.2752.11
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c6f68f4e2e676f138869157d1e4849b2bf1a228efaec417636e144599e1f9c8
|
| 3 |
+
size 5006
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2ae6b5cb0a6e1d15edd68eee5c0e5000322a68b06c88224d47deaae5f0c3ec1
|
| 3 |
size 4920
|