Instructions to use Raiff1982/Codette3.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Raiff1982/Codette3.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Raiff1982/Codette3.0")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Raiff1982/Codette3.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Raiff1982/Codette3.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Raiff1982/Codette3.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Raiff1982/Codette3.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Raiff1982/Codette3.0
- SGLang
How to use Raiff1982/Codette3.0 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 "Raiff1982/Codette3.0" \ --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": "Raiff1982/Codette3.0", "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 "Raiff1982/Codette3.0" \ --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": "Raiff1982/Codette3.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Raiff1982/Codette3.0 with Docker Model Runner:
docker model run hf.co/Raiff1982/Codette3.0
Gated model You can list files but not access them
Preview of files found in this repository
- 289 Bytes
- 314 Bytes
- 289 Bytes
- 262 Bytes
- 299 Bytes
- 768 Bytes
- 754 Bytes
- 705 Bytes
- 780 Bytes
- 800 Bytes
- 679 Bytes
- 663 Bytes
- 650 Bytes
- 756 Bytes
- 682 Bytes
- 666 Bytes
- 673 Bytes
- 670 Bytes
- 653 Bytes
- 670 Bytes
- 619 Bytes
- 693 Bytes
- 737 Bytes
- 677 Bytes
- 719 Bytes
- 739 Bytes
- 763 Bytes
- 143 Bytes
- 1.04 kB
- 143 Bytes
- 3.89 kB
- 143 Bytes
- 1.61 kB
- 143 Bytes
- 3.69 kB
- 143 Bytes
- 1.67 kB
- 143 Bytes
- 2.8 kB
- 143 Bytes
- 1.21 kB
- 143 Bytes
- 5.14 kB
- 143 Bytes
- 5.01 kB
- 143 Bytes
- 1.33 kB
- 143 Bytes
- 2.22 kB
- 143 Bytes