GGUF
Merge
mergekit
lazymergekit
Locutusque/Hercules-2.5-Mistral-7B
openchat/openchat-3.5-0106
Eval Results (legacy)
Instructions to use nold/ChatHercules-2.5-Mistral-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use nold/ChatHercules-2.5-Mistral-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="nold/ChatHercules-2.5-Mistral-7B-GGUF", filename="ChatHercules-2.5-Mistral-7B_Q3_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use nold/ChatHercules-2.5-Mistral-7B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use nold/ChatHercules-2.5-Mistral-7B-GGUF with Ollama:
ollama run hf.co/nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
- Unsloth Studio
How to use nold/ChatHercules-2.5-Mistral-7B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for nold/ChatHercules-2.5-Mistral-7B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for nold/ChatHercules-2.5-Mistral-7B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for nold/ChatHercules-2.5-Mistral-7B-GGUF to start chatting
- Docker Model Runner
How to use nold/ChatHercules-2.5-Mistral-7B-GGUF with Docker Model Runner:
docker model run hf.co/nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
- Lemonade
How to use nold/ChatHercules-2.5-Mistral-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nold/ChatHercules-2.5-Mistral-7B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.ChatHercules-2.5-Mistral-7B-GGUF-Q4_K_M
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)ChatHercules-2.5-Mistral-7B
ChatHercules-2.5-Mistral-7B is a merge of the following models using LazyMergekit:
🧩 Configuration
slices:
- sources:
- model: Locutusque/Hercules-2.5-Mistral-7B
layer_range: [0, 32]
- model: openchat/openchat-3.5-0106
layer_range: [0, 32]
merge_method: slerp
base_model: Locutusque/Hercules-2.5-Mistral-7B
parameters:
t:
- filter: self_attn
value: [0, 0.5, 0.3, 0.7, 1]
- filter: mlp
value: [1, 0.5, 0.7, 0.3, 0]
- value: 0.5
dtype: bfloat16
💻 Usage
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "hydra-project/ChatHercules-2.5-Mistral-7B"
messages = [{"role": "user", "content": "What is a large language model?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
Open LLM Leaderboard Evaluation Results
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 68.24 |
| AI2 Reasoning Challenge (25-Shot) | 65.10 |
| HellaSwag (10-Shot) | 84.61 |
| MMLU (5-Shot) | 65.35 |
| TruthfulQA (0-shot) | 47.52 |
| Winogrande (5-shot) | 81.85 |
| GSM8k (5-shot) | 64.97 |
Quantization of Model hydra-project/ChatHercules-2.5-Mistral-7B. Created using llm-quantizer Pipeline
- Downloads last month
- 39
Hardware compatibility
Log In to add your hardware
3-bit
4-bit
5-bit
6-bit
8-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for nold/ChatHercules-2.5-Mistral-7B-GGUF
Evaluation results
- normalized accuracy on AI2 Reasoning Challenge (25-Shot)test set Open LLM Leaderboard65.100
- normalized accuracy on HellaSwag (10-Shot)validation set Open LLM Leaderboard84.610
- accuracy on MMLU (5-Shot)test set Open LLM Leaderboard65.350
- mc2 on TruthfulQA (0-shot)validation set Open LLM Leaderboard47.520
- accuracy on Winogrande (5-shot)validation set Open LLM Leaderboard81.850
- accuracy on GSM8k (5-shot)test set Open LLM Leaderboard64.970

# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="nold/ChatHercules-2.5-Mistral-7B-GGUF", filename="", )