deployment-and-interfaces
Routes min(DALL·E) command-line, notebook, Tkinter GUI, and Replicate/Cog interface workflows beyond direct MinDalle API calls.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- deployment-and-interfaces
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes min(DALL·E) command-line, notebook, Tkinter GUI, and Replicate/Cog interface workflows beyond direct MinDalle API calls.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-reference.md3.8 KB
- 参考文档references/interface-workflows.md4.9 KB
- 参考文档references/troubleshooting.md5.3 KB
- 脚本scripts/min_dalle_cli_template.py6.7 KB
- 脚本scripts/replicate_filename_sanitize.py2.1 KB
03 SKILL.md 正文
deployment-and-interfaces
Use this sub-skill when the task is about min(DALL·E) public interfaces outside a direct MinDalle API call: command-line usage, Colab/notebook patterns, the Tkinter UI, Replicate/Cog deployment, predictor filenames, output paths, or interface-specific troubleshooting.
Start here
- Read references/cli-reference.md for the original
image_from_text.pyflags, defaults, save behavior, ASCII preview, and the verified absence of an installed console command. - Read references/interface-workflows.md for the Colab/notebook flow, Tkinter controls and limits, Replicate predictor inputs/defaults/ranges, filename sanitation, output extensions, Cog pins, and deployment caveats.
- Read references/troubleshooting.md when the user reports a missing command, slow downloads/inference, CPU/FP16 problems, display errors, Cog/CUDA issues, unexpected Replicate filenames, or progressive-output counts.
Bundled helpers
- scripts/min_dalle_cli_template.py is the safe replacement for the original command-line script. It defaults to
--dry-run; add--runonly when the user explicitly wants model construction, possible downloads, and inference. - scripts/replicate_filename_sanitize.py previews the Replicate-style output basename without requiring Cog or model loading.
Useful no-network checks:
python scripts/min_dalle_cli_template.py --help
python scripts/min_dalle_cli_template.py --text "artificial intelligence" --no-mega --top-k 256
python scripts/replicate_filename_sanitize.py --self-test
python scripts/replicate_filename_sanitize.py --text "Dali painting of WALL·E"
Boundary routes
- For direct
MinDalleconstruction,generate_image,generate_image_stream, sampling arguments, tensor/PIL image semantics, and reusable model lifetime, route to ../text-to-image-generation/SKILL.md. - For model weight downloads,
models_root, cache layout, device selection, dtype/backend behavior, CUDA/CPU trade-offs, and environment setup, route to ../model-assets-and-runtime/SKILL.md. - Do not tell future agents to run the original repository scripts or notebook. Use this sub-skill's bundled helpers and distilled references instead.
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).