CultriX commited on
Commit
7a20b23
1 Parent(s): 1cf9c82

Upload folder using huggingface_hub

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