Skip to content

Commit a0ff4b3

Browse files
committed
Recommend pinning
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
1 parent ab0b2a7 commit a0ff4b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ You can cancel a running prediction:
9797
'canceled'
9898
```
9999

100-
By default, `model.predict()` uses the latest version. If you want to pin to a particular version, you can get a version with its ID, then call the `predict()` method on that version:
100+
By default, `model.predict()` uses the latest version. If you're running a model in production, you should pin to a particular version to ensure its API or behavior doesn't change.
101+
102+
If you want to pin to a particular version, you can get a version with its ID, then call the `predict()` method on that version:
101103

102104
```
103105
>>> model = replicate.models.get("replicate/hello-world")

0 commit comments

Comments
 (0)