CultriX commited on
Commit
f820ce6
1 Parent(s): 2639523

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - merge
4
+ - mergekit
5
+ - lazymergekit
6
+ - mlabonne/OmniBeagle-7B
7
+ - flemmingmiguel/MBX-7B-v3
8
+ - AiMavenAi/AiMaven-Prometheus
9
+ base_model:
10
+ - mlabonne/OmniBeagle-7B
11
+ - flemmingmiguel/MBX-7B-v3
12
+ - AiMavenAi/AiMaven-Prometheus
13
+ license: apache-2.0
14
+ ---
15
+
16
+ # NeuralTrix-7B-v1
17
+
18
+ NeuralTrix-7B-v1 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
19
+ * [mlabonne/OmniBeagle-7B](https://huggingface.co/mlabonne/OmniBeagle-7B)
20
+ * [flemmingmiguel/MBX-7B-v3](https://huggingface.co/flemmingmiguel/MBX-7B-v3)
21
+ * [AiMavenAi/AiMaven-Prometheus](https://huggingface.co/AiMavenAi/AiMaven-Prometheus)
22
+
23
+ ## 🧩 Configuration
24
+
25
+ ```yaml
26
+ models:
27
+ - model: mistralai/Mistral-7B-v0.1
28
+ # no parameters necessary for base model
29
+ - model: mlabonne/OmniBeagle-7B
30
+ parameters:
31
+ density: 0.65
32
+ weight: 0.4
33
+ - model: flemmingmiguel/MBX-7B-v3
34
+ parameters:
35
+ density: 0.6
36
+ weight: 0.35
37
+ - model: AiMavenAi/AiMaven-Prometheus
38
+ parameters:
39
+ density: 0.6
40
+ weight: 0.35
41
+ merge_method: dare_ties
42
+ base_model: mistralai/Mistral-7B-v0.1
43
+ parameters:
44
+ int8_mask: true
45
+ dtype: float16
46
+ ```
47
+
48
+ ## 💻 Usage
49
+
50
+ ```python
51
+ !pip install -qU transformers accelerate
52
+
53
+ from transformers import AutoTokenizer
54
+ import transformers
55
+ import torch
56
+
57
+ model = "CultriX/NeuralTrix-7B-v1"
58
+ messages = [{"role": "user", "content": "What is a large language model?"}]
59
+
60
+ tokenizer = AutoTokenizer.from_pretrained(model)
61
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
62
+ pipeline = transformers.pipeline(
63
+ "text-generation",
64
+ model=model,
65
+ torch_dtype=torch.float16,
66
+ device_map="auto",
67
+ )
68
+
69
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
70
+ print(outputs[0]["generated_text"])
71
+ ```