Text Generation
Transformers
Safetensors
text generation
Deci AI
DeciCoder
custom_code
Eval Results (legacy)
Instructions to use Deci/DeciCoder-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Deci/DeciCoder-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Deci/DeciCoder-1b", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Deci/DeciCoder-1b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Deci/DeciCoder-1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Deci/DeciCoder-1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Deci/DeciCoder-1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Deci/DeciCoder-1b
- SGLang
How to use Deci/DeciCoder-1b 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 "Deci/DeciCoder-1b" \ --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": "Deci/DeciCoder-1b", "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 "Deci/DeciCoder-1b" \ --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": "Deci/DeciCoder-1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Deci/DeciCoder-1b with Docker Model Runner:
docker model run hf.co/Deci/DeciCoder-1b
Update README.md
Browse files
README.md
CHANGED
|
@@ -131,7 +131,7 @@ DeciCoder was trained on the Python, Java, and Javascript subsets of [Starcoder
|
|
| 131 |
|
| 132 |
- **Warm-Up Steps**: 9000
|
| 133 |
- **Total Training Steps**: 284k
|
| 134 |
-
- **Total
|
| 135 |
- **Global Batch Size**: 768
|
| 136 |
- **Optimizer**: AdamW
|
| 137 |
- **Optimizer Parameters**: beta1=0.9, beta2=0.95
|
|
@@ -150,10 +150,10 @@ Below are DeciCoder's pass@1 on MultiPL HumanEval scores
|
|
| 150 |
|
| 151 |
### Runtime Benchmarks
|
| 152 |
|
| 153 |
-
|Inference Tool/Hardware | A10 (tokens/sec) |
|
| 154 |
-
|:----------|:----------|:----------|
|
| 155 |
-
| HF Inference Endpoints | 1,364.2 |
|
| 156 |
-
| Infery LLM | 3,889.3 |
|
| 157 |
|
| 158 |
- Latency - Total generation time of batch size 1 (prefill+generate)
|
| 159 |
- Throughput (tokens/sec) - Measured with optimal batch size per hardware - A10 on BS 128, A100 on BS 512
|
|
|
|
| 131 |
|
| 132 |
- **Warm-Up Steps**: 9000
|
| 133 |
- **Total Training Steps**: 284k
|
| 134 |
+
- **Total Tokens**: 446B
|
| 135 |
- **Global Batch Size**: 768
|
| 136 |
- **Optimizer**: AdamW
|
| 137 |
- **Optimizer Parameters**: beta1=0.9, beta2=0.95
|
|
|
|
| 150 |
|
| 151 |
### Runtime Benchmarks
|
| 152 |
|
| 153 |
+
|Inference Tool/Hardware | A10 (tokens/sec) |A100 (tokens/sec) |
|
| 154 |
+
|:----------|:----------|:----------|
|
| 155 |
+
| HF Inference Endpoints | 1,364.2 | 3,244.4 |
|
| 156 |
+
| Infery LLM | 3,889.3 | 11,676.8 |
|
| 157 |
|
| 158 |
- Latency - Total generation time of batch size 1 (prefill+generate)
|
| 159 |
- Throughput (tokens/sec) - Measured with optimal batch size per hardware - A10 on BS 128, A100 on BS 512
|