Skip to content

Commit 725755a

Browse files
authored
Add information about training API to README (#102)
1 parent 84ce0d3 commit 725755a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,14 @@ const response = await replicate.predictions.list();
373373

374374
### `replicate.trainings.create`
375375

376+
Use the training API to fine-tune language models
377+
to make them better at a particular task.
378+
To see what **language models** currently support fine-tuning,
379+
check out Replicate's [collection of trainable language models](https://replicate.com/collections/trainable-language-models).
380+
381+
If you're looking to fine-tune **image models**,
382+
check out Replicate's [guide to fine-tuning image models](https://replicate.com/docs/guides/fine-tune-an-image-model).
383+
376384
```js
377385
const response = await replicate.trainings.create(model_owner, model_name, version_id, options);
378386
```
@@ -404,6 +412,10 @@ const response = await replicate.trainings.create(model_owner, model_name, versi
404412
}
405413
```
406414

415+
> **Warning**
416+
> If you try to fine-tune a model that doesn't support training,
417+
> you'll get a `400 Bad Request` response from the server.
418+
407419
### `replicate.trainings.get`
408420

409421
```js

0 commit comments

Comments
 (0)