Open-Orca/SlimOrca
Viewer • Updated • 518k • 5.16k • 301
How to use Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B")
model = AutoModelForCausalLM.from_pretrained("Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B", device_map="auto")How to use Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B
How to use Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B" \
--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": "Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B" \
--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": "Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B with Docker Model Runner:
docker model run hf.co/Weyaxi/OpenHermes-2.5-neural-chat-7b-v3-1-7B
Merge of teknium/OpenHermes-2.5-Mistral-7B and Intel/neural-chat-7b-v3-1 using ties merge.
You can use these prompt templates, but I recommend using ChatML.
<|im_start|>system
{system}<|im_end|>
<|im_start|>user
{user}<|im_end|>
<|im_start|>assistant
{asistant}<|im_end|>
### System:
{system}
### User:
{usr}
### Assistant:
Quantizationed versions of this model is available thanks to TheBloke.
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 67.84 |
| ARC (25-shot) | 66.55 |
| HellaSwag (10-shot) | 84.47 |
| MMLU (5-shot) | 63.34 |
| TruthfulQA (0-shot) | 61.22 |
| Winogrande (5-shot) | 78.37 |
| GSM8K (5-shot) | 53.07 |
If you would like to support me: