Skip to main content

Easy fine-tuning for BERT models

Project description

bert-for-sequence-classification

Pipeline for easy fine-tuning of BERT architecture for sequence classification

Quick Start

Installation

  1. Install the library
pip install bert-for-sequence-classification
  1. If you want to train you model on GPU, please install pytorch version compatible with your device.

To find the version compatible with the cuda installed on your GPU, check Pytorch website. You can learn CUDA version installed on your device by typing nvidia-smi in console or !nvidia-smi in a notebook cell.

CLI Use

bert-clf-train --path_to_config <path to yaml file>\

Example config file can be found here

Jupyter notebook

Example notebook can be found here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bert-for-sequence-classification-0.0.2.tar.gz (7.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page