From 3ee9168fc9bd6dc3339e431e96586ac314924330 Mon Sep 17 00:00:00 2001 From: JessicaXYWang <108437381+JessicaXYWang@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:01:23 -0700 Subject: [PATCH] add set device type --- .../ml/llm/HuggingFaceCausallmTransform.py | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/core/src/main/python/synapse/ml/llm/HuggingFaceCausallmTransform.py b/core/src/main/python/synapse/ml/llm/HuggingFaceCausallmTransform.py index 829264693d..ce27e4591b 100644 --- a/core/src/main/python/synapse/ml/llm/HuggingFaceCausallmTransform.py +++ b/core/src/main/python/synapse/ml/llm/HuggingFaceCausallmTransform.py @@ -48,6 +48,9 @@ def __init__(self, **kwargs): def get_config(self): return self.config + + def set_config(self, **kwargs): + self.config.update(kwargs) def camel_to_snake(text): return re.sub(r'(?