Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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})
Metadata
Release files for torch-adapters 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torch_adapters-0.0.6.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_adapters-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / torch_adapters-0.0.6.tar.gz
| Download URL | torch_adapters-0.0.6.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
288de4194af494d85ba97828b4bf216994d0a2239cd62d5dbbd36d700cd1f061
|
|
BLAKE2b-256 checksum How to use checksums |
4b129aefae90f817d3d9decd71e1dca6860a5c037016352f822fa95ab91a47ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
|
Release files / torch_adapters-0.0.6-py3-none-any.whl
| Download URL | torch_adapters-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7687968dc8192fb45d41bb60f237bb66ed64891df7705abfc45e8a51ddb4011
|
|
BLAKE2b-256 checksum How to use checksums |
7179f71c0a334da17f76529b0db3d5fd7399c4484200ca3ea0acc3724a18a09c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
|