mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-08-17 13:35:44 +08:00
[misc] fix typos in comments and help text (#10633)
Co-authored-by: Karunanidhi Mishra <11963379+kmishra1204@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d58ec6a0bc
commit
445163ab5e
@@ -929,7 +929,7 @@ class InternVLPlugin(BasePlugin):
|
||||
messages = deepcopy(messages)
|
||||
mm_inputs = self._get_mm_inputs(images, videos, audios, processor)
|
||||
|
||||
image_pixel_patch_list = mm_inputs.get("image_num_patches") # pathes of images
|
||||
image_pixel_patch_list = mm_inputs.get("image_num_patches") # patches of images
|
||||
video_num_patches = mm_inputs.get("video_num_patches") # all patches for frames of videos
|
||||
video_patch_indices = mm_inputs.get("video_patch_indices") # num frames of per video
|
||||
|
||||
@@ -2667,7 +2667,7 @@ class Qwen2OmniPlugin(Qwen2VLPlugin):
|
||||
|
||||
if (
|
||||
use_audio_in_video and len(audios) and len(videos)
|
||||
): # if use the audio of video # deal video token and audio token togather
|
||||
): # if use the audio of video # deal video token and audio token together
|
||||
if len(videos) != len(audios):
|
||||
raise ValueError(
|
||||
f"Number of videos ({len(videos)}) must match number of audios ({len(audios)}) when using audio in video."
|
||||
|
||||
@@ -1035,7 +1035,7 @@ register_template(
|
||||
format_assistant=StringFormatter(slots=["{{content}}<turn|>\n"]),
|
||||
format_system=StringFormatter(
|
||||
slots=["<|turn>system\n<|think|>{{content}}<turn|>\n"]
|
||||
), # default thought singal contained
|
||||
), # default thought signal contained
|
||||
format_observation=StringFormatter(
|
||||
slots=["<|turn>tool\n{{content}}<turn|>\n<|turn>model\n"]
|
||||
), # seem not consistent with the chattemplate
|
||||
@@ -1061,7 +1061,7 @@ register_template(
|
||||
format_assistant=StringFormatter(slots=["{{content}}<turn|>\n"]),
|
||||
format_system=StringFormatter(
|
||||
slots=["<|turn>system\n<|think|>{{content}}<turn|>\n"]
|
||||
), # default thought singal contained
|
||||
), # default thought signal contained
|
||||
format_observation=StringFormatter(slots=["<|turn>tool\n{{content}}<turn|>\n<|turn>model\n"]),
|
||||
format_tools=ToolFormatter(tool_format="gemma4"),
|
||||
format_function=FunctionFormatter(slots=["<|tool>{{content}}<tool|>"], tool_format="gemma4"),
|
||||
|
||||
Reference in New Issue
Block a user