mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-22 23:00:36 +08:00
[model] add llama4 (#7611)
This commit is contained in:
@@ -1111,6 +1111,30 @@ register_model_group(
|
||||
)
|
||||
|
||||
|
||||
register_model_group(
|
||||
models={
|
||||
"Llama-4-Scout-17B-16E": {
|
||||
DownloadSource.DEFAULT: "meta-llama/Llama-4-Scout-17B-16E",
|
||||
DownloadSource.MODELSCOPE: "LLM-Research/Llama-4-Scout-17B-16E",
|
||||
},
|
||||
"Llama-4-Scout-17B-16E-Instruct": {
|
||||
DownloadSource.DEFAULT: "meta-llama/Llama-4-Scout-17B-16E-Instruct",
|
||||
DownloadSource.MODELSCOPE: "LLM-Research/Llama-4-Scout-17B-16E-Instruct",
|
||||
},
|
||||
"Llama-4-Maverick-17B-128E": {
|
||||
DownloadSource.DEFAULT: "meta-llama/Llama-4-Maverick-17B-128E",
|
||||
DownloadSource.MODELSCOPE: "LLM-Research/Llama-4-Maverick-17B-128E",
|
||||
},
|
||||
"Llama-4-Maverick-17B-128E-Instruct": {
|
||||
DownloadSource.DEFAULT: "meta-llama/Llama-4-Maverick-17B-128E-Instruct",
|
||||
DownloadSource.MODELSCOPE: "LLM-Research/Llama-4-Maverick-17B-128E-Instruct",
|
||||
},
|
||||
},
|
||||
template="llama4",
|
||||
multimodal=True,
|
||||
)
|
||||
|
||||
|
||||
register_model_group(
|
||||
models={
|
||||
"LLaVA-1.5-7B-Chat": {
|
||||
|
||||
@@ -89,7 +89,7 @@ def check_version(requirement: str, mandatory: bool = False) -> None:
|
||||
|
||||
def check_dependencies() -> None:
|
||||
r"""Check the version of the required packages."""
|
||||
check_version("transformers>=4.41.2,<=4.50.0,!=4.46.0,!=4.46.1,!=4.46.2,!=4.46.3,!=4.47.0,!=4.47.1,!=4.48.0")
|
||||
check_version("transformers>=4.41.2,<=4.51.0,!=4.46.0,!=4.46.1,!=4.46.2,!=4.46.3,!=4.47.0,!=4.47.1,!=4.48.0")
|
||||
check_version("datasets>=2.16.0,<=3.4.1")
|
||||
check_version("accelerate>=0.34.0,<=1.5.2")
|
||||
check_version("peft>=0.14.0,<=0.15.0")
|
||||
|
||||
Reference in New Issue
Block a user