GGUF
Merge
mergekit
lazymergekit
VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct
mlabonne/ChimeraLlama-3-8B-v3
MaziyarPanahi/Llama-3-8B-Instruct-v0.4
conversational
Instructions to use QuantFactory/KingNish-Llama3-8b-v0.2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QuantFactory/KingNish-Llama3-8b-v0.2-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 QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/KingNish-Llama3-8b-v0.2-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 QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/KingNish-Llama3-8b-v0.2-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 QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/KingNish-Llama3-8b-v0.2-GGUF with Ollama:
ollama run hf.co/QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use QuantFactory/KingNish-Llama3-8b-v0.2-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/KingNish-Llama3-8b-v0.2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/KingNish-Llama3-8b-v0.2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.KingNish-Llama3-8b-v0.2-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
|
| 4 |
+
tags:
|
| 5 |
+
- merge
|
| 6 |
+
- mergekit
|
| 7 |
+
- lazymergekit
|
| 8 |
+
- VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct
|
| 9 |
+
- mlabonne/ChimeraLlama-3-8B-v3
|
| 10 |
+
- MaziyarPanahi/Llama-3-8B-Instruct-v0.4
|
| 11 |
+
base_model:
|
| 12 |
+
- VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct
|
| 13 |
+
- mlabonne/ChimeraLlama-3-8B-v3
|
| 14 |
+
- MaziyarPanahi/Llama-3-8B-Instruct-v0.4
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
[](https://hf.co/QuantFactory)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
# QuantFactory/KingNish-Llama3-8b-v0.2-GGUF
|
| 22 |
+
This is quantized version of [KingNish/KingNish-Llama3-8b-v0.2](https://huggingface.co/KingNish/KingNish-Llama3-8b-v0.2) created using llama.cpp
|
| 23 |
+
|
| 24 |
+
# Original Model Card
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
# KingNish-Llama3-8b-v0.2
|
| 28 |
+
|
| 29 |
+
KingNish-Llama3-8b-v0.2 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
| 30 |
+
* [VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct](https://huggingface.co/VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct)
|
| 31 |
+
* [mlabonne/ChimeraLlama-3-8B-v3](https://huggingface.co/mlabonne/ChimeraLlama-3-8B-v3)
|
| 32 |
+
* [MaziyarPanahi/Llama-3-8B-Instruct-v0.4](https://huggingface.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.4)
|
| 33 |
+
|
| 34 |
+
## 🧩 Configuration
|
| 35 |
+
|
| 36 |
+
```yaml
|
| 37 |
+
models:
|
| 38 |
+
- model: KingNish/KingNish-Llama3-8b
|
| 39 |
+
# No parameters necessary for base model
|
| 40 |
+
- model: VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct
|
| 41 |
+
parameters:
|
| 42 |
+
density: 0.7
|
| 43 |
+
weight: 0.5
|
| 44 |
+
- model: mlabonne/ChimeraLlama-3-8B-v3
|
| 45 |
+
parameters:
|
| 46 |
+
density: 0.65
|
| 47 |
+
weight: 0.25
|
| 48 |
+
- model: MaziyarPanahi/Llama-3-8B-Instruct-v0.4
|
| 49 |
+
parameters:
|
| 50 |
+
density: 0.55
|
| 51 |
+
weight: 0.1
|
| 52 |
+
merge_method: dare_ties
|
| 53 |
+
base_model: KingNish/KingNish-Llama3-8b
|
| 54 |
+
parameters:
|
| 55 |
+
int8_mask: true
|
| 56 |
+
dtype: float16
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## 💻 Usage
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
!pip install -qU transformers accelerate
|
| 63 |
+
|
| 64 |
+
from transformers import AutoTokenizer
|
| 65 |
+
import transformers
|
| 66 |
+
import torch
|
| 67 |
+
|
| 68 |
+
model = "KingNish/KingNish-Llama3-8b-v0.2"
|
| 69 |
+
messages = [{"role": "user", "content": "What is a large language model?"}]
|
| 70 |
+
|
| 71 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
| 72 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 73 |
+
pipeline = transformers.pipeline(
|
| 74 |
+
"text-generation",
|
| 75 |
+
model=model,
|
| 76 |
+
torch_dtype=torch.float16,
|
| 77 |
+
device_map="auto",
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
| 81 |
+
print(outputs[0]["generated_text"])
|
| 82 |
+
```
|