Instructions to use Deci/DeciCoder-6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Deci/DeciCoder-6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Deci/DeciCoder-6B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Deci/DeciCoder-6B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Deci/DeciCoder-6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Deci/DeciCoder-6B" # 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-6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Deci/DeciCoder-6B
- SGLang
How to use Deci/DeciCoder-6B 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-6B" \ --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-6B", "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-6B" \ --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-6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Deci/DeciCoder-6B with Docker Model Runner:
docker model run hf.co/Deci/DeciCoder-6B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,61 +1,3 @@
|
|
| 1 |
-
pipeline_tag: text-generation
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
tags:
|
| 4 |
-
- text generation
|
| 5 |
-
- Deci AI
|
| 6 |
-
- DeciCoder
|
| 7 |
-
programming_language:
|
| 8 |
-
- Java
|
| 9 |
-
- JavaScript
|
| 10 |
-
- Python
|
| 11 |
-
- Rust
|
| 12 |
-
- Ruby
|
| 13 |
-
- C++
|
| 14 |
-
- C
|
| 15 |
-
- C#
|
| 16 |
-
metrics:
|
| 17 |
-
- code_eval
|
| 18 |
-
inference: true
|
| 19 |
-
widget:
|
| 20 |
-
- text: 'def print_hello_world():'
|
| 21 |
-
example_title: Hello world
|
| 22 |
-
group: Python
|
| 23 |
-
model-index:
|
| 24 |
-
- name: DeciCoder-6b
|
| 25 |
-
results:
|
| 26 |
-
- task:
|
| 27 |
-
type: text-generation
|
| 28 |
-
dataset:
|
| 29 |
-
type: nuprl/MultiPL-E
|
| 30 |
-
name: MultiPL-HumanEval (Python)
|
| 31 |
-
metrics:
|
| 32 |
-
- name: pass@1
|
| 33 |
-
type: pass@1
|
| 34 |
-
value: 0.34
|
| 35 |
-
verified: false
|
| 36 |
-
- task:
|
| 37 |
-
type: text-generation
|
| 38 |
-
dataset:
|
| 39 |
-
type: nuprl/MultiPL-E
|
| 40 |
-
name: MultiPL-HumanEval (JavaScript)
|
| 41 |
-
metrics:
|
| 42 |
-
- name: pass@1
|
| 43 |
-
type: pass@1
|
| 44 |
-
value: 0.29
|
| 45 |
-
verified: false
|
| 46 |
-
- task:
|
| 47 |
-
type: text-generation
|
| 48 |
-
dataset:
|
| 49 |
-
type: nuprl/MultiPL-E
|
| 50 |
-
name: MultiPL-HumanEval (Java)
|
| 51 |
-
metrics:
|
| 52 |
-
- name: pass@1
|
| 53 |
-
type: pass@1
|
| 54 |
-
value: 0.30
|
| 55 |
-
verified: false
|
| 56 |
-
datasets:
|
| 57 |
-
- bigcode/starcoderdata
|
| 58 |
-
---
|
| 59 |
|
| 60 |
# Model Card for DeciCoder-6B
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
# Model Card for DeciCoder-6B
|
| 3 |
|