OpenDeltaMirror/opendelta/__init__.py

29 lines
914 B
Python
Raw Normal View History

2022-02-14 21:19:03 +08:00
2022-10-14 23:15:38 +08:00
__version__ = "0.3.0"
2022-02-14 21:19:03 +08:00
2022-03-13 01:21:55 +08:00
class GlobalSetting:
def __init__(self):
self.axis_order = [0,1,2]
global_setting = GlobalSetting()
2022-02-14 21:19:03 +08:00
from .delta_configs import BaseDeltaConfig
from .utils import logging
from .utils.saving_loading_utils import SaveLoadMixin
from .basemodel import DeltaBase
from .auto_delta import AutoDeltaConfig, AutoDeltaModel
from .utils.structure_mapping import CommonStructureMap
from .delta_models.lora import LoraModel
from .delta_models.bitfit import BitFitModel
from .delta_models.compacter import CompacterModel
from .delta_models.adapter import AdapterModel
from .delta_models.prefix import PrefixModel
from .delta_models.soft_prompt import SoftPromptModel
from .delta_models.low_rank_adapter import LowRankAdapterModel
2022-10-23 16:42:21 +08:00
from .delta_models.parallel_adapter import ParallelAdapterModel
2022-03-13 01:21:55 +08:00
def set_axis_order(axis_order=[0,1,2]):
setattr(global_setting, "axis_order", axis_order)