Skip to content

Document how to use docker cp to get weights out of a model #399

Open
@bfirsh

Description

@bfirsh

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:

#!/bin/bash
id=$(docker create r8.im/f90/wave-u-net-pytorch)
docker cp $id:/src/checkpoints ./

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions