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

Getting Input type (c10::Half) and bias type (float) should be the same error when calling Replicate.run #221

Open
raulmabe-labhouse opened this issue Mar 12, 2024 · 2 comments

Comments

@raulmabe-labhouse
Copy link

raulmabe-labhouse commented Mar 12, 2024

It was working all well, but suddenly this error is getting thrown at every request I send:

Prediction failed: Input type (c10::Half) and bias type (float) should be the same
    at Replicate.wait (/workspace/node_modules/replicate/index.js:379:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Replicate.run (/workspace/node_modules/replicate/index.js:154:18)

Version "replicate": "^0.28.1"

Let me know if I can provide with more info.

@mattt
Copy link
Member

mattt commented Mar 12, 2024

Hi @raulmabe-labhouse. This looks like an error produced by the model. If you go to replicate.com, you should see a failed prediction on your dashboard. If you share the prediction ID, I can take a look.

@raulmabe-labhouse
Copy link
Author

raulmabe-labhouse commented Mar 12, 2024

The prediction ID is ohjm643bfvhphu4shrpjruz45u.

It must have to do with a NSFW prompt I tested (hitler ultra hyperreslistic close up) before this request... All requests after the NSFW one were producing this exact error, but all requests made before were working perfectly...

It is so weird because none of the next prompts I tried were NSFW :/

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

2 participants