mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 14:22:51 +08:00
rm useless code
Former-commit-id: f5c1cdfaab939fb970393452081950a4b6e3604d
This commit is contained in:
parent
9079967ecf
commit
b9c6fcfe98
@ -692,13 +692,6 @@ def get_mm_plugin(
|
|||||||
video_token: Optional[str] = None,
|
video_token: Optional[str] = None,
|
||||||
) -> "BasePlugin":
|
) -> "BasePlugin":
|
||||||
plugin_class = PLUGINS.get(name, None)
|
plugin_class = PLUGINS.get(name, None)
|
||||||
if plugin_class == "PixtralPlugin":
|
|
||||||
from transformers.utils.versions import require_version
|
|
||||||
|
|
||||||
try:
|
|
||||||
require_version("transformers==4.46.0.dev0")
|
|
||||||
except Exception:
|
|
||||||
raise ImportError("PixtralPlugin requires transformers>=4.46.0.dev0. Please install it first.")
|
|
||||||
if plugin_class is None:
|
if plugin_class is None:
|
||||||
raise ValueError("Multimodal plugin `{}` not found.".format(name))
|
raise ValueError("Multimodal plugin `{}` not found.".format(name))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user