Skip to main content

Small Library of Torch Adaptation modules

Project description

Torch Adapters

Introduction

Small Library of Torch Adaptation modules

Supported Methods

  • LoRA
  • Prompt Tuning
  • Bottleneck Adapter
  • Prefix Tuning
  • P-Tuning

Installation

You can install torch-adapters using:

$ pip install torch-adapters

Usage

from torch_adapters.utils import add_lora

# Add lora to the model
add_lora(model, ["key", "value"], {"alpha": 8, "r": 8})

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

torch_adapters-0.0.6.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

torch_adapters-0.0.6-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

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