Skip to content

Commit 430e92b

Browse files
Fixing default value of model kwargs
1 parent fc7f166 commit 430e92b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsp/modules/hf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def openai_to_hf(**kwargs):
3131
class HFModel(LM):
3232
def __init__(self, model: str, checkpoint: Optional[str] = None, is_client: bool = False,
3333
hf_device_map: Literal["auto", "balanced", "balanced_low_0", "sequential"] = "auto",
34-
model_kwargs: Optional[dict] = None):
34+
model_kwargs: Optional[dict] = {}):
3535
"""wrapper for Hugging Face models
3636
3737
Args:

0 commit comments

Comments
 (0)