Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-msmodelslim-model-analysis

БесплатноЗапускает вложенные скриптыНе проверен

Analyze candidate models before adapter implementation. Determine model implementation source (transformers or model-local), structural features…

huaweicloudskillот huaweicloudskill473 установки в других каталогах

Об этом скилле

Huawei Cloud msModelSlim Model Analysis

Overview

This skill analyzes candidate models before adapter implementation for msModelSlim.

Architecture: Implementation Source Detection → Model Type Classification → Structural Feature Analysis → Risk Assessment

Related Skills:

  • huawei-cloud-msmodelslim-model-adapt - Adapter creation based on analysis results

Architecture Components

This skill involves the following cloud services and components:

  • msModelSlim: Huawei Cloud's model quantization framework
  • Transformers Library: Hugging Face Transformers for model loading
  • ModelScope: Model download and management platform
  • config.json: Model configuration file for analysis

Architecture Diagram:

┌─────────────────────────────────────────────────────────────┐
│           msModelSlim Model Analysis Skill                  │
├─────────────────────────────────────────────────────────────┤
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐ │
│  │  Model       │───▶│  Source      │───▶│  Structure   │ │
│  │  Input       │    │  Detection   │    │  Analysis    │ │
│  │  (config)    │    │              │    │              │ │
│  └──────────────┘    └──────────────┘    └──────────────┘ │
│         │                   │                   │          │
│         ▼                   ▼                   ▼          │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐ │
│  │  Type        │    │  MoE         │    │  Risk        │ │
│  │  Classification│   │  Assessment │    │  Assessment │ │
│  └──────────────┘    └──────────────┘    └──────────────┘ │
└─────────────────────────────────────────────────────────────┘

Use Cases

Typical Problem Scenarios:

  • Assessing model adaptation feasibility before creating msModelSlim adapters
  • Analyzing model structure and type classification
  • Evaluating MoE compatibility for quantization
  • Determining if a model can be quantized with msModelSlim
  • Identifying potential risks before adapter development

Typical User Phrases:

  • "Analyze my model for msModelSlim compatibility"
  • "Check if this model can be quantized"
  • "Evaluate MoE fused weights risk"
  • "Assess model adaptation feasibility"
  • "Analyze model structure for quantization"
  • "AnalysisModelmsModelSlim"
  • "ModelQuantization"
  • "CheckMoE"

Scope

Supported:

  • Decoder-only LLM
  • VLM text backbone analysis (LLM/text path only)

Not supported:

  • Non-transformers implementations
  • Multimodal generation models (image/video/audio generation)

Required Input

  • Model path or model repository identifier

  • config.json

  • Optional: modeling_*.py, model.safetensors.index.json in the model directory

  • If files are missing locally:

    • Download non-weight files using: modelscope download --model <org>/<model> --local_dir ./models/<name> --exclude '*.safetensors'
    • Read config.json and modeling_*.py from the download directory as input for analysis.

Hard Requirement: Parse Implementation Source First

Must complete before any structural analysis. Agent should manually parse following these steps:

  1. Read config.json:

    • Get model_type
    • Get auto_map (if present)
  2. Try parsing from transformers:

    • Check if transformers library supports the model_type.
    • Check if path exists: transformers/models/<model_type>/modeling_<model_type>.py.
    • If exists, record as transformers implementation.
  3. If not parsed, try model-local implementation:

    • Check if files pointed by auto_map exist in the model directory.
    • Check if modeling_*.py files exist in the model directory.
    • If exists, record as model-local implementation.
  4. If neither path available:

    • Stop analysis.
    • Request user to provide readable model implementation code.

Minimum Workflow

  1. Parse implementation source (complete hard requirement above).

  2. Determine model type, structural differences, and connections:

    • Type: Pure LLM / Multimodal understanding / Multimodal generation
    • Compare with common Qwen2-like LLMs, record special structural designs (e.g., MoE, non-standard attention, SSM/hybrid blocks, additional heads or parallel branches)
    • Check special structure connections (location, dependencies, serial/parallel/residual connections, impact on backbone traversal)
  3. Identify structural features:

    • Decoder layer class, attention/MLP module naming, forward signature
  4. Determine features affecting adaptation:

    • Layer traversal path and order
    • Whether layer-by-layer loading is needed
    • MoE fused expert weight risk
    • Quantized model dequantization script risk
    • MTP structure implementation availability and weight handling risk
  5. Output structured analysis results (refer to template below).

  6. Provide next steps:

    • Proceed to adapter creation workflow
    • Or block and explain what user needs to provide

Model Type,

Полный SKILL.md на ClawHub

Установить huawei-cloud-msmodelslim-model-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

python3

FAQ

Что делает скилл huawei-cloud-msmodelslim-model-analysis?

Analyze candidate models before adapter implementation. Determine model implementation source (transformers or model-local), structural features, layer-by-layer loading requirements, and MoE fused weight risks. Use this skill when the user wants to assess model adaptation feasibility before creating msModelSlim adapters, analyze model structure and type classification, or evaluate MoE compatibility for quantization. Triggers include: "model analysis", "msModelSlim", "adapter", "transformers", "MoE", "layer-by-layer", "model assessment", "feasibility", "模型分析", "适配可行性", "模型评估", "MoE分析"

Как установить скилл huawei-cloud-msmodelslim-model-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-msmodelslim-model-analysis запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-msmodelslim-model-analysis с