mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-18 12:50:38 +08:00
[config] update args (#7231)
Former-commit-id: f71a901840811bf560df671ec63a146ff99140c6
This commit is contained in:
@@ -96,12 +96,31 @@ V_HEAD_WEIGHTS_NAME = "value_head.bin"
|
||||
V_HEAD_SAFE_WEIGHTS_NAME = "value_head.safetensors"
|
||||
|
||||
|
||||
class AttentionFunction(str, Enum):
|
||||
AUTO = "auto"
|
||||
DISABLED = "disabled"
|
||||
SDPA = "sdpa"
|
||||
FA2 = "fa2"
|
||||
|
||||
|
||||
class EngineName(str, Enum):
|
||||
HF = "huggingface"
|
||||
VLLM = "vllm"
|
||||
|
||||
|
||||
class DownloadSource(str, Enum):
|
||||
DEFAULT = "hf"
|
||||
MODELSCOPE = "ms"
|
||||
OPENMIND = "om"
|
||||
|
||||
|
||||
class RopeScaling(str, Enum):
|
||||
LINEAR = "linear"
|
||||
DYNAMIC = "dynamic"
|
||||
YARN = "yarn"
|
||||
LLAMA3 = "llama3"
|
||||
|
||||
|
||||
def register_model_group(
|
||||
models: Dict[str, Dict[DownloadSource, str]],
|
||||
template: Optional[str] = None,
|
||||
|
||||
Reference in New Issue
Block a user