modelfile*.txt: use POSIX path separator (`/`)
#2
by
ShamrockLee
- opened
This PR changes the path separators of the paths following the FROM directive in the model files from the Windows one (a backslash, \
) to the POSIX one (a slash, /
), allowing model creation on MacOS and Linux.
As the Ollama documentation about the model files uses the POSIX path separators, so I anticipate that the Ollama upstream prefer such kind of path representation.
I have yet tested this change on Windows. If you have a Windows Ollama setup not above v0.5.4 and would like to help test this issue, please help testing by downloading the changed model files or by git fetch origin refs/pr/2:pathsep; git switch pathsep
. Suggestions and feedback are appreciated!