We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba1ffb commit 21834b9Copy full SHA for 21834b9
build/builder.py
@@ -96,12 +96,13 @@ def from_args(cls, args): # -> BuilderArgs:
96
args.pte_path,
97
args.gguf_path,
98
]:
99
- path = str(path)
100
- if path.endswith("/"):
101
- path = path[:-1]
102
- path_basename = os.path.basename(path)
103
- if "chat" in path_basename:
104
- is_chat_model = True
+ if path is not None:
+ path = str(path)
+ if path.endswith("/"):
+ path = path[:-1]
+ path_basename = os.path.basename(path)
+ if "chat" in path_basename:
105
+ is_chat_model = True
106
107
return cls(
108
checkpoint_dir=checkpoint_dir,
0 commit comments