AGENT SKILL

min-dalle

Use the min(DALL·E) Python package for text-to-image generation, model asset/runtime setup, CLI-style requests, notebook/UI workflows, and Replicate/Cog deployment troubleshooting.

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

01 前言 Front Matter

name
min-dalle
license
MIT
metadata
{ "disco-role": "operating" }
description
Use the min(DALL·E) Python package for text-to-image generation, model asset/runtime setup, CLI-style requests, notebook/UI workflows, and Replicate/Cog deployment troubleshooting.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

min(DALL·E)

Use this repo skill when a task names min-dalle, min_dalle, min(DALL·E), DALL·E Mini/Mega inference in PyTorch, or asks for lightweight text-to-image generation code with MinDalle. This skill is for operating the package as a library or interface; it is not a training, model-conversion, or upstream Flax/JAX maintenance guide.

Start safely

Install the public package and verify importability before running any generation that might download weights:

python -m pip install min-dalle
python - <<'PY'
from min_dalle import MinDalle
print(MinDalle)
PY

For a no-download API/backend inspection, run the bundled helper:

python scripts/inspect_min_dalle_api.py

Read references/troubleshooting.md when installation, imports, PyTorch, Pillow, emoji, or model-cache setup fails. Read references/repo-provenance.md before deciding whether this skill is stale for a newer checkout.

Route by task

  • Use sub-skills/text-to-image-generation/SKILL.md to write or debug Python MinDalle generation calls: generate_image, generate_images, stream APIs, tensor/PIL conversion, seeds, grid_size, temperature, top_k, supercondition_factor, seamless mode, is_mega, is_reusable, device, and dtype.
  • Use sub-skills/model-assets-and-runtime/SKILL.md to plan or troubleshoot models_root, tokenizer/weight downloads, cache layout, Mega versus Mini constants, CPU/CUDA/dtype choices, tokenizer normalization, and internal tensor shapes without unnecessary downloads.
  • Use sub-skills/deployment-and-interfaces/SKILL.md for command-line style requests, the safe CLI template, notebook/Colab progressive display, Tkinter UI behavior, Replicate/Cog predictor inputs, and deployment-specific failures.

Common choices

  • Start with device="cpu", dtype=torch.float32, is_mega=False, and grid_size=1 only for the smallest compatibility check; full generation can still be slow and may download model assets.
  • Use CUDA for practical Mega generation when available and verified. dtype=torch.float16 can reduce GPU memory; torch.bfloat16 is only appropriate on capable hardware such as Ampere-class CUDA.
  • Use is_reusable=True for repeated prompts when memory permits. Use is_reusable=False for one-shot runs under memory pressure.
  • Pass grid_size as a keyword argument for tensor batch APIs because the implementation reads kwargs["grid_size"] while reshaping.

Bundled scripts

Boundaries

This skill intentionally does not bundle model weights, example images, notebooks, or deployment images. Full image generation may require network access to model assets, significant disk space, substantial CPU/GPU memory, and runtime approval. Use the dry-run and inspection helpers before any side-effectful call.

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