inference-and-rendering
БесплатноБез исполняемых скриптовНе проверенLoad DeTikZify models and adapters, build inference pipelines, generate TikZ, compile and rasterize documents, and troubleshoot programmatic synthesis…
от lza6★ 19 звёзд на GitHubОб этом скилле
Inference and Rendering
Use this sub-skill when the task is about DeTikZify's Python inference surface: model loading, processor handling, adapter-backed text conditioning, DetikzifyPipeline, DetikzifyGenerator, TikzDocument, compile/rasterize/save, or MCTS-backed sampling.
Route away from this sub-skill when the main task is the browser UI, training loops, evaluation metrics, or dataset builders. Those workflows have dedicated sub-skills.
Fast Path
- Confirm the package imports and the public API surface is present:
python scripts/api_smoke.py - For a rendering-specific smoke, compile a tiny document through the bundled helper:
python scripts/tikz_smoke.py - If you need search-based synthesis or tree-search behavior, run the MCTS helper:
python scripts/mcts_smoke.py
What This Sub-Skill Owns
detikzify.model.load(...)anddetikzify.model.load_adapter(...)DetikzifyProcessorandAdapterProcessorDetikzifyPipeline.sample(...)andDetikzifyPipeline.simulate(...)DetikzifyGeneratorand the MCTS bridge used inside the pipelineTikzDocument.compile(),rasterize(),save(), and error inspection- image loading / preprocessing helpers that feed inference or rendering
- text-conditioned generation when an adapter is loaded
Common Decisions
- Use
load(model_name_or_path, ...)for image-conditioned generation with the default processor flow. - Use
load_adapter(...)or a model that already carries an adapter when the request needs text prompts. - Use
sample(...)for a single best TikZ program andsimulate(...)when the user wants search / multiple candidates. - Treat
metric="model"as the perceptual path andmetric="fast"as the compiler-diagnostics path. - Set
preprocess=Truewhen you want the image trimmed and padded to a square before generation. - Check
compile_timeoutandmcts_timeoutseparately; they control different stages.
Bundled References
- references/api-reference.md: signatures and object roles for the public inference surface.
- references/workflows.md: image-conditioned, text-conditioned, save/rasterize, and search-based workflows.
- references/troubleshooting.md: adapter, CUDA, image-source, and compile/rasterize failure modes.
Related Helpers
- ../../scripts/api_smoke.py: safe import and signature snapshot.
- ../../scripts/tikz_smoke.py: safe TeX compile/rasterize smoke.
- ../../scripts/mcts_smoke.py: safe dummy-state MCTS sanity check.
Guardrails
- A CPU import does not prove the GPU path works.
- Do not assume text prompts work unless an adapter-capable load path is active.
- Do not treat compile success as proof that the output is non-empty; check the rasterized result too.
Установить inference-and-rendering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл inference-and-rendering?
Load DeTikZify models and adapters, build inference pipelines, generate TikZ, compile and rasterize documents, and troubleshoot programmatic synthesis workflows.
Как установить скилл inference-and-rendering?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inference-and-rendering запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic