AGENT SKILL

model-assets-and-runtime

Set up and inspect min(DALL·E) model assets, tokenizer, model variants, runtime device/dtype decisions, and internal shapes without unnecessary downloads.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
model-assets-and-runtime
license
MIT
metadata
{ "disco-role": "operating" }
description
Set up and inspect min(DALL·E) model assets, tokenizer, model variants, runtime device/dtype decisions, and internal shapes without unnecessary downloads.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

model-assets-and-runtime

Use this sub-skill when the task is about min(DALL·E) model weight caches, tokenizer assets, model variant sizing, device/dtype choices, memory/runtime setup, or internal tensor shapes. The goal is to inspect and prepare safely before running expensive generation.

Fast routing

  • For cache layout, download side effects, Hugging Face asset names, is_mega constants, dtype/device choices, and no-download preflight checks, read references/runtime-and-assets.md.
  • For tokenizer normalization, BPE behavior, special tokens, 64-token text limit, 256 image-token loop, decoder sampling, and VQGAN detokenizer shapes, read references/tokenizer-and-model-internals.md.
  • For failed downloads, corrupt cache files, CUDA/CPU dtype surprises, OOM, SSL/proxy problems, and tokenizer surprises, read references/troubleshooting.md.
  • For a deterministic no-network tokenizer check, run scripts/tokenizer_smoke.py. It uses a synthetic vocabulary and does not instantiate MinDalle or load model weights.

Route out of this sub-skill

  • User-facing text-to-image generation recipes, MinDalle.generate_image* usage, stream consumption, seed/top-k/temperature recipe choices, and saving generated PIL/tensor outputs belong in ../text-to-image-generation/SKILL.md.
  • Command-line usage, Replicate/Cog, Tkinter, Colab/notebook, and public interface behavior belong in ../deployment-and-interfaces/SKILL.md.
  • Architecture modification, training, conversion from upstream Flax/JAX weights, and benchmarking beyond lightweight preflight are out of scope for this generated repo skill.

Operating rules

  1. Prefer no-download inspection first: examine the chosen models_root layout and run the tokenizer smoke script before constructing a full MinDalle object.
  2. Treat MinDalle(...) construction as potentially network- and memory-active. Even tokenizer initialization can contact the Hugging Face asset endpoint; is_reusable=True can download and load all major .pt weights.
  3. Do not load .pt files just to prove that a cache path exists. Check existence, non-zero size, and obvious partial-download symptoms first; only load weights when the user approved full runtime setup.
  4. Choose device, dtype, is_mega, and is_reusable from the user's hardware and budget rather than from examples copied blindly.
  5. Keep runtime instructions self-contained in this sub-skill; the original repository checkout is not required for routine setup or debugging.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351