Missing "python" in code segments
Browse files
app/src/content/chapters/sft.mdx
CHANGED
|
@@ -436,7 +436,7 @@ training_args = SFTConfig(
|
|
| 436 |
|
| 437 |
Then we can train the model like this and TRL will deal with data loading, batching, and training.
|
| 438 |
|
| 439 |
-
```
|
| 440 |
from trl import SFTTrainer
|
| 441 |
|
| 442 |
trainer = SFTTrainer(
|
|
@@ -449,6 +449,6 @@ trainer = SFTTrainer(
|
|
| 449 |
|
| 450 |
And then we can train the model like this:
|
| 451 |
|
| 452 |
-
```
|
| 453 |
trainer_stats = trainer.train()
|
| 454 |
```
|
|
|
|
| 436 |
|
| 437 |
Then we can train the model like this and TRL will deal with data loading, batching, and training.
|
| 438 |
|
| 439 |
+
```python
|
| 440 |
from trl import SFTTrainer
|
| 441 |
|
| 442 |
trainer = SFTTrainer(
|
|
|
|
| 449 |
|
| 450 |
And then we can train the model like this:
|
| 451 |
|
| 452 |
+
```python
|
| 453 |
trainer_stats = trainer.train()
|
| 454 |
```
|