Text Generation
Transformers
Safetensors
mistral
openchat
C-RLFT
conversational
text-generation-inference
Instructions to use openchat/openchat-3.5-0106 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openchat/openchat-3.5-0106 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openchat/openchat-3.5-0106") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("openchat/openchat-3.5-0106") model = AutoModelForCausalLM.from_pretrained("openchat/openchat-3.5-0106") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use openchat/openchat-3.5-0106 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openchat/openchat-3.5-0106" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openchat/openchat-3.5-0106", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openchat/openchat-3.5-0106
- SGLang
How to use openchat/openchat-3.5-0106 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 "openchat/openchat-3.5-0106" \ --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": "openchat/openchat-3.5-0106", "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 "openchat/openchat-3.5-0106" \ --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": "openchat/openchat-3.5-0106", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openchat/openchat-3.5-0106 with Docker Model Runner:
docker model run hf.co/openchat/openchat-3.5-0106
Adding Evaluation Results
#6
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,12 +1,115 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
|
| 4 |
tags:
|
| 5 |
- openchat
|
| 6 |
- mistral
|
| 7 |
- C-RLFT
|
| 8 |
-
|
| 9 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
<div align="center">
|
| 12 |
<img src="https://raw.githubusercontent.com/imoneoi/openchat/master/assets/logo_new.png" style="width: 65%">
|
|
@@ -272,3 +375,17 @@ Our OpenChat 3.5 code and models are distributed under the Apache License 2.0.
|
|
| 272 |
|
| 273 |
* Wang Guan [imonenext@gmail.com], Cheng Sijie [csj23@mails.tsinghua.edu.cn], Alpay Ariyak [aariyak@wpi.edu]
|
| 274 |
* We look forward to hearing you and collaborating on this exciting project!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
tags:
|
| 5 |
- openchat
|
| 6 |
- mistral
|
| 7 |
- C-RLFT
|
| 8 |
+
base_model: mistralai/Mistral-7B-v0.1
|
| 9 |
pipeline_tag: text-generation
|
| 10 |
+
model-index:
|
| 11 |
+
- name: openchat-3.5-0106
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
type: text-generation
|
| 15 |
+
name: Text Generation
|
| 16 |
+
dataset:
|
| 17 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 18 |
+
type: ai2_arc
|
| 19 |
+
config: ARC-Challenge
|
| 20 |
+
split: test
|
| 21 |
+
args:
|
| 22 |
+
num_few_shot: 25
|
| 23 |
+
metrics:
|
| 24 |
+
- type: acc_norm
|
| 25 |
+
value: 66.04
|
| 26 |
+
name: normalized accuracy
|
| 27 |
+
source:
|
| 28 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=openchat/openchat-3.5-0106
|
| 29 |
+
name: Open LLM Leaderboard
|
| 30 |
+
- task:
|
| 31 |
+
type: text-generation
|
| 32 |
+
name: Text Generation
|
| 33 |
+
dataset:
|
| 34 |
+
name: HellaSwag (10-Shot)
|
| 35 |
+
type: hellaswag
|
| 36 |
+
split: validation
|
| 37 |
+
args:
|
| 38 |
+
num_few_shot: 10
|
| 39 |
+
metrics:
|
| 40 |
+
- type: acc_norm
|
| 41 |
+
value: 82.93
|
| 42 |
+
name: normalized accuracy
|
| 43 |
+
source:
|
| 44 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=openchat/openchat-3.5-0106
|
| 45 |
+
name: Open LLM Leaderboard
|
| 46 |
+
- task:
|
| 47 |
+
type: text-generation
|
| 48 |
+
name: Text Generation
|
| 49 |
+
dataset:
|
| 50 |
+
name: MMLU (5-Shot)
|
| 51 |
+
type: cais/mmlu
|
| 52 |
+
config: all
|
| 53 |
+
split: test
|
| 54 |
+
args:
|
| 55 |
+
num_few_shot: 5
|
| 56 |
+
metrics:
|
| 57 |
+
- type: acc
|
| 58 |
+
value: 65.04
|
| 59 |
+
name: accuracy
|
| 60 |
+
source:
|
| 61 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=openchat/openchat-3.5-0106
|
| 62 |
+
name: Open LLM Leaderboard
|
| 63 |
+
- task:
|
| 64 |
+
type: text-generation
|
| 65 |
+
name: Text Generation
|
| 66 |
+
dataset:
|
| 67 |
+
name: TruthfulQA (0-shot)
|
| 68 |
+
type: truthful_qa
|
| 69 |
+
config: multiple_choice
|
| 70 |
+
split: validation
|
| 71 |
+
args:
|
| 72 |
+
num_few_shot: 0
|
| 73 |
+
metrics:
|
| 74 |
+
- type: mc2
|
| 75 |
+
value: 51.9
|
| 76 |
+
source:
|
| 77 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=openchat/openchat-3.5-0106
|
| 78 |
+
name: Open LLM Leaderboard
|
| 79 |
+
- task:
|
| 80 |
+
type: text-generation
|
| 81 |
+
name: Text Generation
|
| 82 |
+
dataset:
|
| 83 |
+
name: Winogrande (5-shot)
|
| 84 |
+
type: winogrande
|
| 85 |
+
config: winogrande_xl
|
| 86 |
+
split: validation
|
| 87 |
+
args:
|
| 88 |
+
num_few_shot: 5
|
| 89 |
+
metrics:
|
| 90 |
+
- type: acc
|
| 91 |
+
value: 81.77
|
| 92 |
+
name: accuracy
|
| 93 |
+
source:
|
| 94 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=openchat/openchat-3.5-0106
|
| 95 |
+
name: Open LLM Leaderboard
|
| 96 |
+
- task:
|
| 97 |
+
type: text-generation
|
| 98 |
+
name: Text Generation
|
| 99 |
+
dataset:
|
| 100 |
+
name: GSM8k (5-shot)
|
| 101 |
+
type: gsm8k
|
| 102 |
+
config: main
|
| 103 |
+
split: test
|
| 104 |
+
args:
|
| 105 |
+
num_few_shot: 5
|
| 106 |
+
metrics:
|
| 107 |
+
- type: acc
|
| 108 |
+
value: 68.16
|
| 109 |
+
name: accuracy
|
| 110 |
+
source:
|
| 111 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=openchat/openchat-3.5-0106
|
| 112 |
+
name: Open LLM Leaderboard
|
| 113 |
---
|
| 114 |
<div align="center">
|
| 115 |
<img src="https://raw.githubusercontent.com/imoneoi/openchat/master/assets/logo_new.png" style="width: 65%">
|
|
|
|
| 375 |
|
| 376 |
* Wang Guan [imonenext@gmail.com], Cheng Sijie [csj23@mails.tsinghua.edu.cn], Alpay Ariyak [aariyak@wpi.edu]
|
| 377 |
* We look forward to hearing you and collaborating on this exciting project!
|
| 378 |
+
|
| 379 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 380 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_openchat__openchat-3.5-0106)
|
| 381 |
+
|
| 382 |
+
| Metric |Value|
|
| 383 |
+
|---------------------------------|----:|
|
| 384 |
+
|Avg. |69.30|
|
| 385 |
+
|AI2 Reasoning Challenge (25-Shot)|66.04|
|
| 386 |
+
|HellaSwag (10-Shot) |82.93|
|
| 387 |
+
|MMLU (5-Shot) |65.04|
|
| 388 |
+
|TruthfulQA (0-shot) |51.90|
|
| 389 |
+
|Winogrande (5-shot) |81.77|
|
| 390 |
+
|GSM8k (5-shot) |68.16|
|
| 391 |
+
|