Skip to content

Commit

Permalink
Fix some non-determinism in choice ordering for Kaleido
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjoy committed Apr 24, 2024
1 parent 4e9de4e commit 3b3ea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion align_system/algorithms/kaleido_adm.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def estimate_kdma_values(self,

rows = []
for choice in choices:
other_choices_str = ', '.join(['"{}"'.format(c) for c in (set(choices) - {choice})])
other_choices_str = ', '.join(['"{}"'.format(c) for c in choices if c != choice])
choice_prompt = format_template(
prompt_template,
allow_extraneous=True,
Expand Down

0 comments on commit 3b3ea29

Please sign in to comment.