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 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 torch_adapters-0.0.6.tar.gz.
File metadata
- Download URL: torch_adapters-0.0.6.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
288de4194af494d85ba97828b4bf216994d0a2239cd62d5dbbd36d700cd1f061
|
|
| MD5 |
ed2a04ca3dbcdcc7587f692a0b69b70c
|
|
| BLAKE2b-256 |
4b129aefae90f817d3d9decd71e1dca6860a5c037016352f822fa95ab91a47ff
|
File details
Details for the file torch_adapters-0.0.6-py3-none-any.whl.
File metadata
- Download URL: torch_adapters-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7687968dc8192fb45d41bb60f237bb66ed64891df7705abfc45e8a51ddb4011
|
|
| MD5 |
5ec5f37df405b3ef03053069d3a9567f
|
|
| BLAKE2b-256 |
7179f71c0a334da17f76529b0db3d5fd7399c4484200ca3ea0acc3724a18a09c
|