dkpark commited on
Commit
ad9a683
1 Parent(s): 989eec9

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - MLP-KTLim/llama-3-Korean-Bllossom-8B
4
+ - MLP-KTLim/llama-3-Korean-Bllossom-8B
5
+ - MLP-KTLim/llama-3-Korean-Bllossom-8B
6
+ - MLP-KTLim/llama-3-Korean-Bllossom-8B
7
+ - MLP-KTLim/llama-3-Korean-Bllossom-8B
8
+ tags:
9
+ - merge
10
+ - mergekit
11
+ - lazymergekit
12
+ - MLP-KTLim/llama-3-Korean-Bllossom-8B
13
+ ---
14
+
15
+ # Llama-3-Kor-Bllossom-12B
16
+
17
+ Llama-3-Kor-Bllossom-12B is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
18
+ * [MLP-KTLim/llama-3-Korean-Bllossom-8B](https://huggingface.co/MLP-KTLim/llama-3-Korean-Bllossom-8B)
19
+ * [MLP-KTLim/llama-3-Korean-Bllossom-8B](https://huggingface.co/MLP-KTLim/llama-3-Korean-Bllossom-8B)
20
+ * [MLP-KTLim/llama-3-Korean-Bllossom-8B](https://huggingface.co/MLP-KTLim/llama-3-Korean-Bllossom-8B)
21
+ * [MLP-KTLim/llama-3-Korean-Bllossom-8B](https://huggingface.co/MLP-KTLim/llama-3-Korean-Bllossom-8B)
22
+ * [MLP-KTLim/llama-3-Korean-Bllossom-8B](https://huggingface.co/MLP-KTLim/llama-3-Korean-Bllossom-8B)
23
+
24
+ ## 🧩 Configuration
25
+
26
+ ```yaml
27
+ slices:
28
+ - sources:
29
+ - model: MLP-KTLim/llama-3-Korean-Bllossom-8B
30
+ layer_range: [0,9]
31
+ - sources:
32
+ - model: MLP-KTLim/llama-3-Korean-Bllossom-8B
33
+ layer_range: [5,14]
34
+ - sources:
35
+ - model: MLP-KTLim/llama-3-Korean-Bllossom-8B
36
+ layer_range: [10,19]
37
+ - sources:
38
+ - model: MLP-KTLim/llama-3-Korean-Bllossom-8B
39
+ layer_range: [15,24]
40
+ - sources:
41
+ - model: MLP-KTLim/llama-3-Korean-Bllossom-8B
42
+ layer_range: [18,32]
43
+ merge_method: passthrough
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 = "dkpark/Llama-3-Kor-Bllossom-12B"
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
+ ```
model-1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9209a70776dbbf598982e87f617e926f5f9d0a597891096b53bd9fb3ff542b3b
3
+ size 4953594688
model-2.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2554851b981cc9d5380300af84ac0984f5396f49b45817d9ccfd98610dc509e0
3
+ size 4915924488
model-3.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8c7d25d511aceb3a054e25381ab85d5626377bcd8594b2a7891f9452a02ee43
3
+ size 4999811024
model-4.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c464eff220afb8704e04046332c7a330d5c76d5e2ab376fcfaabd3596059136d
3
+ size 4915907856
model-5.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55a1d55f1a0e0d31bed787a4749a4a970cd65a335748367e53166ee64e41b34e
3
+ size 4127369168