Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- README.md +80 -0
- neuralqwen-2.5-1.5b-spanish.Q4_K_M.gguf +3 -0
- neuralqwen-2.5-1.5b-spanish.bf16.gguf +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
neuralqwen-2.5-1.5b-spanish.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
neuralqwen-2.5-1.5b-spanish.bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model:
|
3 |
+
- Qwen/Qwen2.5-1.5B-Instruct
|
4 |
+
- Kukedlc/Qwen2.5-1.5B-Spanish-1.0-DPO
|
5 |
+
datasets:
|
6 |
+
- multilingual/orca_dpo_pairs
|
7 |
+
- Kukedlc/Big-Spanish-1.2M
|
8 |
+
language:
|
9 |
+
- es
|
10 |
+
license: apache-2.0
|
11 |
+
tags:
|
12 |
+
- merge
|
13 |
+
- mergekit
|
14 |
+
- lazymergekit
|
15 |
+
- Qwen/Qwen2.5-1.5B-Instruct
|
16 |
+
- Kukedlc/Qwen2.5-1.5B-Spanish-1.0-DPO
|
17 |
+
- autoquant
|
18 |
+
- gguf
|
19 |
+
---
|
20 |
+
|
21 |
+
# NeuralQwen-2.5-1.5B-Spanish
|
22 |
+
|
23 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64d71ab4089bc502ceb44d29/bQMhMwK-xDvHMIbDFpxN5.png)
|
24 |
+
|
25 |
+
|
26 |
+
NeuralQwen-2.5-1.5B-Spanish is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
27 |
+
* [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct)
|
28 |
+
* [Kukedlc/Qwen2.5-1.5B-Spanish-1.0-DPO](https://huggingface.co/Kukedlc/Qwen2.5-1.5B-Spanish-1.0-DPO)
|
29 |
+
|
30 |
+
## 🧩 Configuration
|
31 |
+
|
32 |
+
```yaml
|
33 |
+
models:
|
34 |
+
- model: Qwen/Qwen2.5-1.5B
|
35 |
+
# No parameters necessary for base model
|
36 |
+
- model: Qwen/Qwen2.5-1.5B-Instruct
|
37 |
+
parameters:
|
38 |
+
density: 0.66
|
39 |
+
weight: 0.6
|
40 |
+
- model: Kukedlc/Qwen2.5-1.5B-Spanish-1.0-DPO
|
41 |
+
parameters:
|
42 |
+
density: 0.44
|
43 |
+
weight: 0.4
|
44 |
+
merge_method: dare_ties
|
45 |
+
base_model: Qwen/Qwen2.5-1.5B
|
46 |
+
parameters:
|
47 |
+
int8_mask: true
|
48 |
+
dtype: float16
|
49 |
+
```
|
50 |
+
|
51 |
+
## 💻 Usage
|
52 |
+
|
53 |
+
```python
|
54 |
+
!pip install -qU transformers accelerate
|
55 |
+
|
56 |
+
from transformers import AutoTokenizer
|
57 |
+
import transformers
|
58 |
+
import torch
|
59 |
+
|
60 |
+
model = "Kukedlc/NeuralQwen-2.5-1.5B-Spanish"
|
61 |
+
messages = [{"role": "system", "content": "Eres un asistente de pensamiento logico que piensa paso a paso, por cada pregunta que te hagan deberes comprobar la respuesta por 3 metodos diferentes."},
|
62 |
+
{"role": "user", "content": "Cuantas letras 'r' tiene la palabra strawberry?"}]
|
63 |
+
|
64 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
65 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
66 |
+
pipeline = transformers.pipeline(
|
67 |
+
"text-generation",
|
68 |
+
model=model,
|
69 |
+
torch_dtype=torch.float16,
|
70 |
+
device_map="auto",
|
71 |
+
)
|
72 |
+
|
73 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
74 |
+
print(outputs[0]["generated_text"])
|
75 |
+
```
|
76 |
+
|
77 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64d71ab4089bc502ceb44d29/Tu9FV0dQJXz-mlriKNqdE.png)
|
78 |
+
|
79 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64d71ab4089bc502ceb44d29/sg8c5HlcbJ89q5MknX-Gf.png)
|
80 |
+
|
neuralqwen-2.5-1.5b-spanish.Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20e48a2241a6191dd9d3b70ba5ae7de77ea93000db358548576fd4ce0130d0dd
|
3 |
+
size 1117321632
|
neuralqwen-2.5-1.5b-spanish.bf16.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82207a749376b6baca272cc4e6a61dc19a51d522b46b7eab31bdbcfed1cb87ab
|
3 |
+
size 3560417184
|