-
Notifications
You must be signed in to change notification settings - Fork 278
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
Add more Replicate models (take 2) #1130
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.
neat!
@@ -835,7 +880,7 @@ describe.concurrent("HfInference", () => { | |||
expect(res).toBeInstanceOf(Blob); | |||
}); | |||
|
|||
it("textToSpeech OuteTTS", async () => { | |||
it.skip("textToSpeech OuteTTS", async () => { |
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.
this one did not work in your local tests? When https://replicate.com/jbilcke/oute-tts is Warm it was working for us.
Maybe we can replace it with / add https://replicate.com/jaaari/kokoro-82m, it should be Warmer and faster, WDYT?
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.
Yeah it didn't work in my local tests so I skipped it. Looks like the model is cold.
I tried swapping it out with kokoro model but got this error:
× HfInference > Replicate > textToSpeech hexgrad/Kokoro-82M 363ms
→ "- input: text is required\n"
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.
yep bc the schema i used is different from the one in hexgrad/Kokoro-82M
. Given that one is more popular/Warmer, let's switch schemas, WDYT?
packages/inference/package.json
Outdated
@@ -49,6 +49,7 @@ | |||
"prepublishOnly": "pnpm run build", | |||
"test": "vitest run --config vitest.config.mts", | |||
"test:browser": "vitest run --browser.name=chrome --browser.headless --config vitest.config.mts", | |||
"test:replicate": "vitest run --config vitest.config.mts -t \"Replicate\"", |
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.
let's revert this line
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.
Done. 👍🏼
I updated the VCR tapes Command used for reference:
This command runs the Replicate specific tests, and uses the |
Thanks for the reviews. This is ready for another look. |
Yay! |
This PR adds mappings for more Replicate models, along with tests for each new model.
Replaces #1102
cc @julien-c @SBrandeis