Downloads · 30 days
3
2% of all-time downloads
dpalejandro/mixtral-8x7B-redbioma-qg-v0.2
mixtral-8x7B-redbioma-qg-v0.2 is a text generation model from dpalejandro. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model was trained with the purpose of generating closed domain question-answer pairs focused on scientific texts of Costa Rica biodiversity. This texts are from scientific papers describing all kinds of species a…
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
162
Public
Repo size
187 GB
Likes
0
Public
Click a slice to open those files.
.bin93.4 GB · 100%
From the Hugging Face model README
This model was trained with the purpose of generating closed domain question-answer pairs focused on scientific texts of Costa Rica biodiversity. This texts are from scientific papers describing all kinds of species and its caractheristics. The texts are then inserted in the model to get high quality QA pairs.
All the resources and data used for the purposed of this project comes from the project redbioma through the Computer Science School of the Instituto Tecnológico de Costa Rica (ITCR).
This model was trained focused on closed domain question-answering generation in spanish, it is not intended to use for other tasks.
The model was trained on a small dataset of QA pairs (26035 examples), which are mostly extractive, therefore the model is biased in the way it can generate answers from a context. It works well with text from 400 chars to 4000 chars. But, due to the low diversity of texts, the model often generate one or two QA pairs. With some prompt engineering the results could be improved.
The prompt used that generated the best results is the following:
Genere un grupo de preguntas distintas y sus respuestas exactas correspondientes basadas en la entrada proporcionada sin repetir preguntas. Las preguntas deben explorar diferentes facetas de la información presentada, las respuestas deben ser precisas, detalladas y comprensibles para un público no especialista. Enfóquese en la claridad y profundidad para mejorar la comprensión.
Sentences such as grupo, exactas, sin repetir preguntas improved the way the model generate the questions, it made the results more diverse, detailed and focused on using only the knowledge from the context.
The model show only one case of endless generation using this prompt and the following input text. Further training or prompt engineering could resolve this issue.
Vuela recto y rápidamente hasta la percha, y luego mantiene el cuerpo inmóvil mientras inclina la cabeza en ángulos raros para revisar la vegetación a su alrededor. Atrapa insectos, sus larvas y pupas, lagartijas pequeñas o frutos del follaje mediante salidas súbitas y agitadas. Un solo individuo puede acompañar a bandadas mixtas de hormigueritos, furnáridos y tangaras.
This model was trained using the following datasets:
Total training examples: 26035
Total validation examples: 5579
Total testing examples: 5580
The model was trained using self-supervised training. The parameters used for the training are as follows:
per_device_train_batch_size=4,
per_device_eval_batch_size=2,
eval_accumulation_steps=2,
gradient_accumulation_steps=4,
gradient_checkpointing=True,
fp16=True,
evaluation_strategy="steps",
adam_beta1=0.9,
adam_beta2=0.95,
num_train_epochs=1,
learning_rate=5e-5,
weight_decay=0.01,
lr_scheduler_type="cosine",
warmup_ratio=0.1,
logging_steps=50,
eval_steps=100,
save_strategy="no",
report_to="tensorboard",
gradient_checkpointing_kwargs={"use_reentrant":False},
deepspeed="./deepspeed_config.json",
optim="adamw_bnb_8bit",
All this parameters were choosen to keep good memory consumption and training time. This were taken from https://blog.vessl.ai/finetuning-mixtral-8x7B. Deepspeed configuration could be found in the model repo.
For the training and inference phase it was used Jarvis.ai.
The model was trained with the following hardware specifications:
The model was trained using Pytorch.
Alejandro Díaz Pereira (Main developer)
Email: [email protected]
Github: alejandrodp