Skip to content

Commit 18a19de

Browse files
authored
📝 docs(smolvlm): fix variable name in batch inference example (#42123)
Fixed incorrect variable name on line 162. The code creates a list called 'conversations' (plural) but incorrectly references 'conversation' (singular) in the apply_chat_template call, which would cause a NameError. This fixes the batch mixed media inference example to use the correct variable name, allowing the code to run without errors.
1 parent dba6aeb commit 18a19de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/en/model_doc/smolvlm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ conversation3 = [
159159

160160
conversations = [conversation1, conversation2, conversation3]
161161
inputs = processor.apply_chat_template(
162-
conversation,
162+
conversations,
163163
add_generation_prompt=True,
164164
tokenize=True,
165165
return_dict=True,

0 commit comments

Comments
 (0)