RichardErkhov commited on
Commit
4fe101d
1 Parent(s): 0bc1cee

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +71 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ NeuralSynthesis-7B-v0.2 - bnb 4bits
11
+ - Model creator: https://huggingface.co/Kukedlc/
12
+ - Original model: https://huggingface.co/Kukedlc/NeuralSynthesis-7B-v0.2/
13
+
14
+
15
+
16
+
17
+ Original model description:
18
+ ---
19
+ tags:
20
+ - merge
21
+ - mergekit
22
+ - lazymergekit
23
+ license: apache-2.0
24
+ ---
25
+
26
+ # NeuralSynthesis-7B-v0.2
27
+
28
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64d71ab4089bc502ceb44d29/ID4yrGgmKZzqctPPkT4Dp.png)
29
+
30
+ NeuralSynthesis-7B-v0.2 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
31
+
32
+ ## 🧩 Configuration
33
+
34
+ ```yaml
35
+ models:
36
+ - model: Kukedlc/Fasciculus-Arcuatus-7B-slerp
37
+ - model: Gille/StrangeMerges_30-7B-slerp
38
+ - model: automerger/OgnoExperiment27-7B
39
+ - model: Kukedlc/Jupiter-k-7B-slerp
40
+ - model: Kukedlc/Neural-4-QA-7b
41
+ - model: Kukedlc/NeuralSynthesis-7B-v0.1
42
+ merge_method: model_stock
43
+ base_model: Kukedlc/NeuralSynthesis-7B-v0.1
44
+ dtype: bfloat16
45
+ ```
46
+
47
+ ## 💻 Usage
48
+
49
+ ```python
50
+ !pip install -qU transformers accelerate
51
+
52
+ from transformers import AutoTokenizer
53
+ import transformers
54
+ import torch
55
+
56
+ model = "Kukedlc/NeuralSynthesis-7B-v0.2"
57
+ messages = [{"role": "user", "content": "What is a large language model?"}]
58
+
59
+ tokenizer = AutoTokenizer.from_pretrained(model)
60
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
61
+ pipeline = transformers.pipeline(
62
+ "text-generation",
63
+ model=model,
64
+ torch_dtype=torch.float16,
65
+ device_map="auto",
66
+ )
67
+
68
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
69
+ print(outputs[0]["generated_text"])
70
+ ```
71
+