Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
Signed-off-by: kiersten-stokes <[email protected]>
  • Loading branch information
kiersten-stokes committed Oct 24, 2024
1 parent 3a060d7 commit 4ad25a2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lm_eval/models/ibm_watsonx_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(
project_id = watsonx_credentials.get("project_id", None)
deployment_id = watsonx_credentials.get("deployment_id", None)
client.set.default_project(project_id)
self.generate_params = generate_params
self.generate_params = generate_params or {}
self.model = ModelInference(
model_id=model_id,
deployment_id=deployment_id,
Expand All @@ -167,12 +167,6 @@ def __init__(
)
self._model_id = model_id

def dump_parameters(self):
"""
Dumps the model's parameters into a serializable format.
"""
return self._parameters.model_dump()

@staticmethod
def _has_stop_token(response_tokens: List[str], context_tokens: List[str]) -> bool:
"""
Expand Down

0 comments on commit 4ad25a2

Please sign in to comment.