-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Replicate API Added! #102
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
base: main
Are you sure you want to change the base?
Replicate API Added! #102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move these changes under /example/replicate?
Moves cog.yaml, predict.py, and Replicate-specific README content into the example/replicate/ directory as per reviewer feedback. Updates the main README.md to link to the new example location.
|
Hi @buttercrab! Thanks for the feedback! I've updated the PR based on your suggestion. Specifically, I've:
The Replicate badge is now only in the Thanks again for your guidance! Best, |
README.md
Outdated
| <a href="https://huggingface.co/nari-labs/Dia-1.6B"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/model-on-hf-lg-dark.svg" alt="Dataset on HuggingFace" height=42 ></a> | ||
| <a href="https://huggingface.co/spaces/nari-labs/Dia-1.6B"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/open-in-hf-spaces-lg-dark.svg" alt="Space on HuggingFace" height=38></a> | ||
| </p> | ||
| <p align="center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this
|
Hi @buttercrab, I've removed the paragraph referencing the Replicate example from the main The commit for this is Please let me know if there's anything else! Best, |
Hey @nari-labs team! 👋
Dia is great! The way it generates dialogue with speaker tags and handles things like
(laughs)is really well done.To help people try Dia and use it in their projects, I've put it on Replicate:
Demo & API: https://replicate.com/zsxkib/dia
I also posted about it on X/Twitter here: https://x.com/zsakib_/status/1915037657064759716
What's new in this PR:
This PR adds the necessary files and configuration to run the existing Dia model on Replicate:
predict.py: A script to load the model and run it using Cog's interface.cog.yaml: Defines the Python environment, system packages, and GPU requirements for Replicate..dockerignore: Optimizes the Docker build by excluding unnecessary files..gitignore: Includes Replicate/Cog specific files like.cog/and/model_cache/.README.md: Added a Replicate badge linking to the demo page.This setup provides:
Example API Usage:
On Replicate, users pay for their own compute time, which helps keep things running even if a model gets popular.
Let me know if you have any questions or feedback on the Replicate page. Happy to change anything.
Thanks for making Dia open source!
- Sakib @ Replicate