Skip to content

Commit

Permalink
Document how to deploy to Replicate
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh authored Oct 9, 2024
1 parent 9f36e63 commit 4c52f93
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,25 @@ The code in this repo can be used as a template for customizations on FLUX.1, or
First you need to select which model to run:

```shell
$ script/select.sh {dev,schnell}
script/select.sh {dev,schnell}
```

Then you can run a single prediction on the model using:

```shell
$ cog predict -i prompt="a cat in a hat"
cog predict -i prompt="a cat in a hat"
```

For more documentation about how to interact with Cog models and push customized FLUX.1 models to Replicate:
* The [Cog getting started guide](https://cog.run/getting-started/) explains what Cog is and how it works
* [This guide](https://replicate.com/docs/guides/push-a-model) describes how to push a model to Replicate
The [Cog getting started guide](https://cog.run/getting-started/) explains what Cog is and how it works.

To deploy it to Replicate, run:

```shell
cog login
cog push r8.im/<your-username>/<your-model-name>
```

Learn more on [the deploy a custom model guide in the Replicate documentation](https://replicate.com/docs/guides/deploy-a-custom-model).

## Contributing

Expand Down

0 comments on commit 4c52f93

Please sign in to comment.