cream
Routes DisCo Researcher to Cream-family vision NAS, compression, distillation, and relative-position-encoding workflows across the AutoFormer, AutoFormerV2, Cream, CDARTS, EfficientViT, MiniViT, TinyCLIP, TinyViT, and iRPE project families.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cream
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes DisCo Researcher to Cream-family vision NAS, compression, distillation, and relative-position-encoding workflows across the AutoFormer, AutoFormerV2, Cream, CDARTS, EfficientViT, MiniViT, TinyCLIP, TinyViT, and iRPE project families.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/compatibility.md1.8 KB
- 参考文档references/dataset-layouts.md1.8 KB
- 参考文档references/repo-provenance.md2.3 KB
- 参考文档references/repo-routing-metadata.json481 B
- 参考文档references/troubleshooting.md2.9 KB
- 脚本scripts/check_custom_ops.py1.7 KB
- 脚本scripts/check_dataset_layout.py3.2 KB
- 脚本scripts/check_environment.py2.6 KB
- 脚本scripts/check_legacy_imports.py2.5 KB
03 SKILL.md 正文
Cream
Use this skill when the user is working with the Cream monorepo or one of its vision-model subprojects. It is a router, not a manual: pick the matching sub-skill first, then read the bundled references and run the bundled checks.
What this skill covers
- AutoFormer and AutoFormerV2 search / evaluation / subImageNet workflows.
- Cream and CDARTS NAS, retrain, test, and dataset-prep workflows.
- EfficientViT classification plus downstream detection / segmentation.
- MiniViT Mini-DeiT and Mini-Swin distillation / compression workflows.
- TinyCLIP OpenCLIP-based inference, evaluation, and pretraining.
- TinyViT model creation, evaluation, sparse-logit saving, and training.
- iRPE integration for DeiT and DETR.
Quick setup
Use a CUDA-capable inspection environment with the shared packages validated for this repo family:
python -m pip install torch torchvision timm==0.4.12 yacs easydict termcolor ftfy regex tqdm huggingface_hub webdataset braceexpand pandas psutil tensorboard tensorboardX graphviz scikit-image opencv-python thop fvcore submitit onnx onnxruntime pytest open_clip_torch
For legacy NAS routes, the bundled compatibility notes explain the torch._six shim and other historical-dependency caveats.
Minimal environment check
python scripts/check_environment.py --modules torch,torchvision,timm,open_clip,yacs,easydict,ftfy,regex,webdataset,huggingface_hub,submitit,fvcore
python scripts/check_dataset_layout.py --help
Route map
| Route | Read this sub-skill for | Typical user phrases |
|---|---|---|
sub-skills/nas-search/ |
AutoFormer, AutoFormerV2, Cream, and CDARTS search / retrain / test / dataset prep | "AutoFormer", "S3", "Cream NAS", "CDARTS", "subImageNet", "search architecture" |
sub-skills/efficientvit/ |
EfficientViT classification and downstream detection / segmentation | "EfficientViT", "ImageNet eval", "COCO downstream", "RetinaNet", "Mask R-CNN" |
sub-skills/minivit/ |
Mini-DeiT and Mini-Swin distillation / compression workflows | "MiniViT", "Mini-DeiT", "Mini-Swin", "weight multiplexing" |
sub-skills/tinyclip/ |
TinyCLIP inference, evaluation, and pretraining | "TinyCLIP", "OpenCLIP", "zero-shot", "pretrain", "weight inheritance" |
sub-skills/tinyvit/ |
TinyViT evaluation, sparse-logit saving, finetuning, and training | "TinyViT", "save logits", "22k to 1k", "higher resolution" |
sub-skills/irpe/ |
iRPE for DeiT and DETR | "iRPE", "relative position encoding", "DeiT with iRPE", "DETR with iRPE" |
Shared helpers
scripts/check_environment.py— import and backend smoke check for the shared Python environment.scripts/check_dataset_layout.py— validate ImageNet, ImageNet-22k, subImageNet, and COCO-style layouts.scripts/check_custom_ops.py— report whether the optionalrpe_opsextensions are built.scripts/check_legacy_imports.py— probe the legacy NAS modules under a modern-torch compatibility shim.
Cross-cutting references
references/compatibility.md— read when you need the verified environment baseline, legacy-torch caveats, or the TinyCLIP package note.references/dataset-layouts.md— read when you need the canonical ImageNet, ImageNet-22k, subImageNet, or COCO folder shapes.references/troubleshooting.md— read first for repo-wide failure patterns before you narrow the issue to a specific sub-skill.
Read provenance before refreshing
Read references/repo-provenance.md when you need to decide whether this skill still matches a Cream checkout.
If the repository commit, dirty state, or major evidence paths changed, refresh the skill instead of reusing it blindly.
Notes
- The generated skill is self-contained. Do not rely on the original repository checkout at runtime.
- Project-specific commands, API signatures, model names, and troubleshooting details live in the sub-skill references.
- Do not run the source repository's heavy training, search, or download commands unless the user explicitly asks for them.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).