Skip to content

Commit

Permalink
remove redundant codes (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
openvino-dev-samples authored Feb 28, 2024
1 parent 722bc1a commit f66c34d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions notebooks/254-llm-chatbot/ov_llm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,7 @@ def __init__(
model, config, device, dynamic_shapes, ov_config, model_save_dir, **kwargs
)

def _reshape(
self,
model: "Model",
batch_size: int,
sequence_length: int,
height: int = None,
width: int = None,
):
def _reshape(self, model: "Model", *args, **kwargs):
shapes = {}
for inputs in model.inputs:
shapes[inputs] = inputs.get_partial_shape()
Expand Down Expand Up @@ -368,4 +361,4 @@ def _from_pretrained(
"baichuan2": OVBAICHUANModel,
"chatglm3": OVCHATGLMModel,
"gemma": OVModelForCausalLM
}
}

0 comments on commit f66c34d

Please sign in to comment.