Skip to content

Conversation

gkamtzir
Copy link

Problem

In the Google Colab notebook where training with LoRA is showcased, the script expects model weights to be in a binary format (in pytorch_model.bin). However, that's not the case anymore since accelerator stores the weights in safetensors format.

Solution

In this PR, I've added a new block where the safetensors weights for prior and lora are read and loaded in two dictionaries. Then, the dictionaries are used to load the states, which essentially resolved the problem.

This bug was first mentioned in #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant