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

FLUX Pro 1.1 - No version works #39

Open
daniellionel01 opened this issue Oct 9, 2024 · 1 comment
Open

FLUX Pro 1.1 - No version works #39

daniellionel01 opened this issue Oct 9, 2024 · 1 comment

Comments

@daniellionel01
Copy link

daniellionel01 commented Oct 9, 2024

Even though you can fetch the model, it does not accept the version that it fetched:

Screenshot 2024-10-09 at 15 07 39

Screenshot 2024-10-09 at 15 13 38

I verified that I can access this model with my API Key and Account via a cURL request, so the problem shouldn't be on my end.

I assume this comes from the fact that it cannot verify the version via the Replicate.Models.get_version!(model, version_string) call:

Screenshot 2024-10-09 at 15 47 30

Here's the code from iex:

m = Replicate.Models.get!("black-forest-labs/flux-1.1-pro")

p = Replicate.Predictions.create("black-forest-labs/flux-1.1-pro:48a1467f83bbf2d13aa60eea3db52fb2ed7020eb543d6b20917981cf6bcdc40e", prompt: "A frog")

I'll be taking a look into the codebase on Friday to see if I can fork it and fix it myself. I'll create a PR if I succeed.

Side note: I don't quite understand, why the version is required for creating predictions. I understand, that you would want the option to specify it, but imo this should be an optional parameter.

@daniellionel01
Copy link
Author

After reviewing the code I see that I can just use Prediction.create and Prediction.wait 👍
I still think Prediction.run should accept a version and version-less model though

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

No branches or pull requests

1 participant