Skip to content

allow arbitrary input types for model inputs #968

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

Closed
wants to merge 2 commits into from

Conversation

jgershen
Copy link

This is especially useful for transformers, where you often want to generate multiple text completions with the same settings. With this change, you can now define cog models which take in lists of strings as parameters.

@jgershen
Copy link
Author

Example of use at replicate/cog-flan-t5#1

Signed-off-by: Joe Gershenson <jgershen@users.noreply.github.com>
Signed-off-by: Joe Gershenson <jgershen@users.noreply.github.com>
@jgershen
Copy link
Author

jgershen commented Apr 6, 2023

this probably doesn't fix all the test errors; I need to fix some package versions in my local dev env

@bfirsh bfirsh mentioned this pull request Apr 25, 2023
@bfirsh
Copy link
Member

bfirsh commented Apr 25, 2023

Whomp looks like more failures. :(

@zeke
Copy link
Member

zeke commented Apr 27, 2023

you can now define cog models which take in lists of strings as parameters.

Nice. Would you mind also updating the docs around this?

@mattt mattt mentioned this pull request Sep 8, 2023
@mattt
Copy link
Contributor

mattt commented Sep 22, 2023

Closing in favor of #1311 and/or #1313. See #1292 (comment).

@mattt mattt closed this Sep 22, 2023
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.

4 participants