Error when loading model: OSError: [Errno 36] File name too long: 'cache/modules/cache/modules/cache/modules/
#1
by
orendar
- opened
Hey, thank you for sharing this great model with the community!
I am currently encountering an error on both the base and instruct models, and both when loading directly from the hub and from a local directory:
checkpoint ="mosaicml/mpt-7b"
model = AutoModelForCausalLM.from_pretrained(checkpoint, trust_remote_code=True)
Results in:
Error when loading model: OSError: [Errno 36] File name too long: 'cache/modules/cache/modules/cache/modules.....
Upon review it looks like it might not like that my HF cache directory is called "cache", so I can solve it myself by downloading to a different directory.
orendar
changed discussion status to
closed