Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Fix ReinforceJob LM assignment (#8249)

Omar Khattab39387cbeab1f
diff --git a/dspy/clients/provider.py b/dspy/clients/provider.py
index a56b35502..f753fbd34 100644
--- a/dspy/clients/provider.py
+++ b/dspy/clients/provider.py
@@ -37,7 +37,7 @@ class TrainingJob(Future):
class ReinforceJob:
def __init__(self, lm: "LM", train_kwargs: Optional[Dict[str, Any]] = None):
- self.lm = LM
+ self.lm = lm
self.train_kwargs = train_kwargs or {}
self.checkpoints = {}
self.last_checkpoint = None