Commit
·
4be9cbd
1
Parent(s):
06e7489
Update README.md
Browse files
README.md
CHANGED
@@ -13,19 +13,39 @@ tags:
|
|
13 |
- RAG
|
14 |
- Retrieval Augmented Generation
|
15 |
---
|
|
|
|
|
|
|
16 |
<h1>
|
17 |
-
<a alt="Ask2Democracy project" href="https://github.com/jorge-henao/ask2democracy">Ask2Democracy project</a>
|
18 |
</h1>
|
19 |
<hr>
|
20 |
|
21 |
-
##
|
|
|
|
|
22 |
|
23 |
-
|
|
|
24 |
|
25 |
-
|
26 |
-
- 🇨🇴 [Jorge Henao](https://
|
27 |
- 🇨🇴 [David Torres ](https://github.com/datorresb)
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
## Training Parameters
|
30 |
|
31 |
- Base Model: [LLaMA-7B](https://arxiv.org/pdf/2302.13971.pdf)
|
@@ -45,4 +65,23 @@ This model is an open-source chat model fine-tuned with [LoRA](https://github.co
|
|
45 |
- [Alpacaca chat Dialogs](https://github.com/project-baize/baize)
|
46 |
- [Medical chat Dialogs](https://github.com/project-baize/baize)
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
More details can be found in the Ask2Democracy [GitHub](https://github.com/jorge-henao/ask2democracy)
|
|
|
13 |
- RAG
|
14 |
- Retrieval Augmented Generation
|
15 |
---
|
16 |
+
---
|
17 |
+
license: apache-2.0
|
18 |
+
---
|
19 |
<h1>
|
20 |
+
<a alt="About Ask2Democracy project" href="https://github.com/jorge-henao/ask2democracy">About Ask2Democracy project</a>
|
21 |
</h1>
|
22 |
<hr>
|
23 |
|
24 |
+
## About Ask2Democracy project
|
25 |
+
This model was developed as part of the Ask2Democracy project during the 2023 Somos NLP Hackathon. Our focus during the hackathon was on enhancing the generative capabilities in spanish training an open source model for this purpose, which is intended to be incorporated into the space demo.
|
26 |
+
However, we encountered performance limitations due to the model's large size, which caused issues when running it on limited hardware. Specifically, we observed an inference time of approximately 70 seconds when using a GPU.
|
27 |
|
28 |
+
To address this issue, we are currently working on optimizing ways to integrate the model into the AskDemocracy space demo. Remaining work is required in order to improve the model's performance.
|
29 |
+
[Further updates are expected to be integrated in the AskDemocracy space demo](https://huggingface.co/spaces/jorge-henao/ask2democracycol)
|
30 |
|
31 |
+
**Developed by:**
|
32 |
+
- 🇨🇴 [Jorge Henao](https://linktr.ee/jorgehenao)
|
33 |
- 🇨🇴 [David Torres ](https://github.com/datorresb)
|
34 |
|
35 |
+
## What's baizemocracy-lora-7B-cfqa-conv model?
|
36 |
+
|
37 |
+
This model is an open-source chat model fine-tuned with [LoRA](https://github.com/microsoft/LoRA) inspired by [Baize project](https://github.com/project-baize/baize-chatbot/tree/main/). It was trained with the Baize datasets and the ask2democracy-cfqa-salud-pension dataset, wich contains almost 4k instructions to answers questions based on a context relevant to citizen concerns and public debate in spanish.
|
38 |
+
|
39 |
+
Two model variations was trained during the Hackathon Somos NLP 2023:
|
40 |
+
- A generative context focused model
|
41 |
+
- A conversational style focused model
|
42 |
+
|
43 |
+
This model variation is more focused on source based augmented retrieval generation. See Pre-proccessing dataset section.
|
44 |
+
This model variation is focused in a more conversational way of asking questions. [Baizemocracy-conv](https://huggingface.co/hackathon-somos-nlp-2023/baizemocracy-lora-7B-cfqa-conv).
|
45 |
+
|
46 |
+
|
47 |
+
Testing is a work in progress, we decide to share both model variations with community in order to invovle more people experimenting what it works better and find other possible use cases.
|
48 |
+
|
49 |
## Training Parameters
|
50 |
|
51 |
- Base Model: [LLaMA-7B](https://arxiv.org/pdf/2302.13971.pdf)
|
|
|
65 |
- [Alpacaca chat Dialogs](https://github.com/project-baize/baize)
|
66 |
- [Medical chat Dialogs](https://github.com/project-baize/baize)
|
67 |
|
68 |
+
## About pre-processing
|
69 |
+
|
70 |
+
Ask2Democracy-cfqa-salud-pension dataset was formated like this::
|
71 |
+
```python
|
72 |
+
def format_ds(example):
|
73 |
+
example["text"] = (
|
74 |
+
"Given the Context answer the Question. Answers must be source based, use topics to elaborate on the Response if they're provided."
|
75 |
+
#"Answer the question and use any available context or related topics if they are available"
|
76 |
+
+ " Question: '{}'".format(example['input'].strip())
|
77 |
+
+ " Context: {}".format(example['instruction'].strip())
|
78 |
+
+ " Topics: {}".format(example['topics'])
|
79 |
+
+ " Response: '{}'".format(example['output'].strip())
|
80 |
+
)
|
81 |
+
return example
|
82 |
+
```
|
83 |
+
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
More details can be found in the Ask2Democracy [GitHub](https://github.com/jorge-henao/ask2democracy)
|