Text Generation
Transformers
TensorBoard
Safetensors
opt
Generated from Trainer
text-generation-inference
Instructions to use ccore/getcode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ccore/getcode with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ccore/getcode")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ccore/getcode") model = AutoModelForCausalLM.from_pretrained("ccore/getcode", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ccore/getcode with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ccore/getcode" # 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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ccore/getcode
- SGLang
How to use ccore/getcode 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" \ --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", "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" \ --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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ccore/getcode with Docker Model Runner:
docker model run hf.co/ccore/getcode
Commit History
-
Training in progress, epoch 18
Verified signature91b9fc5 -
Training in progress, epoch 17
Verified signature605f2a4 -
Training in progress, epoch 16
Verified signature26bf063 -
Training in progress, epoch 15
Verified signature094da84 -
Training in progress, epoch 14
Verified signature21e297c -
Training in progress, epoch 13
Verified signature0c41145 -
Training in progress, epoch 12
Verified signaturee52a701 -
Training in progress, epoch 11
Verified signature232175d -
Training in progress, epoch 10
Verified signature6b42570 -
Training in progress, epoch 9
Verified signaturefb4ad53 -
Training in progress, epoch 8
Verified signature31a61dd -
Training in progress, epoch 7
Verified signaturec398d9e -
Training in progress, epoch 6
Verified signaturea0c4e35 -
Training in progress, epoch 5
Verified signature8c6eada -
Training in progress, epoch 4
Verified signature32ba9dc -
Training in progress, epoch 3
Verified signature5e10bcd -
Training in progress, epoch 2
Verified signature863902a -
Training in progress, epoch 1
Verified signaturea193248 -
End of training
Verified signaturefde3528 -
Training in progress, epoch 19
Verified signature2850ce8 -
Training in progress, epoch 18
Verified signaturef4d5dbe -
Training in progress, epoch 17
Verified signature92521e9 -
Training in progress, epoch 16
Verified signature5e015d5 -
Training in progress, epoch 15
Verified signatureb51b594 -
Training in progress, epoch 14
Verified signaturefd97e04 -
Training in progress, epoch 13
Verified signature5e73edb -
Training in progress, epoch 12
Verified signature50fc6da -
Training in progress, epoch 11
Verified signature6eeb2bc -
Training in progress, epoch 10
Verified signatureb2b3be8 -
Training in progress, epoch 9
Verified signaturedc41ec0 -
Training in progress, epoch 8
Verified signaturee593e09 -
Training in progress, epoch 7
Verified signature583fca6 -
Training in progress, epoch 6
Verified signaturee44efee -
Training in progress, epoch 5
Verified signaturebf4f3cb -
Training in progress, epoch 4
Verified signature69a8bb7 -
Training in progress, epoch 3
Verified signatureb87dc89 -
Training in progress, epoch 2
Verified signatureaff65fb -
Training in progress, epoch 1
Verified signaturea98f19c