Open nicoluca opened 2 weeks ago
Hi @nicoluca could you give me some additional information about how you're using the library, it looks like you're using replicate.run()
are you providing any additional arguments besides the model and inputs?
If possible, which model are you using?
Hi @aron,
Example call for a ComfyUI workflow:
replicate.async_run(
model,
input={
"output_format": "png",
"output_quality": 100,
"randomise_seeds": True,
"workflow_json": json.dumps(comfyui_json_dict)
}
)
Example call for nightmareai/real-esrgan:f121d640bd286e1fdc67f9799164c1d5be36ff74576ee11c803ae5b665dd46aa
:
replicate.async_run(
model,
input={
"image": open(image_path, "rb"),
"scale": 2,
"face_enhance": False
}
)
For the latter call I'm also seeing ReadErrors and 502s - but it appears only to happen when I initiate too many concurrently (e.g. now went through fine for 6 predictions and not at all for ~100).
Thanks that's helpful. And just to be absolutely sure, you are using latest v1.0.3
?
Was with v1.0.2
but just tried again with v1.0.3
, no difference. My feeling is that it occurs more often when you try more concurrently, e.g. also leading to 5xx
s sometimes on the server side. I believe replicate is just using default timeout values?
Hi! I am suddenly seeing a lot of readtimeouts - thought initially that it might have been a temporary issue on replicate side, but they seem to persist. Maybe similar to https://github.com/replicate/replicate-python/issues/345, but no further info there.
It doesn't seem to behave deterministically. E.g. for my last predictions, 8 out of 10 images were correctly downloaded (all were created). Example ReadTimeout exception:
Wrapping it now in retries, which seems to help, but still rather very dissatisfactory.