Skip to content

Commit

Permalink
convert-hf.py, skipping hidden files.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Jul 28, 2024
1 parent 2339746 commit 57e3807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion converter/convert-hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def loadConfig(folderPath: str, weightsFloatType: int):
config = json.load(fc)
files = []
for fileName in allFiles:
if fileName.endswith('.safetensors'):
if fileName.endswith('.safetensors') and not fileName.startswith('.'):
files.append(os.path.join(folderPath, fileName))
if (len(files) == 0):
raise Exception('Not found any model file')
Expand Down

0 comments on commit 57e3807

Please sign in to comment.