mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-22 16:48:57 +00:00
proper fallback
This commit is contained in:
parent
3910a58f9b
commit
559d649a26
3 changed files with 61 additions and 4 deletions
|
|
@ -990,7 +990,12 @@ class BaseEnv(ABC):
|
|||
|
||||
if self.config.include_messages and group.get("messages") is None:
|
||||
group["messages"] = [
|
||||
self.tokenizer.decode(group["tokens"][i])
|
||||
[
|
||||
{
|
||||
"role": "user",
|
||||
"content": self.tokenizer.decode(group["tokens"][i]),
|
||||
}
|
||||
]
|
||||
for i in range(len(group["tokens"]))
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue