From a53d1414d7a5be9c53e2ab0d30ee0d86f43e61c0 Mon Sep 17 00:00:00 2001 From: Ali Raza Date: Thu, 5 Dec 2024 00:17:21 +0500 Subject: [PATCH 1/2] 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): ``` --- docs/docs/deep-dive/optimizers/bootstrap-fewshot.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md b/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md index fe435018f0..c95aaf2604 100644 --- a/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md +++ b/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md @@ -1,4 +1,4 @@ ---- +****--- sidebar_position: 1 --- @@ -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: From 64561ac1e35789c893032d172180dad27269a849 Mon Sep 17 00:00:00 2001 From: Ali Raza Date: Thu, 5 Dec 2024 00:18:27 +0500 Subject: [PATCH 2/2] Update bootstrap-fewshot.md: Removed unnecessary *** --- docs/docs/deep-dive/optimizers/bootstrap-fewshot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md b/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md index c95aaf2604..40f7611967 100644 --- a/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md +++ b/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md @@ -1,4 +1,4 @@ -****--- +--- sidebar_position: 1 ---