agentleFS
AnastasiyaWAnastasiyaW/codex-claude-code-config/skills/ai-ml/vlm-segmentation/SKILL.md

vlm-segmentation

Skill213 starsChanged 2 days agoMITView on GitHub

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.

Files
SKILL.md

VLM + Segmentation + Diffusion Engineering

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

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

ЗадачаReference файл
Выбор модели сегментации, pipeline "текст → маски", VLM-стек, part-labelingreferences/vlm-segmentation.md
Диффузионные архитектуры, schedulers, обучение, LoRA, text encoder fusionreferences/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) → кооперативный шеринг, без строгой изоляции

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

МодельПараметрыЛицензияГлавная сильная сторона
SAM3848MSAM License (gated)Open-vocab сегментация по тексту, все инстансы
SAM2.1-largemodel-card specificApache-2.0Видео-трекинг, интерактивная сегментация; reproduce any FPS on the target stack
SAM2.1-tinymodel-card specificApache-2.0Lightweight variant; reproduce any FPS on the target stack
Florence-2-large770MMITУнифицированные задачи через task prompt
EdgeTAM~SAM2-tinyApache-2.016 FPS на iPhone 15 Pro Max, CoreML
Grounding DINO—Apache-2.0Text-conditioned detection, boxes
YOLO-World—GPL-3.0Real-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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.