Skip to content

Commit 6490ff7

Browse files
committed
py : fix whitespace
1 parent 1e7a009 commit 6490ff7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

convert-falcon-hf-to-gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def count_model_parts(dir_model: str) -> int:
250250
sys.exit()
251251

252252
n_dims = len(data.shape)
253-
data_dtype = data.dtype
253+
data_dtype = data.dtype
254254

255255
# if f32 desired, convert any float16 to float32
256256
if ftype == 0 and data_dtype == np.float16:

convert-llama-7b-pth-to-gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def count_model_parts(dir_model: str) -> int:
170170
print("gguf: get added tokens")
171171

172172
for key in addtokens_json:
173-
tokens.append( key.encode("utf-8") )
173+
tokens.append( key.encode("utf-8") )
174174
scores.append(-1000.0)
175175
toktypes.append(4) # user-defined token type
176176

convert-llama-hf-to-gguf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def count_model_parts(dir_model: str) -> int:
178178
print("gguf: get added tokens")
179179

180180
for key in addtokens_json:
181-
tokens.append( key.encode("utf-8") )
181+
tokens.append( key.encode("utf-8") )
182182
scores.append(-1000.0)
183183
toktypes.append(4) # user-defined token type
184184

@@ -294,7 +294,7 @@ def count_model_parts(dir_model: str) -> int:
294294
sys.exit()
295295

296296
n_dims = len(data.shape)
297-
data_dtype = data.dtype
297+
data_dtype = data.dtype
298298

299299
# if f32 desired, convert any float16 to float32
300300
if ftype == 0 and data_dtype == np.float16:

0 commit comments

Comments
 (0)