forked from instructlab/sdg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set gen_kwargs['n'] dynamically in the simple pipelines
We need a way to allow `--num-instructions`, or in the future `--sdg-scale-factor`, to influence how many instructions we generate using the simple pipelines. The way to do this seems to be to set `n` to this value. Since this is a runtime parameter, and we only want to set it for `n` in certain cases, add a new value for gen_kwargs['n'] called `scaled` which is a hint to use the runtime parameter here. Closes instructlab#130 Signed-off-by: Russell Bryant <[email protected]>
- Loading branch information
Showing
5 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ blocks: | |
gen_kwargs: | ||
max_tokens: 2048 | ||
temperature: 0.7 | ||
n: scaled | ||
drop_duplicates: | ||
- output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ blocks: | |
gen_kwargs: | ||
max_tokens: 2048 | ||
temperature: 0.7 | ||
n: 10 | ||
n: scaled | ||
drop_duplicates: | ||
- output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ blocks: | |
gen_kwargs: | ||
max_tokens: 2048 | ||
temperature: 0.7 | ||
n: scaled | ||
drop_duplicates: | ||
- output |