AGENT SKILL

vlm-segmentation

Choose and evaluate VLM or segmentation pipelines, including text-conditioned detection, masks, part labels, model-license constraints, and measured GPU deployment choices. Use when a task has a VLM or segmentation component; route pure diffusion prompting, training, or serving to its specialized skill.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 214
Forks
32

01 前言 Front Matter

name
vlm-segmentation
description
Choose and evaluate VLM or segmentation pipelines, including text-conditioned detection, masks, part labels, model-license constraints, and measured GPU deployment choices. Use when a task has a VLM or segmentation component; route pure diffusion prompting, training, or serving to its specialized skill.

02 资源文件 3

03 SKILL.md 正文

VLM + Segmentation + Diffusion Engineering

Скилл охватывает три тесно связанных домена. Выбери нужный раздел и загрузи соответствующий reference-файл.

Навигация по доменам

Задача Reference файл
Выбор модели сегментации, pipeline "текст → маски", VLM-стек, part-labeling references/vlm-segmentation.md
Диффузионные архитектуры, schedulers, обучение, LoRA, text encoder fusion references/diffusion-engineering.md
Два инстанса SAM3 на H100, MIG/MPS, memory, профилирование references/gpu-deployment.md

Правило выбора: если вопрос смешивает темы (например, "как деплоить диффузионную модель на H100") — прочитай оба релевантных файла.


Быстрые ответы без чтения reference-файлов

Candidate pipeline "фраза → маски"

1. SAM3 PCS (текстовый концепт) → instance masks + boxes + scores
   ИЛИ
   Grounding DINO / OWLv2 / YOLO-World → boxes → SAM2.1 → masks

2. Part-labeling: отдельный классификатор по ROI + фиксированный словарь

Candidate diffusion pipeline

1. Backbone: UNet (просто) или DiT/Flow (масштабирование)
2. Latent diffusion (VAE → латенты → денойзер → VAE decode)
3. Text encoder: CLIP (SD), два CLIP (SDXL), Qwen3 (Flux.2 klein 9B)
4. Fine-tune: начинать с LoRA, full fine-tune только если нужно
5. Memory: AMP (BF16) → checkpointing → ZeRO/FSDP при масштабе

Two SAM3 instances on H100 (only after host inspection)

MIG can provide hardware partitioning where the inspected GPU, driver, current
MIG layout and workload support it. It changes host GPU configuration: preserve
the current layout and obtain explicit operational approval before any change.

MPS (fallback) → кооперативный шеринг, без строгой изоляции

Ключевые характеристики моделей (быстрая справка)

Модель Параметры Лицензия Главная сильная сторона
SAM3 848M SAM License (gated) Open-vocab сегментация по тексту, все инстансы
SAM2.1-large model-card specific Apache-2.0 Видео-трекинг, интерактивная сегментация; reproduce any FPS on the target stack
SAM2.1-tiny model-card specific Apache-2.0 Lightweight variant; reproduce any FPS on the target stack
Florence-2-large 770M MIT Унифицированные задачи через task prompt
EdgeTAM ~SAM2-tiny Apache-2.0 16 FPS на iPhone 15 Pro Max, CoreML
Grounding DINO — Apache-2.0 Text-conditioned detection, boxes
YOLO-World — GPL-3.0 Real-time open-vocab OD, 52 FPS V100

Критические предупреждения

  • SAM3: gated access на HF, кастомная SAM License — проверь перед продакшном
  • YOLO-World: upstream states GPL-3.0 and supports commercial usage. GPL obligations apply by default; obtain a separate commercial licence only when the intended distribution or policy requires terms outside GPL, with legal review for the specific product.
  • Замена text encoder: не plug-and-play, нужен projection + переобучение cross-attention
  • MIG vs MPS: только MIG даёт аппаратную изоляцию VRAM/SM; MPS — кооперативный шеринг
  • For non-English prompts, compare the target model’s supported languages on a representative evaluation set; do not silently translate or claim a universal English advantage.

04 同仓库更多 Skills

AnastasiyaW
AnastasiyaW/codex-claude-code-config

owner-voice

暂无简介

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

humanize-russian

Редактировать русский текст для ясности и естественного звучания, сохраняя факты, термины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст живее, отредактировать русский черновик или статью перед публикацией. Не определяет авторство и не обещает обход детекторов. Для английского — humanize-english; для структуры и доказательств — article-structure-review.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

humanize-english

Edit English drafts for clear, natural language while preserving facts, uncertainty, technical meaning, citations and genre. Use when: humanize this text, remove AI-style filler, improve English prose, or edit an English article before publication. Not an authorship detector or a promise to bypass one. For Russian use humanize-russian; for thesis/evidence and structure use article-structure-review.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

caveman

Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse "caveman" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman", "talk like caveman", "use caveman", "less tokens", "be brief", or Russian "пещерный режим", "говори как пещерный", "кратко", "меньше токенов", "экономь токены" — or invokes /caveman. Preserves the user's language (Russian in → Russian caveman out). Off only: "stop caveman" / "normal mode" / "обычный режим". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

article-structure-review

Проверить структуру технической статьи после черновика: задача читателя, жанр, опора значимых утверждений на доказательства и честные ограничения. Use after the first draft, before publication. Исправлять структуру, когда это входит в запрос; не создавать обязательный конвейер из других навыков. Для локальной языковой редактуры — humanize-english или humanize-russian.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

video-post-production

Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames/scenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.

★ 214