Update README.md
Browse files
README.md
CHANGED
@@ -1,64 +1 @@
|
|
1 |
-
|
2 |
-
tags:
|
3 |
-
- merge
|
4 |
-
- mergekit
|
5 |
-
- lazymergekit
|
6 |
-
- rhysjones/phi-2-orange
|
7 |
-
- cognitivecomputations/dolphin-2_6-phi-2
|
8 |
-
base_model:
|
9 |
-
- rhysjones/phi-2-orange
|
10 |
-
- cognitivecomputations/dolphin-2_6-phi-2
|
11 |
-
---
|
12 |
-
|
13 |
-
# Phiter
|
14 |
-
|
15 |
-
Phiter is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
16 |
-
* [rhysjones/phi-2-orange](https://huggingface.co/rhysjones/phi-2-orange)
|
17 |
-
* [cognitivecomputations/dolphin-2_6-phi-2](https://huggingface.co/cognitivecomputations/dolphin-2_6-phi-2)
|
18 |
-
|
19 |
-
## 🧩 Configuration
|
20 |
-
|
21 |
-
```yaml
|
22 |
-
models:
|
23 |
-
- model: mixedbread-ai/phi-2
|
24 |
-
# no parameters necessary for base model
|
25 |
-
- model: rhysjones/phi-2-orange
|
26 |
-
parameters:
|
27 |
-
density: 0.5
|
28 |
-
weight: 0.5
|
29 |
-
- model: cognitivecomputations/dolphin-2_6-phi-2
|
30 |
-
parameters:
|
31 |
-
density: 0.5
|
32 |
-
weight: 0.3
|
33 |
-
merge_method: ties
|
34 |
-
base_model: mixedbread-ai/phi-2
|
35 |
-
parameters:
|
36 |
-
normalize: true
|
37 |
-
dtype: float16
|
38 |
-
|
39 |
-
```
|
40 |
-
|
41 |
-
## 💻 Usage
|
42 |
-
|
43 |
-
```python
|
44 |
-
!pip install -qU transformers accelerate
|
45 |
-
|
46 |
-
from transformers import AutoTokenizer
|
47 |
-
import transformers
|
48 |
-
import torch
|
49 |
-
|
50 |
-
model = "Venkman42/Phiter"
|
51 |
-
messages = [{"role": "user", "content": "What is a large language model?"}]
|
52 |
-
|
53 |
-
tokenizer = AutoTokenizer.from_pretrained(model)
|
54 |
-
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
55 |
-
pipeline = transformers.pipeline(
|
56 |
-
"text-generation",
|
57 |
-
model=model,
|
58 |
-
torch_dtype=torch.float16,
|
59 |
-
device_map="auto",
|
60 |
-
)
|
61 |
-
|
62 |
-
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
63 |
-
print(outputs[0]["generated_text"])
|
64 |
-
```
|
|
|
1 |
+
GGUF for [Venkman42/Phiter](https://huggingface.co/Venkman42/Phiter)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|