Text Generation
Transformers
TensorBoard
Safetensors
opt
Generated from Trainer
text-generation-inference
Instructions to use ccore/getcode-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ccore/getcode-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ccore/getcode-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ccore/getcode-v2") model = AutoModelForCausalLM.from_pretrained("ccore/getcode-v2") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ccore/getcode-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ccore/getcode-v2" # 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-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ccore/getcode-v2
- SGLang
How to use ccore/getcode-v2 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-v2" \ --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-v2", "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-v2" \ --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-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ccore/getcode-v2 with Docker Model Runner:
docker model run hf.co/ccore/getcode-v2
Training in progress, epoch 1
Browse files- config.json +1 -1
- model.safetensors +1 -1
- runs/Feb13_21-50-45_f60971adeb83/events.out.tfevents.1739483446.f60971adeb83.31.0 +3 -0
- runs/Feb13_22-00-16_f60971adeb83/events.out.tfevents.1739484017.f60971adeb83.133.0 +3 -0
- runs/Feb13_22-01-37_f60971adeb83/events.out.tfevents.1739484097.f60971adeb83.240.0 +3 -0
- runs/Feb13_22-03-01_f60971adeb83/events.out.tfevents.1739484182.f60971adeb83.310.0 +3 -0
- runs/Feb14_03-10-19_f60971adeb83/events.out.tfevents.1739502619.f60971adeb83.389.0 +3 -0
- runs/a +1 -0
- training_args.bin +3 -0
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "ccore/getcode",
|
| 3 |
"_remove_final_layer_norm": false,
|
| 4 |
"activation_dropout": 0.0,
|
| 5 |
"activation_function": "relu",
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "ccore/getcode-v2",
|
| 3 |
"_remove_final_layer_norm": false,
|
| 4 |
"activation_dropout": 0.0,
|
| 5 |
"activation_function": "relu",
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 500979600
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3a9a39b49dc8af48cc4147e9762b14c8e860aef41fd18ec146ac27c65dc6812
|
| 3 |
size 500979600
|
runs/Feb13_21-50-45_f60971adeb83/events.out.tfevents.1739483446.f60971adeb83.31.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06395f86811969bd71aa1d52250512bad54c1fc809561b98b7932cbf16ca291a
|
| 3 |
+
size 5126
|
runs/Feb13_22-00-16_f60971adeb83/events.out.tfevents.1739484017.f60971adeb83.133.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e87c40fce006280861e820276e74e5fcbdf1ab2baecf50f0a7d2ed5f2b3f9ce
|
| 3 |
+
size 4184
|
runs/Feb13_22-01-37_f60971adeb83/events.out.tfevents.1739484097.f60971adeb83.240.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5d76dc4c7e547cf85e7683405851b58c4bec1ba8c66a560fe8b18d4e6e0b248
|
| 3 |
+
size 4184
|
runs/Feb13_22-03-01_f60971adeb83/events.out.tfevents.1739484182.f60971adeb83.310.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a958b89f4119944fa5d64df62c6aa56d4602c5a33266cc986babc71cecabd346
|
| 3 |
+
size 5861
|
runs/Feb14_03-10-19_f60971adeb83/events.out.tfevents.1739502619.f60971adeb83.389.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21ecffefd860862e37ab2985a309a16e45bc46f85f823185c49f669cae1cc2e3
|
| 3 |
+
size 5862
|
runs/a
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ece721c919142a4326911838f17a116511a7a472a5798db73eacd9dc97d85ed
|
| 3 |
+
size 5368
|