ersilia-os / eos-template

Template repository to add new models to the Ersilia Model Hub
GNU General Public License v3.0
1 stars 1 forks source link

Modify Upload model to DockerHub workflow to support backward compatibility #66

Closed DhanshreeA closed 23 hours ago

DhanshreeA commented 3 days ago

In the legacy version of eos-template, the Docker build workflow built a model image first with the optimized multistage + conda-pack approach (ie V2), failing which, it was built with the legacy bentoml (ie V1) approach.

The current eos-template assumes that the model running that workflow follows the new template structure built by Ersilia-Pack. However, this is not the case and it creates a problem, because now we cannot directly update workflows from this template repositories into the model repositories. Additionally, Ersilia Pack was developed with backwards compatibility in mind to be able to rebuild model images with it, failing which we default to the previous approach.

To solve this, we will employ the following logic:

DhanshreeA commented 23 hours ago

Duplicated here: #67