IIC
/

gonzalo-santamaria-iic commited on
Commit
93b673d
·
verified ·
1 Parent(s): 82acfb0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -47
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
- <!-- Provide a quick summary of what the model is/does. -->
13
 
14
  ## Model Details
15
 
16
  ### Model Description
17
 
18
- <!-- Provide a longer summary of what this model is. -->
19
 
20
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
21
 
22
- - **Developed by:** [More Information Needed]
23
- - **Funded by [optional]:** [More Information Needed]
24
- - **Shared by [optional]:** [More Information Needed]
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
- ### Model Sources [optional]
31
 
32
- <!-- Provide the basic links for the model. -->
 
 
 
 
33
 
34
- - **Repository:** [More Information Needed]
35
- - **Paper [optional]:** [More Information Needed]
36
- - **Demo [optional]:** [More Information Needed]
37
 
38
- ## Uses
39
 
40
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
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
- ### Recommendations
67
 
68
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
 
 
 
 
 
69
 
70
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
71
 
72
- ## How to Get Started with the Model
 
 
 
 
 
 
 
 
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