Reduce cognitive load when finetuning transformers 🫠
Project description
Finetuners: Reduce cognitive load when finetuning transformers 🥴
Catchy intro describing the value proposition of the finetuners package.
Installation
pip install finetuners
Example
import pathlib
from finetuners import (
FinetunerArguments,
FinetunerForTextClassification,
FinetunersDataset,
)
# load dataset
dataset = FinetunersDataset.from_path(
pathlib.Path(__file__).parents[1].joinpath("datasets", "angry-tweets")
)
# define arguments
args = FinetunerArguments(
model_name="awesome_model",
pretrained_model_name_or_path="Maltehb/danish-bert-botxo",
training_args={
"output_dir": "./runs/",
"learning_rate": 5e-5,
},
)
# init finetuner
finetuner = FinetunerForTextClassification(
dataset=dataset,
args=args,
)
finetuner.finetune()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
finetuners-0.0.1.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file finetuners-0.0.1.tar.gz.
File metadata
- Download URL: finetuners-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a8a33dfafaf301cbbab4bf27bb3996321839e6d2554f5d124bf1bad925714c1
|
|
| MD5 |
862377a2d8d44a750f325e17fe15ac8c
|
|
| BLAKE2b-256 |
06387258b9a01d7089b8c2b8ffc600750b53e031e57ac0bb191c1b78d4980ec0
|
File details
Details for the file finetuners-0.0.1-py3-none-any.whl.
File metadata
- Download URL: finetuners-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c69e1a5a2c61d5526f3f4ae97542113d93f942a44c575d694628d3df772e6e5b
|
|
| MD5 |
78207c08131aef6e9e7e3a9226718361
|
|
| BLAKE2b-256 |
1d35ee3068f2dae7d1ac1b358df94c1577341321e5a397574a139e7bc69006f9
|