mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
tokenizer bug
This commit is contained in:
parent
b457a678ce
commit
2f371e03fc
1 changed files with 1 additions and 1 deletions
|
|
@ -907,7 +907,7 @@ class BaseEnv(ABC):
|
|||
"ensure your trainer handles this appropriately."
|
||||
)
|
||||
elif abort_on_any_max_length_exceeded and any(
|
||||
[len(x) >= self.max_token_len for x in group["tokens"]]
|
||||
[len(x) > self.max_token_len for x in group["tokens"]]
|
||||
):
|
||||
logger.warning("Token length is too long in a group, skipping...")
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue