-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add outlines sampler parameter; fix issue with outlines_llama3 experi…
…ments
- Loading branch information
Showing
8 changed files
with
93 additions
and
21 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
27 changes: 27 additions & 0 deletions
27
align_system/configs/experiment/examples/outlines_sampler.yaml
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# @package _global_ | ||
defaults: | ||
- /alignment_target: moral_deservingness_high | ||
- override /adm: outlines_transformers_structured_aligned | ||
|
||
adm: | ||
instance: | ||
model_name: meta-llama/Meta-Llama-3-8B | ||
|
||
# For greedy sampling | ||
# sampler: | ||
# _target_: outlines.samplers.GreedySampler | ||
|
||
# For multinomial sampling with temperature 0.7 (default is 1.0 if | ||
# not specified) | ||
sampler: | ||
_target_: outlines.samplers.MultinomialSampler | ||
temperature: 0.7 | ||
|
||
# NOTE: In cases where we want multiple samples, we're | ||
# passing in a list of prompts (this allows us to shuffle | ||
# answers in each prompt), rather than setting the number of | ||
# samples in the sampler itself (which defaults to 1); setting | ||
# the number of samples in the sampler may result in | ||
# unexpected behavior | ||
|
||
align_to_target: true |
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
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