mirror of
https://github.com/NousResearch/atropos.git
synced 2026-05-01 17:45:16 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
76fec8b919
commit
aae4432a58
1 changed files with 3 additions and 1 deletions
|
|
@ -225,7 +225,9 @@ class RLAIFEnv(BaseEnv):
|
|||
scores["tokens"].append(tokens)
|
||||
scores["masks"].append(masks)
|
||||
scores["inference_logprobs"].append(logprobs)
|
||||
scores["scores"].append(1.0 if item["finish_reason"] != "length" else -1.0)
|
||||
scores["scores"].append(
|
||||
1.0 if item["finish_reason"] != "length" else -1.0
|
||||
)
|
||||
return scores
|
||||
else:
|
||||
fwd_fmt = RLAIF_user_prompt_format_str.format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue