Downloads · 30 days
31
5% of all-time downloads
DracolIA/GPT-2-LoRA-HealthCare
GPT-2-LoRA-HealthCare is a text generation model from DracolIA. Use it when you need the model to write or continue text. It is set up for keras. The card lists the license as apache-2.0.
Original Author: BastienHot ZhanPascal<br Date created: 2024/02/25 <br Dataset: <ul <li<a href="https://www.kaggle.com/datasets/jpmiller/layoutlm"MedQuAD from Kaggle</a</li <li<a href="https://pubmedqa.github.io/"PubM…
Downloads · 30 days
31
5% of all-time downloads
All-time downloads
609
Public
Repo size
6.2 GB
Likes
0
Public
Click a slice to open those files.
.keras3.1 GB · 100%
From the Hugging Face model README
Original Author: BastienHot ZhanPascal<br> Date created: 2024/02/25 <br> Dataset:
<ul> <li><a href="https://www.kaggle.com/datasets/jpmiller/layoutlm">MedQuAD from Kaggle</a></li> <li><a href="https://pubmedqa.github.io/">PubMedQA</a></li> <li><a href="http://participants-area.bioasq.org/datasets/">BioASQ – Task B</a></li> <li><a href="https://quac.ai/">QuAC</a></li> <li><a href="https://rajpurkar.github.io/SQuAD-explorer/">SQuAD</a></li> </ul>The GPT-2-LoRA-HealthCare model was developed as part of a student project during the Bachelor of Technology (BUT) in Computer Science at IUT Villetaneuse. It is based on the pre-trained model from keras_nlp (gpt2-large-en), with the incorporation of the LoRA technique to enhance training efficiency. The model is specifically designed for Q&A interactions in a healthcare context, with a patient asking a question and the model responding with an appropriate answer.
LoRA is a training technique used for large language models (LLM) to train them more efficiently and with a less time consuming approach. How it works is the following:
<ul> <li>Look at the pretrained model's weights</li> <li>Determine the linearly independent and dependent columns of the matrix</li> <li>Create the new LoRA layer with only the linearly independent matrix columns</li> <li>Freeze the pretrained model's weights</li> <li>Train the LoRA layer weights</li> <li>Merge the weights of the pretrained model and the LoRA layer</li> </ul>