palotas-bme/DistilBERT

0

stars

34

commits

Jupyter Notebook

primary language

Dec 10, 2024

updated

README

Deep Learning assignment - Question answering with DistilBERT

Team name: Tensor Titans

Team members

  • Péter M. Palotás - K8GD4Q
  • Csanád Mihály Skribanek - G0OTOY

Project description

Read the paper of the DistilBERT Model. This is a distilled version of BERT that is smaller, quicker, cheaper, and lighter than the original BERT. (Compared to bert-base-uncased, it runs 60% faster and uses 40% less parameters while maintaining over 95% of BERT's performance on the GLUE language understanding benchmark.)

You can find the source of the model here: https://huggingface.co/distilbert-base-uncased-distilled-squad This model is a DistilBERT-base-uncased fine-tune checkpoint that was refined using knowledge distillation on SQuAD v1.1. Ideally, this should run in Colab. You can also use parameter-efficient methods (low-rank adaptation, quantization, etc.)

Finetune the model for question answering task. Build the inference pipeline, report results for the pretrained model and for the fine-tuned version, as well. If you're up for a challenge, you can find other databases, or translate them to Hungarian and see how your model performs on Hungarian questions.

Related GitHub repository: https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation

Related paper: https://arxiv.org/abs/1910.01108

Current state of the project

We are going to use the MRQA dataset to fine-tune our model which is a dataset for training LLMs for extractive question answering tasks. It includes multiple datasets (for example: SQUAD, TriviaQA, NaturalQA) in a uniform format. The files required for final submission can be found in the Milestone 3 directory.

  • Dockerfile can be used to build the container
  • requirements.txt contains the appropriate versions of the libraries needed to run the preprocessing script

Build

make

Train

make train

Run

make start

Contributors

skcsanad

34 commits

palotas-bme/DistilBERT

0

stars

34

commits

Jupyter Notebook

primary language

Dec 10, 2024

updated

README

Deep Learning assignment - Question answering with DistilBERT

Team name: Tensor Titans

Team members

  • Péter M. Palotás - K8GD4Q
  • Csanád Mihály Skribanek - G0OTOY

Project description

Read the paper of the DistilBERT Model. This is a distilled version of BERT that is smaller, quicker, cheaper, and lighter than the original BERT. (Compared to bert-base-uncased, it runs 60% faster and uses 40% less parameters while maintaining over 95% of BERT's performance on the GLUE language understanding benchmark.)

You can find the source of the model here: https://huggingface.co/distilbert-base-uncased-distilled-squad This model is a DistilBERT-base-uncased fine-tune checkpoint that was refined using knowledge distillation on SQuAD v1.1. Ideally, this should run in Colab. You can also use parameter-efficient methods (low-rank adaptation, quantization, etc.)

Finetune the model for question answering task. Build the inference pipeline, report results for the pretrained model and for the fine-tuned version, as well. If you're up for a challenge, you can find other databases, or translate them to Hungarian and see how your model performs on Hungarian questions.

Related GitHub repository: https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation

Related paper: https://arxiv.org/abs/1910.01108

Current state of the project

We are going to use the MRQA dataset to fine-tune our model which is a dataset for training LLMs for extractive question answering tasks. It includes multiple datasets (for example: SQUAD, TriviaQA, NaturalQA) in a uniform format. The files required for final submission can be found in the Milestone 3 directory.

  • Dockerfile can be used to build the container
  • requirements.txt contains the appropriate versions of the libraries needed to run the preprocessing script

Build

make

Train

make train

Run

make start

Contributors

skcsanad

34 commits

Languages

Jupyter Notebook

95.7%

Python

3.4%