meta-llama / llama-models

Utilities intended for use with Llama models.
Other
4.88k stars 838 forks source link

NotADirectoryError: [WinError 267] The directory name is invalid: #212

Open taras-kamo opened 2 weeks ago

taras-kamo commented 2 weeks ago

Hi! Windows 11 when I'm installing version Llama3.2-3B-Instruct:int4-qlora-eo8 I get an error NotADirectoryError: [WinError 267] The directory name is invalid: because of the colon ":" in the name

I fixed it by changing the Python code in the script Lib\site-packages\llama_stack\distribution\utils\model_utils.py line 13 return os.path.join(DEFAULT_CHECKPOINT_DIR, descriptor) --> return os.path.join(DEFAULT_CHECKPOINTDIR, descriptor.replace(":", ""))

Jinrusui commented 1 week ago

Thanks! It works! Just go to the environment document and change it!