Skip to content

Conversation

@xiayouran
Copy link
Contributor

Bug info:

  File "/data/liyanpeng/pywork/dspy/dspy/teleprompt/bootstrap.py", line 84, in compile
    self._bootstrap()
  File "/data/liyanpeng/pywork/dspy/dspy/teleprompt/bootstrap.py", line 154, in _bootstrap
    success = self._bootstrap_one_example(example, round_idx)
  File "/data/liyanpeng/pywork/dspy/dspy/teleprompt/bootstrap.py", line 210, in _bootstrap_one_example
    raise e
  File "/data/liyanpeng/pywork/dspy/dspy/teleprompt/bootstrap.py", line 182, in _bootstrap_one_example
    lm = lm.copy(temperature=0.7 + 0.001 * round_idx) if round_idx > 0 else lm
AttributeError: 'LM' object has no attribute 'copy'

This problem occurs when parameter max_rounds is greater than 1, so I tried to fix it by adding a copy function to LM.

@okhat okhat merged commit f6b9d8b into stanfordnlp:main Oct 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants