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
Training in progress, step 5000
Browse files- model.safetensors +1 -1
- runs/Sep23_13-27-18_ogu/events.out.tfevents.1727098041.ogu.1540595.0 +3 -0
- runs/Sep23_13-29-29_ogu/events.out.tfevents.1727098172.ogu.1540892.0 +3 -0
- runs/Sep23_13-44-44_ogu/events.out.tfevents.1727099086.ogu.1542793.0 +3 -0
- runs/Sep23_13-52-03_ogu/events.out.tfevents.1727099526.ogu.1543768.0 +3 -0
- runs/Sep23_13-53-38_ogu/events.out.tfevents.1727099621.ogu.1544062.0 +3 -0
- runs/Sep23_13-58-21_ogu/events.out.tfevents.1727099904.ogu.1544635.0 +3 -0
- runs/Sep23_14-09-43_ogu/events.out.tfevents.1727100587.ogu.1546986.0 +3 -0
- training_args.bin +2 -2
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 667815120
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:074dc34c4d546b9cad456335451bed0c2745ef8d5933fad0206c7d0e0ab2a507
|
| 3 |
size 667815120
|
runs/Sep23_13-27-18_ogu/events.out.tfevents.1727098041.ogu.1540595.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c36860daf702ed9526850566f858f6e8cc77daae3fb929911731846a7f6b1fa
|
| 3 |
+
size 4873
|
runs/Sep23_13-29-29_ogu/events.out.tfevents.1727098172.ogu.1540892.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:222eb18ab53e974b49ac12075af7a221c15a25474d7e6a972d40639b81cdfec3
|
| 3 |
+
size 4873
|
runs/Sep23_13-44-44_ogu/events.out.tfevents.1727099086.ogu.1542793.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f19e31901a59844fa400896405db3589bf144979a5a731e8db63170ae14be36
|
| 3 |
+
size 14539
|
runs/Sep23_13-52-03_ogu/events.out.tfevents.1727099526.ogu.1543768.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a94477abedf40d0321def80828ad33152396c5a34df2417ebeb61d1df9fba4e
|
| 3 |
+
size 9706
|
runs/Sep23_13-53-38_ogu/events.out.tfevents.1727099621.ogu.1544062.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89dab6546dada5365ccd5d5d0ef6684b1f3bf6aa408a11162fd668910ae47061
|
| 3 |
+
size 4873
|
runs/Sep23_13-58-21_ogu/events.out.tfevents.1727099904.ogu.1544635.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ef184fe2c1a98204c04b1f4b0a49edc8a293ff35ff4dccc4d44993045efe1e8
|
| 3 |
+
size 4873
|
runs/Sep23_14-09-43_ogu/events.out.tfevents.1727100587.ogu.1546986.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddf005403557855fcde849e193af2be4b697d455422bb7a78f9522d064613155
|
| 3 |
+
size 5355
|
training_args.bin
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:d1d9bc90b851782166b13a5f8d6d635c76221c99afe0df44dc3d27a357da9388
|
| 3 |
+
size 5176
|