Closed NasonZ closed 1 month ago
Full trace for reference:
AttributeError Traceback (most recent call last) Cell In[8], line 1 ----> 1 from dspy.teleprompt import MIPRO 3 import openai 4 gpt4 = dspy.OpenAI(model="gpt-4o", max_tokens=4000, model_type="chat")
File
File
File
File
File
File
File
File
File
File
File
AttributeError: module 'wandb.proto.wandb_internal_pb2' has no attribute 'Result'
Thanks for reporting it @NasonZ! @CShorten was this version merged into DSPy main?
Side note: There is a Weave integration in DSPy now if that's what you're looking for!
Hey both, I just took a quick look and indeed W&B has been added to DSPy, but not from the branch I was working on -- so I'm not sure the exact internal details.
So that might be relevant to this issue because it seems to be parsing a particular key from W&B, Result
-- however, it is still not clear to me if this is a dependency conflict type of thing or something else. I will take another look hopefully this afternoon.
Thanks for opening the issue @NasonZ -- I hate to offer such a naive solution, but given the nature of the internal APIs it's looking for, maybe simply upgrading the w&b library could fix this?
Side note: There is a Weave integration in DSPy now if that's what you're looking for!
Was mainly looking to test prompt optmisation for a RAG application but this intergration defintely makes weaviate a more attricative candidate to be the db.
cc @rogeriochaves
If you're all set @NasonZ, I will close the issue!
I'll add a note to the top of the W&B notebook stating the DSPy version and Weave integration.
@CShorten Thanks, upgrading from wandb-0.16.5
to wandb-0.16.6
did the trick.
I'm trying to run this notebook https://github.com/weaviate/recipes/blob/main/integrations/llm-frameworks/dspy/llms/Llama3.ipynb
It works fine but when I get to trying to run MIPRO
I get this error:
I know its a dspy issue but I was wondering if: a) The issue is with the notebook and not on my end. (Does anyone else encounter the same error) b) If anyone had any ideas how to get MIPRO working?