Return assistant generated tokens mask in apply_chat_template (#30650)

return assistant generated tokens mask in apply_chat_template
This commit is contained in:
Yoni Gottesman
2024-07-22 20:24:43 +03:00
committed by GitHub
parent 7987710696
commit 74d0eb3fed
8 changed files with 265 additions and 8 deletions

View File

@@ -2483,3 +2483,7 @@ class LayoutLMv2TokenizationTest(TokenizerTesterMixin, unittest.TestCase):
@unittest.skip(reason="Chat is not supported")
def test_chat_template(self):
pass
@unittest.skip("Chat is not supported")
def test_chat_template_return_assistant_tokens_mask(self):
pass