teknium/OpenHermes-2.5
Viewer • Updated • 1M • 17.7k • 890
How to use xaviviro/OpenHermes-2.5-FLOR-6.3B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="xaviviro/OpenHermes-2.5-FLOR-6.3B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("xaviviro/OpenHermes-2.5-FLOR-6.3B")
model = AutoModelForCausalLM.from_pretrained("xaviviro/OpenHermes-2.5-FLOR-6.3B", device_map="auto")How to use xaviviro/OpenHermes-2.5-FLOR-6.3B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "xaviviro/OpenHermes-2.5-FLOR-6.3B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "xaviviro/OpenHermes-2.5-FLOR-6.3B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/xaviviro/OpenHermes-2.5-FLOR-6.3B
How to use xaviviro/OpenHermes-2.5-FLOR-6.3B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "xaviviro/OpenHermes-2.5-FLOR-6.3B" \
--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": "xaviviro/OpenHermes-2.5-FLOR-6.3B",
"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 "xaviviro/OpenHermes-2.5-FLOR-6.3B" \
--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": "xaviviro/OpenHermes-2.5-FLOR-6.3B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use xaviviro/OpenHermes-2.5-FLOR-6.3B with Docker Model Runner:
docker model run hf.co/xaviviro/OpenHermes-2.5-FLOR-6.3B
OpenHermes-2.5-FLOR-6.3B És el resultat de finetunejar el model FLOR-6.3B amb el fantàstic dataset OpenHermes v2.5.
La millor manera d'usar OpenHermes-2.5-FLOR-6.3B és amb el format ChatML
Podeu trobar el model quantitzat i en format GGUF a OpenHermes-2.5-FLOR-6.3B-GGUF
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 37.04 |
| AI2 Reasoning Challenge (25-Shot) | 33.45 |
| HellaSwag (10-Shot) | 54.53 |
| MMLU (5-Shot) | 25.18 |
| TruthfulQA (0-shot) | 46.12 |
| Winogrande (5-shot) | 62.98 |
| GSM8k (5-shot) | 0.00 |