Instructions to use Deci/DeciLM-7B-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Deci/DeciLM-7B-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Deci/DeciLM-7B-instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Deci/DeciLM-7B-instruct", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Deci/DeciLM-7B-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Deci/DeciLM-7B-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Deci/DeciLM-7B-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Deci/DeciLM-7B-instruct
- SGLang
How to use Deci/DeciLM-7B-instruct 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/DeciLM-7B-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Deci/DeciLM-7B-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/DeciLM-7B-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Deci/DeciLM-7B-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Deci/DeciLM-7B-instruct with Docker Model Runner:
docker model run hf.co/Deci/DeciLM-7B-instruct
Adding Evaluation Results
#12
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,9 +1,112 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
| 5 |
datasets:
|
| 6 |
- Open-Orca/SlimOrca
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
# DeciLM-7B-instruct
|
| 9 |
|
|
@@ -143,4 +246,17 @@ author = {DeciAI Research Team},
|
|
| 143 |
year = {2023}
|
| 144 |
url={https://huggingface.co/Deci/DeciLM-7B-instruct},
|
| 145 |
}
|
| 146 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
datasets:
|
| 6 |
- Open-Orca/SlimOrca
|
| 7 |
+
model-index:
|
| 8 |
+
- name: DeciLM-7B-instruct
|
| 9 |
+
results:
|
| 10 |
+
- task:
|
| 11 |
+
type: text-generation
|
| 12 |
+
name: Text Generation
|
| 13 |
+
dataset:
|
| 14 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 15 |
+
type: ai2_arc
|
| 16 |
+
config: ARC-Challenge
|
| 17 |
+
split: test
|
| 18 |
+
args:
|
| 19 |
+
num_few_shot: 25
|
| 20 |
+
metrics:
|
| 21 |
+
- type: acc_norm
|
| 22 |
+
value: 61.01
|
| 23 |
+
name: normalized accuracy
|
| 24 |
+
source:
|
| 25 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Deci/DeciLM-7B-instruct
|
| 26 |
+
name: Open LLM Leaderboard
|
| 27 |
+
- task:
|
| 28 |
+
type: text-generation
|
| 29 |
+
name: Text Generation
|
| 30 |
+
dataset:
|
| 31 |
+
name: HellaSwag (10-Shot)
|
| 32 |
+
type: hellaswag
|
| 33 |
+
split: validation
|
| 34 |
+
args:
|
| 35 |
+
num_few_shot: 10
|
| 36 |
+
metrics:
|
| 37 |
+
- type: acc_norm
|
| 38 |
+
value: 82.37
|
| 39 |
+
name: normalized accuracy
|
| 40 |
+
source:
|
| 41 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Deci/DeciLM-7B-instruct
|
| 42 |
+
name: Open LLM Leaderboard
|
| 43 |
+
- task:
|
| 44 |
+
type: text-generation
|
| 45 |
+
name: Text Generation
|
| 46 |
+
dataset:
|
| 47 |
+
name: MMLU (5-Shot)
|
| 48 |
+
type: cais/mmlu
|
| 49 |
+
config: all
|
| 50 |
+
split: test
|
| 51 |
+
args:
|
| 52 |
+
num_few_shot: 5
|
| 53 |
+
metrics:
|
| 54 |
+
- type: acc
|
| 55 |
+
value: 60.24
|
| 56 |
+
name: accuracy
|
| 57 |
+
source:
|
| 58 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Deci/DeciLM-7B-instruct
|
| 59 |
+
name: Open LLM Leaderboard
|
| 60 |
+
- task:
|
| 61 |
+
type: text-generation
|
| 62 |
+
name: Text Generation
|
| 63 |
+
dataset:
|
| 64 |
+
name: TruthfulQA (0-shot)
|
| 65 |
+
type: truthful_qa
|
| 66 |
+
config: multiple_choice
|
| 67 |
+
split: validation
|
| 68 |
+
args:
|
| 69 |
+
num_few_shot: 0
|
| 70 |
+
metrics:
|
| 71 |
+
- type: mc2
|
| 72 |
+
value: 49.75
|
| 73 |
+
source:
|
| 74 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Deci/DeciLM-7B-instruct
|
| 75 |
+
name: Open LLM Leaderboard
|
| 76 |
+
- task:
|
| 77 |
+
type: text-generation
|
| 78 |
+
name: Text Generation
|
| 79 |
+
dataset:
|
| 80 |
+
name: Winogrande (5-shot)
|
| 81 |
+
type: winogrande
|
| 82 |
+
config: winogrande_xl
|
| 83 |
+
split: validation
|
| 84 |
+
args:
|
| 85 |
+
num_few_shot: 5
|
| 86 |
+
metrics:
|
| 87 |
+
- type: acc
|
| 88 |
+
value: 79.72
|
| 89 |
+
name: accuracy
|
| 90 |
+
source:
|
| 91 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Deci/DeciLM-7B-instruct
|
| 92 |
+
name: Open LLM Leaderboard
|
| 93 |
+
- task:
|
| 94 |
+
type: text-generation
|
| 95 |
+
name: Text Generation
|
| 96 |
+
dataset:
|
| 97 |
+
name: GSM8k (5-shot)
|
| 98 |
+
type: gsm8k
|
| 99 |
+
config: main
|
| 100 |
+
split: test
|
| 101 |
+
args:
|
| 102 |
+
num_few_shot: 5
|
| 103 |
+
metrics:
|
| 104 |
+
- type: acc
|
| 105 |
+
value: 46.02
|
| 106 |
+
name: accuracy
|
| 107 |
+
source:
|
| 108 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=Deci/DeciLM-7B-instruct
|
| 109 |
+
name: Open LLM Leaderboard
|
| 110 |
---
|
| 111 |
# DeciLM-7B-instruct
|
| 112 |
|
|
|
|
| 246 |
year = {2023}
|
| 247 |
url={https://huggingface.co/Deci/DeciLM-7B-instruct},
|
| 248 |
}
|
| 249 |
+
```
|
| 250 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 251 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Deci__DeciLM-7B-instruct)
|
| 252 |
+
|
| 253 |
+
| Metric |Value|
|
| 254 |
+
|---------------------------------|----:|
|
| 255 |
+
|Avg. |63.19|
|
| 256 |
+
|AI2 Reasoning Challenge (25-Shot)|61.01|
|
| 257 |
+
|HellaSwag (10-Shot) |82.37|
|
| 258 |
+
|MMLU (5-Shot) |60.24|
|
| 259 |
+
|TruthfulQA (0-shot) |49.75|
|
| 260 |
+
|Winogrande (5-shot) |79.72|
|
| 261 |
+
|GSM8k (5-shot) |46.02|
|
| 262 |
+
|