mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
fix: align ScamOrRugEnv with BaseEnv API and add wandb logging
This commit is contained in:
parent
dad40fba6b
commit
4c0c2b7e8b
1 changed files with 2 additions and 2 deletions
|
|
@ -300,8 +300,8 @@ class ScamOrRugEnv(BaseEnv):
|
|||
add_generation_prompt=True,
|
||||
)
|
||||
tokens = full_text
|
||||
prompt_len = len(prompt_text)
|
||||
masks = [-100] * prompt_len + [1] * (len(full_text) - prompt_len)
|
||||
prompt_len = len(prompt_text)
|
||||
masks = [-100] * prompt_len + [1] * (len(full_text) - prompt_len)
|
||||
|
||||
scored["tokens"].append(tokens)
|
||||
scored["masks"].append(masks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue