Instructions to use ccore/getcode-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ccore/getcode-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ccore/getcode-v3")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ccore/getcode-v3") model = AutoModelForCausalLM.from_pretrained("ccore/getcode-v3") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ccore/getcode-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ccore/getcode-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ccore/getcode-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ccore/getcode-v3
- SGLang
How to use ccore/getcode-v3 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 "ccore/getcode-v3" \ --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": "ccore/getcode-v3", "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 "ccore/getcode-v3" \ --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": "ccore/getcode-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ccore/getcode-v3 with Docker Model Runner:
docker model run hf.co/ccore/getcode-v3
Training in progress, epoch 1
Browse files- model.safetensors +1 -1
- runs/Feb15_03-53-31_396b9b53937f/events.out.tfevents.1739591612.396b9b53937f.74.0 +3 -0
- runs/Feb15_03-55-00_396b9b53937f/events.out.tfevents.1739591701.396b9b53937f.179.0 +3 -0
- runs/Feb15_04-01-23_396b9b53937f/events.out.tfevents.1739592083.396b9b53937f.363.0 +3 -0
- runs/Feb15_04-02-37_396b9b53937f/events.out.tfevents.1739592157.396b9b53937f.434.0 +3 -0
- runs/Feb15_04-03-54_396b9b53937f/events.out.tfevents.1739592235.396b9b53937f.505.0 +3 -0
- training_args.bin +3 -0
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1324830880
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2bb88839db9a955142114b0e76d39e26a142b8977b4728631688d07d165e23a
|
| 3 |
size 1324830880
|
runs/Feb15_03-53-31_396b9b53937f/events.out.tfevents.1739591612.396b9b53937f.74.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e75f423c57dcfe9513eafd70dce37c2a9986dfb94c143848aa4520c586719901
|
| 3 |
+
size 4184
|
runs/Feb15_03-55-00_396b9b53937f/events.out.tfevents.1739591701.396b9b53937f.179.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:800405e7ff0bb1586fafcda0b665243c80d7ecb40f4e437f0d75c880f1436641
|
| 3 |
+
size 5172
|
runs/Feb15_04-01-23_396b9b53937f/events.out.tfevents.1739592083.396b9b53937f.363.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afcc29f678ecd660600be2224e6ceaecbbdc062d9c2bd9fffed6229394c14e60
|
| 3 |
+
size 4184
|
runs/Feb15_04-02-37_396b9b53937f/events.out.tfevents.1739592157.396b9b53937f.434.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37624ee09e03190d66dbaa65022236e51fefc18b566e227366d7295c9d1ac4bf
|
| 3 |
+
size 4184
|
runs/Feb15_04-03-54_396b9b53937f/events.out.tfevents.1739592235.396b9b53937f.505.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:689f17d82da0b4d8b9614746a1e0a67ea04a42aaa98d5d6cf6822afa995060db
|
| 3 |
+
size 6498
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fe7bd86a461c37c8ba7d0715f243e5104dddcebcba1d9de1048a8cc77c508b7
|
| 3 |
+
size 5368
|