Skip to main content

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()

Metadata

Release files for finetuners 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finetuners 0.0.1
File Size Uploaded Provenance
finetuners-0.0.1.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for finetuners 0.0.1
File Interpreter ABI Platform
finetuners-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / finetuners-0.0.1.tar.gz

Download URL finetuners-0.0.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1a8a33dfafaf301cbbab4bf27bb3996321839e6d2554f5d124bf1bad925714c1
BLAKE2b-256 checksum
How to use checksums
06387258b9a01d7089b8c2b8ffc600750b53e031e57ac0bb191c1b78d4980ec0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / finetuners-0.0.1-py3-none-any.whl

Download URL finetuners-0.0.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c69e1a5a2c61d5526f3f4ae97542113d93f942a44c575d694628d3df772e6e5b
BLAKE2b-256 checksum
How to use checksums
1d35ee3068f2dae7d1ac1b358df94c1577341321e5a397574a139e7bc69006f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for finetuners 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page