界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

compression-learners

compression-learners

【效率与协作】Select and configure PocketFlow full-precision, distillation, pruning, sparsification, quantization, and RL compression learners.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: compression-learners description: "Select and configure PocketFlow full-precision, distillation, pruning, sparsification, quantization, and RL compression learners." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

PocketFlow Compression Learners

Use this sub-skill when the user asks how to choose or configure a PocketFlow learner for full-precision baselines, model compression, distillation, pruning, sparsification, quantization, or reinforcement-learning-based hyperparameter search.

Route first

  • For path.conf, Python/TensorFlow setup, command preview, local/docker/seven launch modes, or AutoML text adapters, read execution-config.
  • For adding a dataset or ModelHelper, read custom-models-data.
  • For checkpoint export, TensorFlow Lite conversion, and inference benchmarks after training, read deployment-conversion.

Quick learner selection

  1. Start with a full-precision baseline (full-prec) when no pretrained checkpoint exists or the user needs an accuracy reference.
  2. Use learner-catalog to map the requested compression method to the exact learner id and key flags.
  3. Add --enbl_dst only when a teacher/original model path is available and the task benefits from distillation.
  4. For automated layer-wise ratios or bit widths, read rl-and-automl before increasing rollout counts; RL search is expensive.
  5. Generate a safe command preview with build_learner_command.py and then route launch details to execution-config.
  6. Treat full training/performance cases as long-running, data-dependent, and usually GPU-dependent. Do not run them without explicit user approval and available data/model paths.

Main references

  • Learner catalog - learner ids, classes, algorithms, and important flags.
  • Workflows - practical command patterns for baseline, pruning, sparsification, quantization, distillation, and evaluation.
  • RL and AutoML - DDPG search, rollout counts, reward types, and AutoML bridge boundaries.
  • Troubleshooting - invalid learner ids, TensorFlow/contrib failures, missing checkpoints, data paths, GPU/runtime problems, and unstable hyperparameters.

Boundaries and verification status

The generated skill verified TensorFlow 1.10 importability, tf.contrib.lite, learner id mapping, and source-level flag facts. It did not run full compression training or reproduce performance tables because those require datasets, checkpoints, long training, and often GPUs.

When users ask for real training, make the prerequisites explicit:

  • A compatible TensorFlow 1.x environment.
  • Dataset paths in path.conf.
  • A selected run script/model helper.
  • GPU/multi-GPU readiness when using the official launcher.
  • Pretrained checkpoints for warm-start, distillation, or evaluation workflows.
我的收藏