-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try out Deepseek #557
Comments
This is a fascinating topic, and I have a couple of questions:
|
Hey @empeje - feel free to experiment and collaborate on this repo. |
Thanks @gabrielfior for the reply, I'm going to experiment with it. It's nice that test and benchmark are available. |
We do have a benchmark to compare agent implementations as well https://github.com/gnosis/prediction-market-agent/blob/main/prediction_market_agent/agents/think_thoroughly_agent/benchmark.py#L101. But of course it's not as accurate as just running the agents for some time and then checking it backwards after markets are resolved. |
Update to my research, it looks like we can directly test with DeepSeek by just changing the OpenAI URL and pass the token of DeepSeek there. See the following code from their official documentation # pip3 install langchain_openai
# python3 deepseek_v2_langchain.py
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model='deepseek-chat',
openai_api_key='<your api key>',
openai_api_base='https://api.deepseek.com',
max_tokens=1024
)
response = llm.invoke("Hi!")
print(response.content) |
If I were to implement the DeepSeek, what is the common way in this current codebase to do it? I can imagine I can just change the model type, but wondering if we should have a feature flag to switch between this agent so we can compare models. |
Yes, that's good thinking. Good agent to start is Prophet family, check out this file.. There, you will see that each agent is a separate class, and each class comes with its own This was fine until now as all Prophets are using openai, however now you will need to also change the API BASE URL, not just the model string, as you shown before. So that's something you need to add in there. The Prophet agent itself is defined in another repository , so you may need to do some modifications there as well. |
https://api-docs.deepseek.com/news/news1120
π o1-preview-level performance on AIME & MATH benchmarks.
π‘ Transparent thought process in real-time.
π οΈ Open-source models & API coming soon!
The text was updated successfully, but these errors were encountered: