Skip to content

Conversation

zbambergerNLP
Copy link
Contributor

When performing GEPA optimization using a pipeline that involves an embedder, the following error tends to occur:

Exception ignored in: <function Unbatchify.__del__ at 0x1263e0180>
Traceback (most recent call last):
  File "/Users/zachbam/.local/share/mise/installs/python/3.12.11/lib/python3.12/site-packages/dspy/utils/unbatchify.py", line 112, in __del__
    self.close()
  File "/Users/zachbam/.local/share/mise/installs/python/3.12.11/lib/python3.12/site-packages/dspy/utils/unbatchify.py", line 92, in close
    if not self.stop_event.is_set():
           ^^^^^^^^^^^^^^^
AttributeError: 'Unbatchify' object has no attribute 'stop_event'

The issue seems to stem from instances where deletion is called, but the object is already gone. My suggested fix resolves this issue.

When performing GEPA optimization using a pipeline that involves an embedder, the following error tends to occur: 

```
Exception ignored in: <function Unbatchify.__del__ at 0x1263e0180>
Traceback (most recent call last):
  File "/Users/zachbam/.local/share/mise/installs/python/3.12.11/lib/python3.12/site-packages/dspy/utils/unbatchify.py", line 112, in __del__
    self.close()
  File "/Users/zachbam/.local/share/mise/installs/python/3.12.11/lib/python3.12/site-packages/dspy/utils/unbatchify.py", line 92, in close
    if not self.stop_event.is_set():
           ^^^^^^^^^^^^^^^
AttributeError: 'Unbatchify' object has no attribute 'stop_event'
```

The issue seems to stem from instances where deletion is called, but the object is already gone. My suggested fix resolves this issue.
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.

1 participant