remove check for weight

This commit is contained in:
nopperl 2024-04-18 20:57:10 +02:00
parent 5c82dae689
commit 9855bb6d6c

View file

@ -2692,7 +2692,7 @@ class OlmoModel(Model):
data = data.astype(np.float32)
# if f16 desired, convert any float32 2-dim weight tensors to float16
if self.ftype == 1 and data_dtype == np.float32 and name.endswith(".weight") and n_dims == 2:
if self.ftype == 1 and data_dtype == np.float32 and n_dims == 2:
data = data.astype(np.float16)
print(f"{new_name}, n_dims = {n_dims}, {old_dtype} --> {data.dtype}")