mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
removed duplicate code fragment intest_chat_wrap_and_equivalence
This commit is contained in:
@@ -470,13 +470,6 @@ def test_chat_wrap_and_equivalence(add_gen, add_think):
|
||||
add_generation_prompt=add_gen,
|
||||
enable_thinking=add_think,
|
||||
)
|
||||
ours = qt.encode(prompt)
|
||||
ref = hf_tok.apply_chat_template(
|
||||
messages,
|
||||
tokenize=True,
|
||||
add_generation_prompt=add_gen,
|
||||
enable_thinking=add_think,
|
||||
)
|
||||
|
||||
if add_gen and not add_think:
|
||||
pass # skip edge case as this is not something we use in practice
|
||||
|
||||
Reference in New Issue
Block a user