kali20gakki/msAgent / skills/quantizer/tune-practice-cfg
tune-practice-cfg
VerifiedUse when 量化调优闭环中需要生成或修改一轮调优所需的 Practice YAML,包括敏感层分析、策略决策、写出 YAML 文件和校验。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.9 KB |
| references/practice_yaml_format.md | markdown | 6.3 KB |
| references/sensitive_layer_analysis.md | markdown | 5.4 KB |
| references/strategy_standing_high.md | markdown | 1.5 KB |
| references/strategy_standing_high_with_experience.md | markdown | 3.0 KB |
| scripts/check_anti_outlier_support.py | script | 2.7 KB |
| scripts/validate_practice_yaml.py | script | 1.8 KB |
scripts/check_anti_outlier_support.py
View on GitHub# -------------------------------------------------------------------------
# This file is part of the MindStudio project.
# Copyright (c) 2026 Huawei Technologies Co.,Ltd.
#
# MindStudio is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# -------------------------------------------------------------------------
#!/usr/bin/env python3
"""List anti-outlier algorithms exposed by the installed model Adapter."""
from __future__ import annotations
import argparse
import json
from pathlib import Path
from typing import Any, Mapping
ALGORITHM_INTERFACES = {
"quarot": "QuaRotInterface",
"flex_smooth_quant": "FlexSmoothQuantInterface",
"flex_awq_ssz": "FlexSmoothQuantInterface",
"iter_smooth": "IterSmoothInterface",
"smooth_quant": "SmoothQuantInterface",
"oasq": "OASQInterface",
}
def list_supported_algorithms(
adapter: Any, interface_types: Mapping[str, type]
) -> dict[str, Any]:
"""Return selectable names using the installed Adapter's interface contract."""
supported = []
unsupported = []
for algorithm, interface_name in ALGORITHM_INTERFACES.items():
interface = interface_types.get(interface_name)
(supported if isinstance(interface, type) and isinstance(adapter, interface) else unsupported).append(
algorithm
)
return {"ok": True, "supported_algorithms": supported, "unsupported_algorithms": unsupported}
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--model-type", required=True)
parser.add_argument("--model-path", type=Path, required=True)
parser.add_argument("--trust-remote-code", action="store_true")
args = parser.parse_args()
from msmodelslim.model import interface_hub
from msmodelslim.model.plugin_factory.plugin_model_factory import PluginModelFactory
adapter = PluginModelFactory().create(args.model_type, args.model_path, args.trust_remote_code)
interface_types = {
name: getattr(interface_hub, name, None)
for name in set(ALGORITHM_INTERFACES.values())
}
result = list_supported_algorithms(adapter, interface_types)
result["adapter_class"] = f"{type(adapter).__module__}:{type(adapter).__qualname__}"
print(json.dumps(result, indent=2, ensure_ascii=False))
return 0
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |