aashish1904 commited on
Commit
2458992
1 Parent(s): b87d074

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +82 -0
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
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](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
+ ```