You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LoRA saving and loading: does save_method = 'lora' save full model? #186
but model.safetensors file has 4.45 GB. It saved also the following files: config.json, generation_config.json, model.safetensors, special_tokens_map.json, tokenizer.json, tokenizer.model, tokenizer_config.json.
I also don't understand how to load only such LoRA saved locally (if it was OK) because your wiki mentions to load it just as the regular model:
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "LORA_MODEL_NAME",
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit,
)
Thanks for your help! :)
trainer = Trainer(...)
trainer.train()
@ziemowit-s I think I fixed the problem (hopefully!) Could you try updating Unsloth :) pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git for local machines. This does not install any new dependencies
Activity
danielhanchen commentedon Feb 20, 2024
@ziemowit-s I think I fixed the problem (hopefully!) Could you try updating Unsloth :)
pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.gitfor local machines. This does not install any new dependenciestdolega commentedon Feb 23, 2024
What are your LoRA parameters? 4 GiB can be normal with high
rsaved as float32ziemowit-s commentedon Mar 19, 2024
I had something around
lora_r=32, but after the update it works well, so thanks! :)Fix Gemma 3N (unslothai#186)
Merge pull request unslothai#186 from unslothai/fix/colab-setup-fixes