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

modeling-and-layers

modeling-and-layers

【效率与协作】Understand Scenic model registry contracts, BaseModel task bases, Flax module construction, layers, attention, matchers, and tiny smoke checks.

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

技能说明

GitHub

name: modeling-and-layers description: "Understand Scenic model registry contracts, BaseModel task bases, Flax module construction, layers, attention, matchers, and tiny smoke checks." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Modeling and Layers

Use this sub-skill when the task is about Scenic model selection, BaseModel contracts, task-specific model bases, Flax module construction, layer/attention/matcher APIs, or tiny smoke checks.

Start here

Scope and routing

  • In scope: model registry lookups, BaseModel and task-base contracts, loss/metric normalization, Flax module construction, layer/attention/matcher APIs, and smoke-test patterns for tiny inputs.
  • Out of scope: training orchestration, launch commands, schedules, checkpoint lifecycle, dataset builders, project selection, and paper/baseline choice.
  • Route training/runtime execution to running-and-training.
  • Route dataset builders and input-pipeline work to data-pipelines.
  • Route project-level or paper-level model selection to baselines-and-projects.

Operating rules

  1. Begin with the registry; an unrecognized model name is usually a registry or config problem, not a training problem.
  2. Treat build_flax_model() as the construction boundary. Build the Flax module, then use tiny init/apply checks instead of a full run.
  3. Keep loss functions local and scalar; keep metrics cross-device safe by returning sum/normalizer pairs.
  4. Use tiny dummy inputs for smoke checks and shape assertions. Prefer init_with_output, init, and apply on minimal batches.
  5. Keep optional matcher dependencies explicit. Do not promise scipy or ott-jax behavior unless the target matcher requires it.

When to read what

NeedRead
Registry, BaseModel, task bases, loss/metric rules, smoke-init patternreferences/modeling-api.md
Attention, layer, masked-layer, and matcher APIs plus tiny validation patternsreferences/layers-and-matchers.md
Common failure modes and recoveryreferences/troubleshooting.md
List registered models or resolve one classscripts/model_registry_probe.py
我的收藏