repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/tuner.py
swift/llm/tuner.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import types import numpy as np import torch import transformers from packaging import version from swift.trainers import TrainerCallback from swift.tuners import (AdaLoraConfig, AdapterConfig, BOFTConfig, IA3Config, LLaMAProConfig, LongLoRAModelType, ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/deploy.py
swift/llm/deploy.py
# Copyright (c) Alibaba, Inc. and its affiliates. import asyncio import inspect import logging import re import time from concurrent.futures import ThreadPoolExecutor from dataclasses import asdict from http import HTTPStatus from threading import Thread from typing import Any, Dict, List, Optional, Union import json ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
true
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/accelerator.py
swift/llm/accelerator.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os def ta_accelerate(model, fsdp_num, layer_cls_name, bf16=True, fp16=False, gradient_checkpointing=True, fsdp_flatten_parameters=False): """ acceler...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/sft.py
swift/llm/sft.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os from functools import partial from typing import Any, Dict, Optional, Tuple import json import torch import transformers from datasets import Dataset as HfDataset from packaging import version from transformers import BitsAndBytesConfig, GenerationConfig, Int...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/app_ui.py
swift/llm/app_ui.py
# Copyright (c) Alibaba, Inc. and its affiliates. from typing import Iterator, Tuple from swift.utils import get_logger, get_main, seed_everything from .infer import merge_lora, prepare_model_template from .utils import AppUIArguments, History, inference_stream, limit_history_length logger = get_logger() def clear_...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/__init__.py
swift/llm/__init__.py
# Copyright (c) Alibaba, Inc. and its affiliates. from typing import TYPE_CHECKING from swift.utils.import_utils import _LazyModule from .utils import * if TYPE_CHECKING: # Recommend using `xxx_main` from .app_ui import gradio_chat_demo, gradio_generation_demo, app_ui_main from .deploy import deploy_main ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/vision_utils.py
swift/llm/utils/vision_utils.py
import base64 import math import os from io import BytesIO from typing import Any, Callable, List, TypeVar, Union import numpy as np import requests import torch from packaging import version # >>> internvl IMAGENET_MEAN = (0.485, 0.456, 0.406) IMAGENET_STD = (0.229, 0.224, 0.225) def _build_transform(input_size): ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/argument.py
swift/llm/utils/argument.py
# Copyright (c) Alibaba, Inc. and its affiliates. import inspect import math import os import platform import sys from dataclasses import dataclass, field from typing import Any, Dict, List, Literal, Optional, Set, Tuple, Union import accelerate import json import numpy as np import torch import torch.distributed as d...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
true
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/client_utils.py
swift/llm/utils/client_utils.py
import base64 import hashlib import os import re from copy import deepcopy from io import BytesIO from typing import Any, AsyncIterator, Dict, Iterator, List, Optional, Tuple, Union import aiohttp import json import requests from dacite import from_dict from requests.exceptions import HTTPError from .protocol import ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/callbacks.py
swift/llm/utils/callbacks.py
import types import numpy as np import torch from transformers import TrainerCallback class TrainerAdapterCallback(TrainerCallback): def __init__(self, args): self.global_step = 0 self.args = args # offload original_modules to cpu, to save memory def on_train_begin(self, _args, state, c...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/template.py
swift/llm/utils/template.py
# Copyright (c) Alibaba, Inc. and its affiliates. import inspect import os import re from contextlib import contextmanager from copy import deepcopy from datetime import datetime from functools import partial, wraps from types import MethodType from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Typ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
true
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/model.py
swift/llm/utils/model.py
# Copyright (c) Alibaba, Inc. and its affiliates. import inspect import math import os import sys from contextlib import contextmanager, nullcontext from functools import partial, update_wrapper, wraps from types import MethodType from typing import Any, Callable, Dict, List, Literal, NamedTuple, Optional, Tuple, Type,...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
true
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/dataset.py
swift/llm/utils/dataset.py
# Copyright (c) Alibaba, Inc. and its affiliates. import ast import itertools import os import re from copy import deepcopy from functools import partial from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union import datasets.fingerprint import json import numpy as np from datasets import Dataset...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
true
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/utils.py
swift/llm/utils/utils.py
# Copyright (c) Alibaba, Inc. and its affiliates. # Part of the implementation is borrowed from huggingface/transformers. import heapq import importlib.util import os import shutil import time from copy import deepcopy from functools import partial, wraps from queue import Empty, Queue from tempfile import TemporaryDir...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
true
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/__init__.py
swift/llm/utils/__init__.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.utils import get_logger from .argument import (AppUIArguments, DeployArguments, EvalArguments, ExportArguments, InferArguments, PtArguments, RLHFArguments, RomeArguments, SftArguments, WebuiArguments, is_adapter, swift_to_peft_format) f...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/protocol.py
swift/llm/utils/protocol.py
# Copyright (c) Alibaba, Inc. and its affiliates. import time import uuid from dataclasses import dataclass, field from typing import Any, Dict, List, Literal, Optional, Union def random_uuid() -> str: return str(uuid.uuid4().hex) @dataclass class Model: id: str # model_type is_chat: bool = True # cha...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/vllm_utils.py
swift/llm/utils/vllm_utils.py
import concurrent.futures import inspect import os import time from contextlib import contextmanager from copy import deepcopy from functools import wraps from typing import Any, Dict, Iterator, List, Optional, Tuple, Union import torch import vllm from packaging import version from tqdm import tqdm from transformers ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/media.py
swift/llm/utils/media.py
import hashlib import os import shutil from typing import Any, Dict, Literal, Optional, Union import numpy as np from modelscope.hub.utils.utils import get_cache_dir from swift.utils import get_logger logger = get_logger() class MediaTag: task_prompts = { 'ref_grounding': { 'en': [('<ref-o...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/preprocess.py
swift/llm/utils/preprocess.py
# Copyright (c) Alibaba, Inc. and its affiliates. import ast import os from multiprocessing import shared_memory from typing import Any, Callable, Dict, List, Literal, Optional, Union import numpy as np from datasets import Dataset as HfDataset from datasets import IterableDataset as HfIterableDataset from tqdm import...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/utils/lmdeploy_utils.py
swift/llm/utils/lmdeploy_utils.py
import asyncio import concurrent.futures import inspect import os import time from contextlib import contextmanager from copy import deepcopy from dataclasses import dataclass from functools import wraps from queue import Queue from threading import Thread from typing import Any, Dict, Iterator, List, Optional, Tuple, ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/megatron/argument.py
swift/llm/megatron/argument.py
# Copyright (c) Alibaba, Inc. and its affiliates. import math import os import sys from dataclasses import asdict, dataclass from typing import Any, Dict, List, Literal, Optional, Tuple from transformers import AutoConfig config_mapping = { 'num_layers': ['num_hidden_layers'], 'hidden_size': ['hidden_size'], ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/megatron/convert.py
swift/llm/megatron/convert.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import sys from typing import Any, Dict, Optional import torch from .model import get_megatron_model_convert def convert_hf_to_megatron( hf_model, extra_args: Dict[str, Any], save_torch_dtype: Optional[torch.dtype] = None, ) -> None: from m...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/megatron/model.py
swift/llm/megatron/model.py
# Copyright (c) Alibaba, Inc. and its affiliates. import importlib from typing import Callable, List, Optional from swift.llm import MODEL_MAPPING MEGATRON_MODEL_MAPPING = {} def register_megatron_model( model_type_list: List[str], convert_module: str, model_module: str, # GPTModel ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/megatron/utils.py
swift/llm/megatron/utils.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import shutil import sys from functools import partial, wraps from typing import Any, Dict, List, Mapping, Optional import torch import torch.distributed as dist from swift.llm import LazyLLMDataset, Template, git_clone_github, is_megatron_available from swi...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/megatron/__init__.py
swift/llm/megatron/__init__.py
# Copyright (c) Alibaba, Inc. and its affiliates. from .argument import MegatronArguments from .convert import convert_hf_to_megatron, convert_megatron_to_hf from .model import MEGATRON_MODEL_MAPPING, get_megatron_model_convert, register_megatron_model from .utils import forward_step, init_megatron_env, patch_megatron,...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/agent/utils.py
swift/llm/agent/utils.py
# Copyright (c) Alibaba, Inc. and its affiliates. from typing import Dict, List, Optional, Tuple, Union from swift.utils import get_logger from swift.utils.utils import split_str_parts_by logger = get_logger() REACT_PROMPT = """Answer the following questions as best as you can. You have access to the following tools...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/llm/agent/__init__.py
swift/llm/agent/__init__.py
from .utils import calculate_loss_scale, get_tools_prompt, split_action_action_input
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/api.py
swift/hub/api.py
# Copyright (c) Alibaba, Inc. and its affiliates. # yapf: disable import datetime import functools import os import pickle import platform import re import shutil import tempfile import time import uuid from http import HTTPStatus from http.cookiejar import CookieJar from os.path import expanduser from typing import D...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/constants.py
swift/hub/constants.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os from pathlib import Path MODELSCOPE_URL_SCHEME = 'http://' DEFAULT_MODELSCOPE_DOMAIN = 'www.modelscope.cn' DEFAULT_MODELSCOPE_DATA_ENDPOINT = MODELSCOPE_URL_SCHEME + DEFAULT_MODELSCOPE_DOMAIN MODELSCOPE_PARALLEL_DOWNLOAD_THRESHOLD_MB = int(os.environ.get('MOD...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/git.py
swift/hub/git.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import subprocess from typing import List, Optional from swift.utils.logger import get_logger from .constants import MASTER_MODEL_BRANCH from .errors import GitError logger = get_logger() class Singleton(type): _instances = {} def __call__(cls, *...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/snapshot_download.py
swift/hub/snapshot_download.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import re import tempfile from http.cookiejar import CookieJar from pathlib import Path from typing import Dict, List, Optional, Union from swift.utils.logger import get_logger from .api import HubApi, ModelScopeConfig from .constants import FILE_HASH, MODEL...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/push_to_hub.py
swift/hub/push_to_hub.py
# Copyright (c) Alibaba, Inc. and its affiliates. import concurrent.futures import os import shutil from multiprocessing import Manager, Process, Value from swift.utils.logger import get_logger from .api import HubApi from .constants import DEFAULT_REPOSITORY_REVISION, ModelVisibility logger = get_logger() _executo...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/check_model.py
swift/hub/check_model.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os from typing import Dict, Optional, Union from urllib.parse import urlparse from swift.utils.logger import get_logger from .api import HubApi, ModelScopeConfig from .constants import FILE_HASH from .git import GitCommandWrapper from .utils.caching import Mode...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/file_download.py
swift/hub/file_download.py
# Copyright (c) Alibaba, Inc. and its affiliates. import copy import os import tempfile import threading from concurrent.futures import ThreadPoolExecutor from functools import partial from http.cookiejar import CookieJar from pathlib import Path from typing import Dict, Optional, Union import requests from requests....
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/errors.py
swift/hub/errors.py
# Copyright (c) Alibaba, Inc. and its affiliates. from http import HTTPStatus import requests from requests.exceptions import HTTPError from swift.utils.logger import get_logger logger = get_logger() class NotSupportError(Exception): pass class NoValidRevisionError(Exception): pass class NotExistError...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/__init__.py
swift/hub/__init__.py
# Copyright (c) Alibaba, Inc. and its affiliates. from .api import HubApi, ModelScopeConfig from .push_to_hub import push_to_hub, push_to_hub_async, push_to_hub_in_queue from .repository import Repository from .snapshot_download import snapshot_download
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/repository.py
swift/hub/repository.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import time from typing import Optional from swift.utils.logger import get_logger from .constants import DEFAULT_DATASET_REVISION, DEFAULT_REPOSITORY_REVISION, MASTER_MODEL_BRANCH from .errors import GitError, InvalidParameter, NotLoginException from .git im...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/utils/utils.py
swift/hub/utils/utils.py
# Copyright (c) Alibaba, Inc. and its affiliates. import hashlib import os from datetime import datetime from pathlib import Path from typing import Optional from swift.hub.constants import (DEFAULT_MODELSCOPE_DOMAIN, DEFAULT_MODELSCOPE_GROUP, MODEL_ID_SEPARATOR, MODELSCOPE_SDK_DEBUG,...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/utils/__init__.py
swift/hub/utils/__init__.py
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/hub/utils/caching.py
swift/hub/utils/caching.py
# Copyright (c) Alibaba, Inc. and its affiliates. import hashlib import os import pickle import tempfile from shutil import move, rmtree from swift.hub.constants import MODEL_META_FILE_NAME, MODEL_META_MODEL_ID from swift.utils.logger import get_logger logger = get_logger() """Implements caching functionality, used ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/web_ui.py
swift/cli/web_ui.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.ui.app import webui_main if __name__ == '__main__': webui_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/export.py
swift/cli/export.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import export_main if __name__ == '__main__': export_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/infer.py
swift/cli/infer.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import infer_main if __name__ == '__main__': infer_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/rlhf.py
swift/cli/rlhf.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import rlhf_main if __name__ == '__main__': rlhf_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/eval.py
swift/cli/eval.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import eval_main if __name__ == '__main__': eval_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/deploy.py
swift/cli/deploy.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import deploy_main if __name__ == '__main__': deploy_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/main.py
swift/cli/main.py
# Copyright (c) Alibaba, Inc. and its affiliates. import importlib.util import os import subprocess import sys from typing import Dict, List, Optional ROUTE_MAPPING: Dict[str, str] = { 'pt': 'swift.cli.pt', 'sft': 'swift.cli.sft', 'infer': 'swift.cli.infer', 'app-ui': 'swift.cli.app_ui', 'merge-lor...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/sft.py
swift/cli/sft.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import sft_main if __name__ == '__main__': sft_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/app_ui.py
swift/cli/app_ui.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import app_ui_main if __name__ == '__main__': app_ui_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/__init__.py
swift/cli/__init__.py
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/pt.py
swift/cli/pt.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import pt_main if __name__ == '__main__': pt_main()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/cli/merge_lora.py
swift/cli/merge_lora.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.llm import merge_lora_main if __name__ == '__main__': merge_lora_main(replace_if_exists=True)
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/__init__.py
swift/ui/__init__.py
# Copyright (c) Alibaba, Inc. and its affiliates. from .app import webui_main
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/base.py
swift/ui/base.py
import os import shutil import sys import time import typing from dataclasses import fields from datetime import datetime from functools import wraps from typing import Any, Dict, List, OrderedDict, Type import json from gradio import Accordion, Audio, Button, Checkbox, Dropdown, File, Image, Slider, Tab, TabItem, Tex...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/app.py
swift/ui/app.py
import os import gradio as gr from packaging import version from transformers.utils import strtobool from swift.llm.utils import WebuiArguments from swift.ui.llm_eval.llm_eval import LLMEval from swift.ui.llm_export.llm_export import LLMExport from swift.ui.llm_infer.llm_infer import LLMInfer from swift.ui.llm_train....
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_infer/runtime.py
swift/ui/llm_infer/runtime.py
import collections import os.path import sys import time from datetime import datetime from typing import Dict, List, Tuple, Type import gradio as gr import json import psutil from gradio import Accordion, Tab from packaging import version from swift.ui.base import BaseUI from swift.utils import get_logger from swift...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_infer/model.py
swift/ui/llm_infer/model.py
import os.path from typing import Type import gradio as gr import json from swift.llm import MODEL_MAPPING, TEMPLATE_MAPPING, ModelType from swift.ui.base import BaseUI from swift.ui.llm_infer.generate import Generate class Model(BaseUI): llm_train = 'llm_infer' sub_ui = [Generate] is_inference = os....
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_infer/llm_infer.py
swift/ui/llm_infer/llm_infer.py
import os import re import sys import time from datetime import datetime from functools import partial from typing import Type import gradio as gr import json import torch from gradio import Accordion, Tab from json import JSONDecodeError from modelscope import GenerationConfig, snapshot_download from swift.llm impor...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_infer/generate.py
swift/ui/llm_infer/generate.py
import os from typing import Type import gradio as gr from swift.ui.base import BaseUI class Generate(BaseUI): group = 'llm_infer' locale_dict = { 'max_new_tokens': { 'label': { 'zh': '生成序列最大长度', 'en': 'Max new tokens' }, }, '...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_infer/__init__.py
swift/ui/llm_infer/__init__.py
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/advanced.py
swift/ui/llm_train/advanced.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class Advanced(BaseUI): group = 'llm_train' locale_dict = { 'advanced_param': { 'label': { 'zh': '高级参数设置', 'en': 'Advanced settings' }, }, 'optim': {...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/quantization.py
swift/ui/llm_train/quantization.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class Quantization(BaseUI): group = 'llm_train' locale_dict = { 'quantization_tab': { 'label': { 'zh': '量化参数设置', 'en': 'Quantization settings' }, }, ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/runtime.py
swift/ui/llm_train/runtime.py
import collections import os.path import sys import time import webbrowser from datetime import datetime from typing import Dict, List, Tuple, Type import gradio as gr import json import matplotlib.pyplot as plt import psutil from gradio import Accordion, Tab from transformers import is_tensorboard_available from swi...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/llm_train.py
swift/ui/llm_train/llm_train.py
import collections import os import re import sys import time from functools import partial from subprocess import PIPE, STDOUT, Popen from typing import Dict, Type import gradio as gr import json import torch from gradio import Accordion, Checkbox, Dropdown, Slider, Tab, Textbox from json import JSONDecodeError from...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/rlhf.py
swift/ui/llm_train/rlhf.py
from typing import Type import gradio as gr from swift.llm import MODEL_MAPPING, ModelType from swift.ui.base import BaseUI class RLHF(BaseUI): group = 'llm_train' locale_dict = { 'rlhf_tab': { 'label': { 'zh': '人类对齐参数设置', 'en': 'RLHF settings' ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/llamapro.py
swift/ui/llm_train/llamapro.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class LlamaPro(BaseUI): group = 'llm_train' locale_dict = { 'llamapro_tab': { 'label': { 'zh': 'LLAMAPRO参数设置', 'en': 'LLAMAPRO Settings' }, }, 'llama...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/hyper.py
swift/ui/llm_train/hyper.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class Hyper(BaseUI): group = 'llm_train' locale_dict = { 'hyper_param': { 'label': { 'zh': '超参数设置(更多参数->高级参数设置)', 'en': 'Hyper settings(more params->Advanced settings)', ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/model.py
swift/ui/llm_train/model.py
from typing import Type import gradio as gr from swift.llm import MODEL_MAPPING, TEMPLATE_MAPPING, ModelType from swift.ui.base import BaseUI class Model(BaseUI): group = 'llm_train' locale_dict = { 'model_type': { 'label': { 'zh': '选择模型', 'en': 'Select M...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/dataset.py
swift/ui/llm_train/dataset.py
import os from typing import Type import gradio as gr from swift.llm import DATASET_MAPPING from swift.ui.base import BaseUI class Dataset(BaseUI): group = 'llm_train' locale_dict = { 'dataset': { 'label': { 'zh': '数据集名称', 'en': 'Dataset Code' ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/lora.py
swift/ui/llm_train/lora.py
from typing import Type import gradio as gr from swift.llm import MODEL_MAPPING, get_default_lora_target_modules from swift.ui.base import BaseUI class LoRA(BaseUI): group = 'llm_train' locale_dict = { 'lora_tab': { 'label': { 'zh': 'LoRA参数设置', 'en': 'Lo...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/self_cog.py
swift/ui/llm_train/self_cog.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class SelfCog(BaseUI): group = 'llm_train' locale_dict = { 'self_cognition': { 'label': { 'zh': '自我认知任务参数设置', 'en': 'Self cognition settings' }, }, '...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/utils.py
swift/ui/llm_train/utils.py
import asyncio import sys from asyncio.subprocess import PIPE, STDOUT async def run_and_get_log(*args, timeout=None): process = await asyncio.create_subprocess_exec(*args, stdout=PIPE, stderr=STDOUT) lines = [] while True: try: line = await asyncio.wait_for(process.stdout.readline(), t...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/galore.py
swift/ui/llm_train/galore.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class Galore(BaseUI): group = 'llm_train' locale_dict = { 'galore_tab': { 'label': { 'zh': 'Galore参数设置', 'en': 'Galore Settings' }, }, 'use_galore': ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/__init__.py
swift/ui/llm_train/__init__.py
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/lisa.py
swift/ui/llm_train/lisa.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class Lisa(BaseUI): group = 'llm_train' locale_dict = { 'lisa_tab': { 'label': { 'zh': 'LISA参数设置', 'en': 'LISA settings' }, }, 'lisa_activated_layers...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_train/save.py
swift/ui/llm_train/save.py
from typing import Type import gradio as gr from swift.ui.base import BaseUI class Save(BaseUI): group = 'llm_train' locale_dict = { 'save_param': { 'label': { 'zh': '存储参数设置', 'en': 'Saving settings' }, }, 'push_to_hub': { ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_eval/runtime.py
swift/ui/llm_eval/runtime.py
import os.path from typing import Type import gradio as gr from packaging import version from swift.ui.base import BaseUI from swift.ui.llm_infer.runtime import Runtime from swift.utils import get_logger logger = get_logger() class EvalRuntime(Runtime): group = 'llm_eval' cmd = 'eval' locale_dict = ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_eval/eval.py
swift/ui/llm_eval/eval.py
import os.path from typing import Type import gradio as gr from swift.ui.base import BaseUI from swift.utils import get_logger logger = get_logger() class Eval(BaseUI): group = 'llm_eval' locale_dict = { 'name': { 'label': { 'zh': '评测名称', 'en': 'Evaluat...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_eval/model.py
swift/ui/llm_eval/model.py
import os.path from typing import Type import gradio as gr from swift.llm import MODEL_MAPPING, ModelType from swift.ui.base import BaseUI class Model(BaseUI): group = 'llm_eval' locale_dict = { 'checkpoint': { 'value': { 'zh': '训练后的模型', 'en': 'Trained m...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_eval/llm_eval.py
swift/ui/llm_eval/llm_eval.py
import os import re import sys import time from datetime import datetime from functools import partial from typing import Type import gradio as gr import json import torch from gradio import Accordion, Tab from json import JSONDecodeError from modelscope import snapshot_download from swift.llm import EvalArguments fr...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_eval/__init__.py
swift/ui/llm_eval/__init__.py
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_export/llm_export.py
swift/ui/llm_export/llm_export.py
import os import re import sys import time from datetime import datetime from functools import partial from typing import Type import gradio as gr import json import torch from gradio import Accordion, Tab from json import JSONDecodeError from modelscope import snapshot_download from swift.llm import ExportArguments ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_export/runtime.py
swift/ui/llm_export/runtime.py
from swift.ui.llm_infer.runtime import Runtime from swift.utils import get_logger logger = get_logger() class ExportRuntime(Runtime): group = 'llm_export' cmd = 'export' locale_dict = { 'runtime_tab': { 'label': { 'zh': '运行时', 'en': 'Runtime' ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_export/export.py
swift/ui/llm_export/export.py
from typing import Type import gradio as gr from swift.llm import DATASET_MAPPING from swift.ui.base import BaseUI class Export(BaseUI): group = 'llm_export' locale_dict = { 'merge_lora': { 'label': { 'zh': '合并lora', 'en': 'Merge lora' }, ...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_export/model.py
swift/ui/llm_export/model.py
import os.path from typing import Type import gradio as gr from swift.llm import MODEL_MAPPING, ModelType from swift.ui.base import BaseUI class Model(BaseUI): group = 'llm_export' locale_dict = { 'checkpoint': { 'value': { 'zh': '训练后的模型', 'en': 'Trained...
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/swift/ui/llm_export/__init__.py
swift/ui/llm_export/__init__.py
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/train_dreambooth_lora_sdxl.py
examples/pytorch/sdxl/train_dreambooth_lora_sdxl.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import train_dreambooth_lora_sdxl if __name__ == '__main__': train_dreambooth_lora_sdxl()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/train_controlnet_sdxl.py
examples/pytorch/sdxl/train_controlnet_sdxl.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import train_controlnet_sdxl if __name__ == '__main__': train_controlnet_sdxl()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_controlnet_sdxl.py
examples/pytorch/sdxl/infer_controlnet_sdxl.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_controlnet_sdxl if __name__ == '__main__': infer_controlnet_sdxl()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/train_dreambooth_lora.py
examples/pytorch/sdxl/train_dreambooth_lora.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import train_dreambooth_lora if __name__ == '__main__': train_dreambooth_lora()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/train_text_to_image.py
examples/pytorch/sdxl/train_text_to_image.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import train_text_to_image if __name__ == '__main__': train_text_to_image()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_text_to_image_sdxl.py
examples/pytorch/sdxl/infer_text_to_image_sdxl.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_text_to_image_sdxl if __name__ == '__main__': infer_text_to_image_sdxl()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_text_to_image.py
examples/pytorch/sdxl/infer_text_to_image.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_text_to_image if __name__ == '__main__': infer_text_to_image()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_dreambooth.py
examples/pytorch/sdxl/infer_dreambooth.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_dreambooth if __name__ == '__main__': infer_dreambooth()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_text_to_image_lora_sdxl.py
examples/pytorch/sdxl/infer_text_to_image_lora_sdxl.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_text_to_image_lora_sdxl if __name__ == '__main__': infer_text_to_image_lora_sdxl()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_dreambooth_lora_sdxl.py
examples/pytorch/sdxl/infer_dreambooth_lora_sdxl.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_dreambooth_lora_sdxl if __name__ == '__main__': infer_dreambooth_lora_sdxl()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/train_controlnet.py
examples/pytorch/sdxl/train_controlnet.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import train_controlnet if __name__ == '__main__': train_controlnet()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_controlnet.py
examples/pytorch/sdxl/infer_controlnet.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_controlnet if __name__ == '__main__': infer_controlnet()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/train_dreambooth.py
examples/pytorch/sdxl/train_dreambooth.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import train_dreambooth if __name__ == '__main__': train_dreambooth()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false
wyczzy/AIGI-Holmes
https://github.com/wyczzy/AIGI-Holmes/blob/bae30b9e807230255a9f3fd18c9c64c08805b427/examples/pytorch/sdxl/infer_text_to_image_lora.py
examples/pytorch/sdxl/infer_text_to_image_lora.py
# Copyright (c) Alibaba, Inc. and its affiliates. from swift.aigc import infer_text_to_image_lora if __name__ == '__main__': infer_text_to_image_lora()
python
Apache-2.0
bae30b9e807230255a9f3fd18c9c64c08805b427
2026-01-05T07:09:55.123229Z
false