GGUF
English
Mistral
instruct
finetune
chatml
DPO
RLHF
gpt4
synthetic data
distillation
conversational
Instructions to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF", filename="nous-hermes-2-mistral-7b-dpo.Q4_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
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 olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
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 olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
Use Docker
docker model run hf.co/olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
- LM Studio
- Jan
- Ollama
How to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF with Ollama:
ollama run hf.co/olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
- Unsloth Studio
How to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-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 olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-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 olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF with Docker Model Runner:
docker model run hf.co/olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
- Lemonade
How to use olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull olafgeibig/Nous-Hermes-2-Mistral-7B-DPO-GGUF:Q4_0
Run and chat with the model
lemonade run user.Nous-Hermes-2-Mistral-7B-DPO-GGUF-Q4_0
List all available models
lemonade list
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Nous-Hermes-2-Mistral-7B-DPO
|
| 2 |
+
|
| 3 |
+
I converted [NousResearch/Nous-Hermes-2-Mistral-7B-DPO](https://huggingface.co/NousResearch/Nous-Hermes-2-Mistral-7B-DPO) to GGUF and quantized it to my favorite quantizations.
|
| 4 |
+
|
| 5 |
+
I quickly quantized this model using a modified version of [AutoGGUF](https://t.co/oUuxN2fvSX) from [Maxime Labonne](https://huggingface.co/mlabonne)
|
| 6 |
+
|
| 7 |
+
Here is my Ollama modelfile:
|
| 8 |
+
```
|
| 9 |
+
FROM ./phi-2-openhermes-2.5.Q5_K_M.gguf
|
| 10 |
+
PARAMETER num_ctx 2048
|
| 11 |
+
TEMPLATE """{{ .System }}
|
| 12 |
+
### USER: {{ .Prompt }}<|endoftext|>
|
| 13 |
+
### ASSISTANT:
|
| 14 |
+
"""
|
| 15 |
+
PARAMETER stop "<|endoftext|>"
|
| 16 |
+
```
|