loralib
PyTorch implementation of low-rank adaptation (LoRA), a parameter-efficient approach to adapt a large pre-trained deep learning model which obtains performance on-par with full fine-tuning.
Decision gist · record as of 2026-08-14
Yes, if you are actively fine-tuning large language models and need parameter efficiency. The package is stable and well-tested on standard benchmarks. However, note that loralib has been dormant since August 2023 and may not track the latest library changes, so verify compatibility with your current dependencies before adopting it in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a deep learning framework (PyTorch) to be installed separately; loralib provides only the LoRA layer implementations.
- Installation is straightforward with no runtime dependencies.
- The package is dormant (last release August 2023), but remains stable for its core use case; note that alternative maintained implementations now exist.
License · maintenance · safety
permissive license (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2023-08-27 (1083 days) · last repo commit 2024-12-17 · 13,734 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 214,254 downloads/mo, #9,422 on PyPI
Alternatives
Verify before relying
pip install loralib
import loralib as lora
# Replace model layers with LoRA equivalents
model.layer = lora.Linear(in_features, out_features, r=8)
# Mark only LoRA parameters as trainable
lora.mark_only_lora_as_trainable(model)- Whether loralib remains compatible with current PyTorch and transformer library versions given its dormant maintenance status.
- Performance characteristics and memory savings compared to other parameter-efficient fine-tuning implementations.
- Whether the package tracks breaking changes in its dependencies since the last release in August 2023.
What it is and what it does
loralib is a library that implements Low-Rank Adaptation, a parameter-efficient fine-tuning technique for large language models. Instead of updating all weights during fine-tuning, LoRA freezes the original model weights and trains only small rank-decomposition matrices, dramatically reducing the number of trainable parameters and storage requirements while maintaining task performance.
The library integrates with transformer architectures and enables efficient task-switching during deployment without introducing inference latency. It requires Python 3.6 or later and has no external runtime dependencies, making it lightweight to install. The package is designed for use with pre-trained models from standard model repositories.
Use it for
- Fine-tune large language models on specific tasks while storing only a fraction of the parameters needed for full fine-tuning.
- Adapt pre-trained models to multiple downstream tasks with minimal storage overhead for each task-specific checkpoint.
- Reduce training time and memory consumption when working with models in the billions of parameters.
- Implement efficient multi-task learning where different LoRA adapters can be swapped during inference.
- Integrate parameter-efficient adaptation into production systems where model size and deployment efficiency matter.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively fine-tuning large language models and need parameter efficiency.
The package is stable and well-tested on standard benchmarks. However, note that loralib has been dormant since August 2023 and may not track the latest library changes, so verify compatibility with your current dependencies before adopting it in new projects.
Install
loralib on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The package is dormant (last release August 2023), but remains stable for its core use case; note that alternative maintained implementations now exist.
Requires a deep learning framework (PyTorch) to be installed separately; loralib provides only the LoRA layer implementations.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install loralib
import loralib as lora
# Replace model layers with LoRA equivalents
model.layer = lora.Linear(in_features, out_features, r=8)
# Mark only LoRA parameters as trainable
lora.mark_only_lora_as_trainable(model)
Verify before relying
- Whether loralib remains compatible with current PyTorch and transformer library versions given its dormant maintenance status.
- Performance characteristics and memory savings compared to other parameter-efficient fine-tuning implementations.
- Whether the package tracks breaking changes in its dependencies since the last release in August 2023.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,083 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 214,254 / month, #9,422 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: loralib-0.1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “low-rank adaptation pytorch”
- loralibloralib provides PyTorch modules that implement Low-Rank Adaptation…
- lycoris-loraImplements parameter-efficient fine-tuning algorithms (LoRA, LoHa,…
- linear-operatorLinearOperator abstracts structured matrix operations in PyTorch,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also adapters · peft · lycoris-lora · pytorch-pretrained-bert · transformer-smaller-training-vocab · llamafactory · setfit · adam-atan2-pytorch · fla-core