Fix/errors for some models including Mistral-7b and Flan-ul2 (#388)
* For some models like Mistral and Flan-UL2, when downloaded from the hub the binary files write to a snapshots/<uuid> subdirectory. Then when the files are committed, they cannot be found and the commit fails with an error.
* Changed `local.split("/")[-1]` to os.path.basename(local) for compatibility with all OS including Windows.