Closed anotherjesse closed 1 year ago
Currently the output filename ends up looking like: steps_1000.safetensors
steps_1000.safetensors
And the URL from replicate ends up looking like:
https://replicate.delivery/pbxt/OqF4uUCflTTZVqTec9UiMmjWxl0YzgVzGnbbCPVwdkFZbjZQA/step_1000.safetensors
One suggestion from @andreasjansson is to use the filename from the instance_data zip as the filename.
instance_data
https://replicate.delivery/pbxt/OqF4uUCflTTZVqTec9UiMmjWxl0YzgVzGnbbCPVwdkFZbjZQA/my_name.safetensors
I implemented that here: https://github.com/replicate/lora-training/blob/d93a7613dc2f2c2224ada0efc5e04d06d2e23db1/predict_basic.py#L112-L113
Currently the output filename ends up looking like:
steps_1000.safetensors
And the URL from replicate ends up looking like:
One suggestion from @andreasjansson is to use the filename from the
instance_data
zip as the filename.