Skip to content

Commit

Permalink
Updating docs for BootstrapFewShot (#1884)
Browse files Browse the repository at this point in the history
* Update bootstrap-fewshot.md for correct usage of compile method

 the compile does not accept a valset anymore

```python
  def compile(self, student, *, teacher=None, trainset):
```

* Update bootstrap-fewshot.md: Removed unnecessary ***
  • Loading branch information
aliirz authored Dec 4, 2024
1 parent 97ca14c commit 69e7bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/deep-dive/optimizers/bootstrap-fewshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ This optimizer augments any necessary field even if you data doesn't have it, fo
In the next section, we'll seen this process step by step but for now let's start optimizing our `CoT` module by calling the `compile` method in the optimizer:

```python
cot_compiled = optimizer.compile(CoT(), trainset=trainset, valset=devset)
cot_compiled = optimizer.compile(CoT(), trainset=trainset)
```

Once the training is done you'll have a more optimized module that you can save or load again for use anytime:
Expand Down

0 comments on commit 69e7bde

Please sign in to comment.