Bitsandbytes Support #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preamble
As a way to greatly reduce the required VRAM for training, I'm in the process of (lazily) implementing bitsandbytes as a branch: https://git.ecker.tech/mrq/DL-Art-School/src/branch/bitsandbytes.
The conversion is simple:
import bitsandbytes as bnb
nn.Embedding
tobnb.nn.StableEmbedding
(orbnb.nn.Embedding
)torch.optim.Adam
tobnb.optim.Adam8bit
(and other Adam*s)nn.Linear
tobnb.nn.Linear8bitLt
And through the magic of quanitazation, VRAM should be reduced. I don't care about the performance uplifts, if there are any, I just want users to be able to train on a 3080.
Usage
To install bitsandbytes:
Additionally, on Windows, copy the files under
./bitsandbytes_windows/
intoai-voice-cloning/venv/Lib/site-packages/bitsandbytes/
. I am not responsible for anything from those DLLs, as I've sourced them from here.Errors
Using
bnb.nn.Embedding
, the following error occurs:Using
bnb.nn.StableEmbedding
, a different error occurs:What Do??
I don't expect anyone to lend a hand (much less, even see this, as I refuse to leave my sphere of influence), but I'm mostly just documenting my efforts and leaving a framework incase some wizard swoops in and fixes it in exchange for sucking him off or something.
I'm sure I'll finagle my way into getting it to work, but these are simply my initial barriers.
Nevermind, I'm a genius. I got training to work on 6GiB of VRAM.