DSPy: The framework for programming—not prompting—language models
Python
Fixing default value of model kwargs
Ben Steel430e92bb48af
diff --git a/dsp/modules/hf.py b/dsp/modules/hf.pyindex 78ace1fbe..13c7ad6d4 100644--- a/dsp/modules/hf.py+++ b/dsp/modules/hf.py@@ -31,7 +31,7 @@ def openai_to_hf(**kwargs):class HFModel(LM):def __init__(self, model: str, checkpoint: Optional[str] = None, is_client: bool = False,hf_device_map: Literal["auto", "balanced", "balanced_low_0", "sequential"] = "auto",- model_kwargs: Optional[dict] = None):+ model_kwargs: Optional[dict] = {}):"""wrapper for Hugging Face modelsArgs: