Update README.md
Browse files
README.md
CHANGED
|
@@ -1,15 +1,18 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
-
-
|
| 4 |
-
- NousResearch/Meta-Llama-3-8B-Instruct
|
| 5 |
-
- openchat/openchat-3.6-8b-20240522
|
| 6 |
-
- hfl/llama-3-chinese-8b-instruct-v2-lora
|
| 7 |
library_name: transformers
|
| 8 |
tags:
|
| 9 |
- mergekit
|
| 10 |
- merge
|
| 11 |
-
|
|
|
|
| 12 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# merge
|
| 14 |
|
| 15 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
|
@@ -25,19 +28,24 @@ The following models were included in the merge:
|
|
| 25 |
* [Sao10K/L3-8B-Stheno-v3.1](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.1)
|
| 26 |
* [openchat/openchat-3.6-8b-20240522](https://huggingface.co/openchat/openchat-3.6-8b-20240522) + [hfl/llama-3-chinese-8b-instruct-v2-lora](https://huggingface.co/hfl/llama-3-chinese-8b-instruct-v2-lora)
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
+
- wwe180/Llama3-10B-lingyang-v1
|
|
|
|
|
|
|
|
|
|
| 4 |
library_name: transformers
|
| 5 |
tags:
|
| 6 |
- mergekit
|
| 7 |
- merge
|
| 8 |
+
license:
|
| 9 |
+
- other
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
#The model is experimental, so the results cannot be guaranteed.
|
| 13 |
+
|
| 14 |
+
After simple testing, the effect is good, stronger than llama-3-8b!
|
| 15 |
+
|
| 16 |
# merge
|
| 17 |
|
| 18 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
|
|
|
| 28 |
* [Sao10K/L3-8B-Stheno-v3.1](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.1)
|
| 29 |
* [openchat/openchat-3.6-8b-20240522](https://huggingface.co/openchat/openchat-3.6-8b-20240522) + [hfl/llama-3-chinese-8b-instruct-v2-lora](https://huggingface.co/hfl/llama-3-chinese-8b-instruct-v2-lora)
|
| 30 |
|
| 31 |
+
## 💻 Usage
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
!pip install -qU transformers accelerate
|
| 35 |
+
|
| 36 |
+
from transformers import AutoTokenizer
|
| 37 |
+
import transformers
|
| 38 |
+
import torch
|
| 39 |
+
|
| 40 |
+
model = "Llama3-10B-lingyang-v1"
|
| 41 |
+
messages = [{"role": "user", "content": "What is a large language model?"}]
|
| 42 |
+
|
| 43 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
| 44 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 45 |
+
pipeline = transformers.pipeline(
|
| 46 |
+
"text-generation",
|
| 47 |
+
model=model,
|
| 48 |
+
torch_dtype=torch.float16,
|
| 49 |
+
device_map="auto",
|
| 50 |
+
)
|
| 51 |
+
|