Open bfirsh opened 2 years ago
@evilstreak That thing you were saying the other day about struggling to get erlich rebuilt with a newer Cog reminded me of this. You probably could have ran this to rebuild it:
mkdir erlich-scratch
cd erlich-scratch
id=$(docker create r8.im/laion-ai/erlich)
docker cp $id:/src ./
cog build r8.im/laion-ai/erlich
Maybe we should document this in a "Cookbook" or something, alongside the thing mentioned in the original post!
Your model weights are inside the Cog Docker image. This makes it useful as an artifact for versioning and storing model weights.
One could imagine a feature of Cog that could get weights out, but a simple first step might be to document how model authors can do it with
docker cp
.For example, here is something I wrote to get the weights out of a model on Replicate: