convert : skip unknown tensors (need for LLaVA)
This commit is contained in:
parent
07f5cd7bec
commit
6b8d69b451
1 changed files with 3 additions and 1 deletions
|
@ -1195,7 +1195,9 @@ def convert_model_names(model: LazyModel, params: Params) -> LazyModel:
|
|||
for name, lazy_tensor in model.items():
|
||||
tensor_type, name_new = tmap.get_type_and_name(name, try_suffixes = (".weight", ".bias")) or (None, None)
|
||||
if name_new is None:
|
||||
raise Exception(f"Unexpected tensor name: {name}")
|
||||
#raise Exception(f"Unexpected tensor name: {name}")
|
||||
print(f"Unexpected tensor name: {name} - skipping")
|
||||
continue
|
||||
|
||||
if tensor_type in should_skip:
|
||||
print(f"skipping tensor {name_new}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue