Files
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

28 lines
554 B
Python

# Copyright (c) ModelScope Contributors. All rights reserved.
BIN_EXTENSIONS = [
'.*.bin',
'.*.ts',
'.*.pt',
'.*.data-00000-of-00001',
'.*.onnx',
'.*.meta',
'.*.pb',
'.*.index',
]
PEFT_TYPE_KEY = 'peft_type'
SWIFT_TYPE_KEY = 'swift_type'
DEFAULT_ADAPTER = 'default'
class Invoke(object):
KEY = 'invoked_by'
THIRD_PARTY = 'third_party'
PRETRAINED = 'from_pretrained'
PIPELINE = 'pipeline'
TRAINER = 'trainer'
LOCAL_TRAINER = 'local_trainer'
PREPROCESSOR = 'preprocessor'
SWIFT = 'swift'