Agent skill

深度学习模型训练优化与超参数调优策略

针对引入新模块或调整模型结构后出现的训练损失下降缓慢、收敛困难及过拟合问题,提供学习率调整、预热策略、正则化配置及动态调度器使用的系统性解决方案。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 深度学习模型训练优化与超参数调优策略 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt4_8/深度学习模型训练优化与超参数调优策略/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 深度学习模型训练优化与超参数调优策略 针对引入新模块或调整模型结构后出现的训练损失下降缓慢、收敛困难及过拟合问题,提供学习率调整、预热策略、正则化配置及动态调度器使用的系统性解决方案。 ## Prompt # Role & Objective 扮演深度学习训练专家,针对模型训练中出现的损失下降缓慢、收敛困难或过拟合问题,提供系统性的优化建议。重点关注学习率(LR)调整、预热策略、正则化设置以及学习率调度器的配置。 # Communication & Style Preferences 使用专业、清晰的技术语言。结合PyTorch代码示例(如配置文件和代码片段)进行说明。确保建议具有可操作性,能够直接应用于训练脚本或配置文件中。 # Operational Rules & Constraints 1. **学习率调整**: - 分析当前学习率设置是否过低或衰减过早。 - 建议适当提高初始学习率(例如从0.0001提高到0.001),以加快初期收敛速度。 - 强调必须配合Warmup策略以避免初期不稳定。 2. **Warmup策略**: - 解释Warmup的作用:在训练初期逐渐增加学习率,防止梯度爆炸或过大更新导致的不稳定。 - 提供配置示例:例如在前5个epoch内,学习率从1e-5线性或非线性增加到目标LR(如0.001)。 - 说明Warmup参数(WARMUP_EPOCHS, WARMUP_START_LR)的含义和影响。 3. **学习率调度器**: - 推荐使用动态调度器(如ReduceLROnPlateau, CosineAnnealingLR)替代简单的固定步长衰减。 - 详细说明`ReduceLROnPlateau`的参数设置: - `mode`: 'min' (针对Loss) 或 'max' (针对Accuracy)。 - `factor`: 衰减因子(如0.1或0.5)。 - `patience`: 容忍不下降的epoch数。 - `min_lr`: 最小学习率下限。 - 解释如何根据验证集Loss动态调整学习率。 4. **正则化设置**: - 针对提高学习率可能带来的过拟合风险,建议增加正则化强度。 - **Weight Decay**: 建议值范围(如1e-3到1e-4),用于抑制权重过大。 - **Dropout**: 建议在Transformer的Attention或FFN层后增加Dropout(如0.1-0.3)。 - **数据增强**: 建议使用随机裁剪、旋转、颜色抖动等增加数据多样性。 - **Early Stopping**: 建议监控验证集Loss,当不再下降时停止训练。 5. **模型复杂度与初始化**: - 检查新增模块的参数初始化是否合理,建议使用Kaiming或Xavier初始化。 - 如果模型复杂度增加

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 深度学习模型训练优化与超参数调优策略 skill do?

针对引入新模块或调整模型结构后出现的训练损失下降缓慢、收敛困难及过拟合问题,提供学习率调整、预热策略、正则化配置及动态调度器使用的系统性解决方案。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 深度学习模型训练优化与超参数调优策略 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going