modal-labs / llm-finetuning

Guide for fine-tuning Llama/Mistral/CodeLlama models and more
MIT License
538 stars 84 forks source link

[bug] inference.py mkdir #3

Closed leehanchung closed 1 year ago

leehanchung commented 1 year ago

In inference.py def merge(), it uses os.mkdir() to create intermediate folders, which python doesnt like.

use os.makedirs() instead.

https://github.com/modal-labs/llama-finetuning/blob/e675b16b902cef931bbf6490f960b228357d1495/inference.py#L20C1-L21C1

thundergolfer commented 1 year ago

Thanks @leehanchung, closed by https://github.com/modal-labs/llm-finetuning/commit/562e6a4d5a47c241d58016896ad29bfb2e46ab0b