# Torch Adapters
# Introduction
Small Library of Torch Adaptation modules
### Supported Methods
- [X] LoRA
- [X] Prompt Tuning
- [X] Bottleneck Adapter
- [X] Prefix Tuning
- [ ] P-Tuning
# Installation
You can install torch-adapters using:
$ pip install torch-adapters
# Usage
```python
from torch_adapters.utils import add_lora
# Add lora to the model
add_lora(model, ["key", "value"], {"alpha": 8, "r": 8})
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ma2za/torch-adapters",
"name": "torch-adapters",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "lora,adapters,llm,transformers,bert",
"author": "ma2za",
"author_email": "mazzapaolo2019@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4b/12/9aefae90f817d3d9decd71e1dca6860a5c037016352f822fa95ab91a47ff/torch_adapters-0.0.6.tar.gz",
"platform": null,
"description": "# Torch Adapters\n\n# Introduction\n\nSmall Library of Torch Adaptation modules\n\n### Supported Methods\n\n- [X] LoRA\n- [X] Prompt Tuning\n- [X] Bottleneck Adapter\n- [X] Prefix Tuning\n- [ ] P-Tuning\n\n# Installation\n\nYou can install torch-adapters using:\n\n $ pip install torch-adapters\n\n# Usage\n\n```python\nfrom torch_adapters.utils import add_lora\n\n# Add lora to the model\nadd_lora(model, [\"key\", \"value\"], {\"alpha\": 8, \"r\": 8})\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Small Library of Torch Adaptation modules",
"version": "0.0.6",
"project_urls": {
"Homepage": "https://github.com/ma2za/torch-adapters",
"Repository": "https://github.com/ma2za/torch-adapters"
},
"split_keywords": [
"lora",
"adapters",
"llm",
"transformers",
"bert"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7179f71c0a334da17f76529b0db3d5fd7399c4484200ca3ea0acc3724a18a09c",
"md5": "5ec5f37df405b3ef03053069d3a9567f",
"sha256": "f7687968dc8192fb45d41bb60f237bb66ed64891df7705abfc45e8a51ddb4011"
},
"downloads": -1,
"filename": "torch_adapters-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5ec5f37df405b3ef03053069d3a9567f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 7797,
"upload_time": "2023-06-18T22:37:56",
"upload_time_iso_8601": "2023-06-18T22:37:56.571222Z",
"url": "https://files.pythonhosted.org/packages/71/79/f71c0a334da17f76529b0db3d5fd7399c4484200ca3ea0acc3724a18a09c/torch_adapters-0.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4b129aefae90f817d3d9decd71e1dca6860a5c037016352f822fa95ab91a47ff",
"md5": "ed2a04ca3dbcdcc7587f692a0b69b70c",
"sha256": "288de4194af494d85ba97828b4bf216994d0a2239cd62d5dbbd36d700cd1f061"
},
"downloads": -1,
"filename": "torch_adapters-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "ed2a04ca3dbcdcc7587f692a0b69b70c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 5967,
"upload_time": "2023-06-18T22:37:58",
"upload_time_iso_8601": "2023-06-18T22:37:58.016770Z",
"url": "https://files.pythonhosted.org/packages/4b/12/9aefae90f817d3d9decd71e1dca6860a5c037016352f822fa95ab91a47ff/torch_adapters-0.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-18 22:37:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ma2za",
"github_project": "torch-adapters",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "torch-adapters"
}