aashish1904 commited on
Commit
b4d93cf
·
verified ·
1 Parent(s): 700079b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +77 -0
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ base_model:
11
+ - VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct
12
+ - mlabonne/ChimeraLlama-3-8B-v3
13
+ license: mit
14
+ pipeline_tag: text-generation
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-GGUF
22
+ This is quantized version of [KingNish/KingNish-Llama3-8b](https://huggingface.co/KingNish/KingNish-Llama3-8b) created using llama.cpp
23
+
24
+ # Original Model Card
25
+
26
+
27
+ # KingNish-Llama3-8b
28
+
29
+ KingNish-Llama3-8b 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
+
33
+ ## 🧩 Configuration
34
+
35
+ ```yaml
36
+ models:
37
+ - model: nbeerbower/llama-3-gutenberg-8B
38
+ # No parameters necessary for base model
39
+ - model: VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct
40
+ parameters:
41
+ density: 0.6
42
+ weight: 0.4
43
+ - model: mlabonne/ChimeraLlama-3-8B-v3
44
+ parameters:
45
+ density: 0.65
46
+ weight: 0.3
47
+ merge_method: dare_ties
48
+ base_model: nbeerbower/llama-3-gutenberg-8B
49
+ parameters:
50
+ int8_mask: true
51
+ dtype: float16
52
+ ```
53
+
54
+ ## 💻 Usage
55
+
56
+ ```python
57
+ !pip install -qU transformers accelerate
58
+
59
+ from transformers import AutoTokenizer
60
+ import transformers
61
+ import torch
62
+
63
+ model = "KingNish/KingNish-Llama3-8b"
64
+ messages = [{"role": "user", "content": "What is a large language model?"}]
65
+
66
+ tokenizer = AutoTokenizer.from_pretrained(model)
67
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
68
+ pipeline = transformers.pipeline(
69
+ "text-generation",
70
+ model=model,
71
+ torch_dtype=torch.float16,
72
+ device_map="auto",
73
+ )
74
+
75
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
76
+ print(outputs[0]["generated_text"])
77
+ ```