Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

LoraSetup

A repository for learning and experimenting with Lora (Low-Rank Adaptation) in Python.

About Lora

LoRA (Low-Rank Adaptation) is a technique for efficiently fine-tuning large language models and other neural networks. It works by freezing the pre-trained model weights and injecting trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks.

Project Structure

LoraSetup/
├── data/               # Training and evaluation datasets
├── models/             # Pre-trained models and fine-tuned Lora adapters
├── notebooks/          # Jupyter notebooks for experiments
├── scripts/            # Training and inference scripts
├── src/                # Source code
│   ├── data/           # Data processing utilities
│   ├── models/         # Model definitions
│   ├── training/       # Training utilities
│   └── utils/          # Miscellaneous utilities
├── configs/            # Configuration files
├── requirements.txt    # Python dependencies
└── README.md           # This file

Getting Started

Prerequisites

  • Python 3.8+
  • PyTorch 1.10+
  • Transformers library
  • CUDA-capable GPU (recommended)

Installation

  1. Clone this repository:

    git clone https://github.com/KiranChilledOut/LoraSetup.git
    cd LoraSetup
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt

Usage

Detailed usage instructions will be added as the project develops.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

About

Repository for learning and experimenting with Lora (Low-Rank Adaptation) in Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors