ALBADDAWI commited on
Commit
d1d00b4
1 Parent(s): a2b5729

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - Kukedlc/NeuralMaths-Experiment-7b
4
+ - lemon-mint/gemma-ko-7b-instruct-v0.62
5
+ - Ppoyaa/StarMonarch-7B
6
+ - automerger/YamshadowExperiment28-7B
7
+ - ichigoberry/MonarchPipe-7B-slerp
8
+ - deepseek-ai/deepseek-coder-7b-instruct-v1.5
9
+ - Kukedlc/Neural-4-Maths-7b
10
+ base_model:
11
+ - Kukedlc/NeuralMaths-Experiment-7b
12
+ - lemon-mint/gemma-ko-7b-instruct-v0.62
13
+ - Ppoyaa/StarMonarch-7B
14
+ - automerger/YamshadowExperiment28-7B
15
+ - ichigoberry/MonarchPipe-7B-slerp
16
+ - deepseek-ai/deepseek-coder-7b-instruct-v1.5
17
+ - Kukedlc/Neural-4-Maths-7b
18
+ ---
19
+
20
+ # DeepCode-7B-Aurora-v4
21
+
22
+ DeepCode-7B-Aurora-v4 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
23
+ * [Kukedlc/NeuralMaths-Experiment-7b](https://huggingface.co/Kukedlc/NeuralMaths-Experiment-7b)
24
+ * [lemon-mint/gemma-ko-7b-instruct-v0.62](https://huggingface.co/lemon-mint/gemma-ko-7b-instruct-v0.62)
25
+ * [Ppoyaa/StarMonarch-7B](https://huggingface.co/Ppoyaa/StarMonarch-7B)
26
+ * [automerger/YamshadowExperiment28-7B](https://huggingface.co/automerger/YamshadowExperiment28-7B)
27
+ * [ichigoberry/MonarchPipe-7B-slerp](https://huggingface.co/ichigoberry/MonarchPipe-7B-slerp)
28
+ * [deepseek-ai/deepseek-coder-7b-instruct-v1.5](https://huggingface.co/deepseek-ai/deepseek-coder-7b-instruct-v1.5)
29
+ * [Kukedlc/Neural-4-Maths-7b](https://huggingface.co/Kukedlc/Neural-4-Maths-7b)
30
+
31
+ ## 🧩 Configuration
32
+
33
+ ```yaml
34
+ models:
35
+ - model: Kukedlc/NeuralMaths-Experiment-7b
36
+ parameters:
37
+ weight: 1
38
+ - model: lemon-mint/gemma-ko-7b-instruct-v0.62
39
+ parameters:
40
+ weight: 1
41
+ - model: Ppoyaa/StarMonarch-7B
42
+ parameters:
43
+ weight: 1
44
+ - model: automerger/YamshadowExperiment28-7B
45
+ parameters:
46
+ weight: 1
47
+ - model: ichigoberry/MonarchPipe-7B-slerp
48
+ parameters:
49
+ weight: 1
50
+ - model: deepseek-ai/deepseek-coder-7b-instruct-v1.5
51
+ parameters:
52
+ weight: 1
53
+ - model: Kukedlc/Neural-4-Maths-7b
54
+ parameters:
55
+ weight: 1
56
+ merge_method: task_arithmetic
57
+ base_model: deepseek-ai/deepseek-math-7b-rl
58
+ parameters:
59
+ normalize: true
60
+ int8_mask: true
61
+ dtype: float16
62
+ ```
63
+
64
+ ## 💻 Usage
65
+
66
+ ```python
67
+ os.system(f"pip install -qU transformers accelerate")
68
+
69
+ from transformers import AutoTokenizer
70
+ import transformers
71
+ import torch
72
+
73
+ model = "ALBADDAWI/DeepCode-7B-Aurora-v4"
74
+ messages = [{"role": "user", "content": "What is a large language model?"}]
75
+
76
+ tokenizer = AutoTokenizer.from_pretrained(model)
77
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
78
+ pipeline = transformers.pipeline(
79
+ "text-generation",
80
+ model=model,
81
+ torch_dtype=torch.float16,
82
+ device_map="auto",
83
+ )
84
+
85
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
86
+ print(outputs[0]["generated_text"])
87
+ ```