ALBADDAWI commited on
Commit
5d24a23
·
verified ·
1 Parent(s): ef3e121

Upload folder using huggingface_hub

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