GitXplorerGitXplorer
s

pytora

public
2 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
fe3d603efe5d5d8583ad7e1ddec2814e156ba15d

make transformers import optional

llukash-jku committed 8 months ago
Unverified
88b0e59ec9c30209337694620e80111e67278ae0

first working version for pypi

llukash-jku committed 8 months ago
Unverified
a06489a1f6ca5e9a855e37ee29bfc49a2a429b31

initial commit

llukash-jku committed 8 months ago
Verified
ff5082822eb8b6304e2efb118cae6ece5ea515c1

Initial commit

ssirluk committed 8 months ago

README

The README file for this repository.

Pytora

A minimal pytorch implementation for lora via pytorch parametrizations

Installation

pip install pytora

Usage

from pytora import apply_lora

apply_lora(
    model,
    lora_r = 4,
    lora_alpha = 1,
    lora_dropout = 0.0
)

A simple example use case with a pretrained huggingface model can be found in demo.ipynb