Update README.md
Browse files
README.md
CHANGED
@@ -5,75 +5,61 @@ language:
|
|
5 |
base_model:
|
6 |
- Qwen/Qwen2.5-7B-Instruct
|
7 |
pipeline_tag: text-generation
|
|
|
8 |
---
|
9 |
|
10 |
# Model Card for RigoChat-7b-v2
|
11 |
|
12 |
-
|
13 |
|
14 |
## Model Details
|
15 |
|
16 |
### Model Description
|
17 |
|
18 |
-
|
19 |
|
20 |
-
|
21 |
|
22 |
-
-
|
23 |
-
-
|
24 |
-
-
|
25 |
-
- **Model type:** [More Information Needed]
|
26 |
-
- **Language(s) (NLP):** [More Information Needed]
|
27 |
-
- **License:** [More Information Needed]
|
28 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
|
35 |
-
- **Paper [optional]:** [More Information Needed]
|
36 |
-
- **Demo [optional]:** [More Information Needed]
|
37 |
|
38 |
-
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
### Direct Use
|
43 |
-
|
44 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
45 |
-
|
46 |
-
[More Information Needed]
|
47 |
-
|
48 |
-
### Downstream Use [optional]
|
49 |
-
|
50 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
51 |
-
|
52 |
-
[More Information Needed]
|
53 |
-
|
54 |
-
### Out-of-Scope Use
|
55 |
-
|
56 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
57 |
-
|
58 |
-
[More Information Needed]
|
59 |
-
|
60 |
-
## Bias, Risks, and Limitations
|
61 |
-
|
62 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
63 |
-
|
64 |
-
[More Information Needed]
|
65 |
|
66 |
-
|
67 |
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
-
|
71 |
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
Use the code below to get started with the model.
|
75 |
|
76 |
-
[More Information Needed]
|
77 |
|
78 |
## Training Details
|
79 |
|
|
|
5 |
base_model:
|
6 |
- Qwen/Qwen2.5-7B-Instruct
|
7 |
pipeline_tag: text-generation
|
8 |
+
license: cc-by-nc-4.0
|
9 |
---
|
10 |
|
11 |
# Model Card for RigoChat-7b-v2
|
12 |
|
13 |
+
`RigoChat-7b-v2` is a Qwen-2.5-based model specifically designed to provide accurate responses from Spanish queries. Specifically, is based on the [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) model and has been fine-tuned with Direct Preference Optimization ([DPO](https://arxiv.org/pdf/2305.18290)) for improved performance in Spanish language.
|
14 |
|
15 |
## Model Details
|
16 |
|
17 |
### Model Description
|
18 |
|
19 |
+
This model is the second version of RigoChat, a family of Large Language Models (LLMs) designed to solve typical NLP tasks with Spanish instructions such as: Tool Use, Summarization, Math, Code, Abstractive-QA, etc. Like [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct), this model has no specific use case and can be applied to a wide range of tasks. Indeed, it offers a slight improvement for generalist tasks in Spanish, particularly in RAG (Retriever Augmented Generation) systems with Spanish databases, as its training focused on resolving questions about contexts to prevent hallucinations and ensure safety responses.
|
20 |
|
21 |
+
Key benefits of this model include:
|
22 |
|
23 |
+
- Improved performance on generalist tasks in Spanish.
|
24 |
+
- Enhanced safety and reduced hallucinations in RAG systems with Spanish texts.
|
25 |
+
- Possibility of using it in different hardware requirements, especially those with reduced computational capacity. For more information on how to use RigoChat-7b-v2 on reduced hardware, see [IIC/RigoChat-7b-v2-GGUF](https://huggingface.co/IIC/RigoChat-7b-v2-GGUF).
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
Remarkably, this model was trained on a single A100 GPU with limited computational resources, yet achieved its current state in a relatively short time (less than 12 hours). This feat was made possible by leveraging a high-quality dataset and employing advanced techniques such as [LoRA](https://arxiv.org/pdf/2106.09685) to optimize memory usage. Further details on the training process can be found below.
|
28 |
|
29 |
+
- **Developed by:** Instituto de Ingeniería del Conocimiento (IIC).
|
30 |
+
- **Model type:** Generative Fine-tuned Transformer.
|
31 |
+
- **Language(s) (NLP):** Spanish.
|
32 |
+
- **License:** CC BY NC 4.0.
|
33 |
+
- **Finetuned from model:** [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct).
|
34 |
|
35 |
+
### Model Sources
|
|
|
|
|
36 |
|
37 |
+
- **Paper:** Cooming soon.
|
38 |
|
39 |
+
## How to Get Started with the Model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
+
- To load model and tokenizer:
|
42 |
|
43 |
+
```python
|
44 |
+
from transformers import (
|
45 |
+
AutoModelForCausalLM,
|
46 |
+
AutoTokenizer,
|
47 |
+
)
|
48 |
+
import torch
|
49 |
|
50 |
+
model_name = "ignita/RigoChat-7b-v2"
|
51 |
|
52 |
+
model = AutoModelForCausalLM.from_pretrained(
|
53 |
+
model_name,
|
54 |
+
torch_dtype=torch.bfloat16,
|
55 |
+
device_map="cuda",
|
56 |
+
trust_remote_code=True,
|
57 |
+
)
|
58 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
59 |
+
model_name,
|
60 |
+
trust_remote_code=True,
|
61 |
|
|
|
62 |
|
|
|
63 |
|
64 |
## Training Details
|
65 |
|