ilevytate commited on
Commit
220ee46
1 Parent(s): f4ae57c

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +67 -0
  2. model-1.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - merge
4
+ - mergekit
5
+ - lazymergekit
6
+ - athirdpath/Orca-2-13b-Alpaca-Uncensored
7
+ - rombodawg/LosslessMegaCoder-llama2-13b-mini
8
+ base_model:
9
+ - athirdpath/Orca-2-13b-Alpaca-Uncensored
10
+ - rombodawg/LosslessMegaCoder-llama2-13b-mini
11
+ ---
12
+
13
+ # AlpacaCoder-OrcaLlamaFusion-13b
14
+
15
+ AlpacaCoder-OrcaLlamaFusion-13b is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
16
+ * [athirdpath/Orca-2-13b-Alpaca-Uncensored](https://huggingface.co/athirdpath/Orca-2-13b-Alpaca-Uncensored)
17
+ * [rombodawg/LosslessMegaCoder-llama2-13b-mini](https://huggingface.co/rombodawg/LosslessMegaCoder-llama2-13b-mini)
18
+
19
+ ## 🧩 Configuration
20
+
21
+ ```yaml
22
+ slices:
23
+ - sources:
24
+ - model: athirdpath/Orca-2-13b-Alpaca-Uncensored
25
+ layer_range: [0, 40]
26
+ - model: rombodawg/LosslessMegaCoder-llama2-13b-mini
27
+ layer_range: [0, 40]
28
+ # or, the equivalent models: syntax:
29
+ # models:
30
+ # - model: athirdpath/Orca-2-13b-Alpaca-Uncensored
31
+ # - model: rombodawg/LosslessMegaCoder-llama2-13b-mini
32
+ merge_method: slerp
33
+ base_model: athirdpath/Orca-2-13b-Alpaca-Uncensored
34
+ parameters:
35
+ t:
36
+ - filter: self_attn
37
+ value: [0, 0.5, 0.3, 0.7, 1]
38
+ - filter: mlp
39
+ value: [1, 0.5, 0.7, 0.3, 0]
40
+ - value: 0.5 # fallback for rest of tensors
41
+ dtype: float16
42
+ ```
43
+
44
+ ## 💻 Usage
45
+
46
+ ```python
47
+ !pip install -qU transformers accelerate
48
+
49
+ from transformers import AutoTokenizer
50
+ import transformers
51
+ import torch
52
+
53
+ model = "ilevytate/AlpacaCoder-OrcaLlamaFusion-13b"
54
+ messages = [{"role": "user", "content": "What is a large language model?"}]
55
+
56
+ tokenizer = AutoTokenizer.from_pretrained(model)
57
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
58
+ pipeline = transformers.pipeline(
59
+ "text-generation",
60
+ model=model,
61
+ torch_dtype=torch.float16,
62
+ device_map="auto",
63
+ )
64
+
65
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
66
+ print(outputs[0]["generated_text"])
67
+ ```
model-1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f121591d0f769be589925a0537dc6dce9a0f8ee055ed3461a56cdab116001bf
3
+ size 9948718608