Skip to content

Commit c71543c

Browse files
committed
resolve comment
1 parent 5eba3e3 commit c71543c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2999,6 +2999,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
29992999
@ModelBase.register("InternVisionModel")
30003000
class InternVisionModel(MmprojModel):
30013001
def set_gguf_parameters(self):
3002+
assert self.hparams_vision is not None
30023003
if isinstance(self.hparams_vision['image_size'], list):
30033004
self.hparams_vision['image_size'] = self.hparams_vision['image_size'][0]
30043005
if isinstance(self.hparams_vision['patch_size'], list):

gguf-py/gguf/tensor_mapping.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,6 @@ class TensorNameMap:
12051205

12061206
MODEL_TENSOR.V_MM_INP_NORM: (
12071207
"multi_modal_projector.norm",
1208-
"model.multi_modal_projector.layer_norm", # Intern-S1
12091208
),
12101209

12111210
MODEL_TENSOR.V_MM_SOFT_EMB_NORM: (

0 commit comments

Comments
 (0)