huawei-cloud-msmodelslim-model-analysis
БесплатноЗапускает вложенные скриптыНе проверенAnalyze candidate models before adapter implementation. Determine model implementation source (transformers or model-local), structural features…
от 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.jsonOptional:
modeling_*.py,model.safetensors.index.jsonin the model directoryIf files are missing locally:
- Download non-weight files using:
modelscope download --model <org>/<model> --local_dir ./models/<name> --exclude '*.safetensors' - Read
config.jsonandmodeling_*.pyfrom the download directory as input for analysis.
- Download non-weight files using:
Hard Requirement: Parse Implementation Source First
Must complete before any structural analysis. Agent should manually parse following these steps:
Read
config.json:- Get
model_type - Get
auto_map(if present)
- Get
Try parsing from transformers:
- Check if
transformerslibrary supports themodel_type. - Check if path exists:
transformers/models/<model_type>/modeling_<model_type>.py. - If exists, record as
transformersimplementation.
- Check if
If not parsed, try model-local implementation:
- Check if files pointed by
auto_mapexist in the model directory. - Check if
modeling_*.pyfiles exist in the model directory. - If exists, record as
model-localimplementation.
- Check if files pointed by
If neither path available:
- Stop analysis.
- Request user to provide readable model implementation code.
Minimum Workflow
Parse implementation source (complete hard requirement above).
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)
Identify structural features:
- Decoder layer class, attention/MLP module naming, forward signature
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
Output structured analysis results (refer to template below).
Provide next steps:
- Proceed to adapter creation workflow
- Or block and explain what user needs to provide
Model Type,
Установить huawei-cloud-msmodelslim-model-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
python3FAQ
Что делает скилл 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic