Open saum7800 opened 1 day ago
Similar issue happens while calling
model, tokenizer = FastVisionModel.from_pretrained(
"unsloth/Llama-3.2-11B-Vision-Instruct",
load_in_4bit = True, # Use 4bit to reduce memory use. False for 16bit LoRA.
use_gradient_checkpointing = "unsloth", # True or "unsloth" for long context
)
Error msg:
Unsloth: Cannot import unsloth_compiled_cache/Conv1d.py
Already upgraded unsloth
unsloth 2024.11.9 pypi_0 pypi unsloth-zoo 2024.11.7 pypi_0 pypi torch 2.5.1+cu121 pypi_0 pypi torchvision 0.20.1+cu121 pypi_0 pypi
Similar issue happens while calling
model, tokenizer = FastVisionModel.from_pretrained( "unsloth/Llama-3.2-11B-Vision-Instruct", load_in_4bit = True, # Use 4bit to reduce memory use. False for 16bit LoRA. use_gradient_checkpointing = "unsloth", # True or "unsloth" for long context )
Error msg:
Unsloth: Cannot import unsloth_compiled_cache/Conv1d.py
Already upgraded unsloth
unsloth 2024.11.9 pypi_0 pypi unsloth-zoo 2024.11.7 pypi_0 pypi torch 2.5.1+cu121 pypi_0 pypi torchvision 0.20.1+cu121 pypi_0 pypi
I guess I fixed it temporarily. I'm debugging the python file using Cursor / VS, and the python file is not under the root directory of the working space. unsloth_compiled_cache folder is created automatically under the root directory of working space while calling FastVisionModel.from_pretrained( ). Create a soft link in the same directory of the python file, pointing to unsloth_compiled_cache folder fixed this issue.
Randomly running into this error on an A100 SXM4 80GB, wonder if you have faced it and whether I am doing something wrong.
Above is my GPU setup
sometimes the same error is for rms_norm, sometimes for conv2d, and sometimes it just works. any idea if I might have done something wrong?