Skip to content
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

feat: Decentralized Inference for rig #171

Merged
merged 21 commits into from
Jan 13, 2025

Conversation

eternal-ai-org
Copy link
Contributor

@eternal-ai-org eternal-ai-org commented Dec 27, 2024

Add onchain-verifiable, decentralized inference for rig with onchain Llama, onchain Hermes, and onchain Intellect.

@eternal-ai-org eternal-ai-org changed the title feat: Decentralized Inference for Zerepy Agents feat: Decentralized Inference for rig Dec 27, 2024
Copy link
Contributor

@0xMochan 0xMochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, we appreciate this integration in this PR! Wanna quickly note that the failing test case is not due to this project, but due to the API keys to test other providers are not available on your github repo. This is an oversight in our intergration testing on our end that we'll address Q1 '25.

You will have to address the failing fmt CI, checkout our CONTRIBUTING.md for more instructions!


Make sure you include an example in the examples repo. A good one to copy is the agent_with_grok.rs one as it tests every major feature. I tested this locally and got basic completion working, but could not get any tools to work, might need to check that.

It seems like a lot of this API sits on top of the openai integration. It might be suitable to actually reuse a lot of the openai models and implementations. Theoretically, you could add extra params similar to how additional_params works for the chain_id and the response onchain_data. I'm not entirely certain if the goal of this platform is for direct openai compatibility or if they plan deviating in the future, but at the very least, some set of openai models could be used to simplify this integration.

tl;dr

  • Address the changes I've suggested
  • Consider some amount of OpenAI reuse
  • Add an example (based on agent_with_grok)
  • Test all features (basically just have agent_with_grok but run with eternalai).

Let me know if you have any specific questions are if you need help in any step, I'd be happy to help! Also feel free to reach out to me on our Discord as well!

rig-core/src/providers/mod.rs Outdated Show resolved Hide resolved
rig-core/src/providers/eternalai.rs Outdated Show resolved Hide resolved
@0xMochan
Copy link
Contributor

Also, quick notes:

  • Our next release will be after the holidays, when the whole team is active again so there won't be a release until the first week of January.
  • In the future, please make an issue before creating a PR so we can better keep track of the feature, thanks!

@0xMochan
Copy link
Contributor

0xMochan commented Jan 9, 2025

@genesis-0000 Hey, I've seen a lot of updates here, is this ready for re-review?

@eternal-ai-org
Copy link
Contributor Author

@genesis-0000 Hey, I've seen a lot of updates here, is this ready for re-review?

yes sir

@0xMochan
Copy link
Contributor

Hey @genesis-0000 , could you rebase to main. Once we do that, we can merge this

@eternal-ai-org
Copy link
Contributor Author

ok friend

@0xMochan 0xMochan merged commit 791fe93 into 0xPlaygrounds:main Jan 13, 2025
3 of 4 checks passed
@github-actions github-actions bot mentioned this pull request Jan 13, 2025
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