This commit is contained in:
Shannon Sands 2025-05-13 07:52:03 +10:00
parent e480c30b8b
commit d980acfaf9

View file

@ -6,6 +6,7 @@ from atroposlib.type_definitions import Message
# Roles that should be masked in the loss calculation (not used for training)
UNMASKED_ROLES = ["assistant", "agent"]
def tokenize_for_trainer(
tokenizer: PreTrainedTokenizer,
chat: list[Message],