Skip to content
Back to skills

Modalities Adapters Pooling

ASecurity

"Handle vLLM multimodal payloads, media allowlists, LoRA/prompt

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
ai-agentspythonrustbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill modalities-adapters-pooling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Modalities Adapters Pooling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Modalities Adapters Pooling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-modalities-adapters-pooling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-modalities-adapters-pooling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: modalities-adapters-pooling
description: "Handle vLLM multimodal payloads, media allowlists, LoRA/prompt
  adapters, pooling/embedding/classification/rerank/score/token outputs, and
  model/output compatibility checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# vLLM Modalities, Adapters, and Pooling

Use this sub-skill when a task involves multimodal inputs, image/audio/video payloads, media safety limits, LoRA adapters, pooling runners, embeddings, classification, rerank/score APIs, token-level pooling outputs, or validating output shapes.

## Route by task

- **Multimodal payloads and media safety**: read [references/multimodal.md](references/multimodal.md) for offline `multi_modal_data`, OpenAI/chat content parts, `allowed_local_media_path`, `allowed_media_domains`, media limits, and `mm_processor_kwargs`.
- **LoRA adapters and resolvers**: read [references/lora.md](references/lora.md) for `LoRARequest`, `--enable-lora`, `--lora-modules`, runtime loading, resolver plugins, rank/target checks, and adapter/model ID mismatches.
- **Pooling APIs and outputs**: read [references/pooling.md](references/pooling.md) for `runner="pooling"`, `LLM.embed`, `LLM.classify`, `LLM.score`, `LLM.encode`, OpenAI-compatible `/v1/embeddings`, `/score`, `/rerank`, and output shape expectations.
- **Failure diagnosis**: read [references/troubleshooting.md](references/troubleshooting.md) when errors mention local files, domains, malformed media content, missing processor kwargs, LoRA rank/targets, unsupported pooling tasks, or output conversion shape errors.

## Fast checks

1. Confirm the model supports the requested modality/task before writing code. Multimodal generation, pooling, classification, token embedding, rerank, and score are model-dependent and often require `trust_remote_code`, templates, or conversion flags.
2. For local or remote media in server/OpenAI flows, inspect the request before running a server:

   ```bash
   python scripts/validate_multimodal_payload.py request.json \
     --allowed-local-media-path /srv/media \
     --allowed-media-domain upload.wikimedia.org
   ```

3. Keep offline generation responsibilities separate from pooling responsibilities. Route general `LLM.generate`/`SamplingParams` basics to the root/offline inference skill; use this sub-skill only for multimodal, adapter, and pooling-specific decisions.
4. Treat GPU execution, model downloads, and live server calls as user-provided and hardware-gated. The bundled validator performs static JSON inspection only and does not download media.

## Minimal decision table

| If the user asks for | Prefer | Key extraction |
| --- | --- | --- |
| Caption/question over images/video/audio | Multimodal generation | `outputs[0].outputs[0].text` |
| Text/image embedding vector | Pooling embed | `outputs[0].outputs.embedding` |
| Class probabilities/logits | Pooling classify | `outputs[0].outputs.probs` |
| Pair similarity | Score API | `outputs[0].outputs.score` offline or `data[].score` online |
| Ranked documents | Rerank API | `results[].index`, `results[].relevance_score` |
| Per-token labels/vectors/rewards | Token pooling task | inspect `PoolingRequestOutput.outputs.data` shape before converting |
| Adapter-specific generation/pooling | LoRA | `LoRARequest(name, int_id, path)` offline or request `model=<adapter-name>` online |

Files in this skill

  • SKILL.md3.3 KB
  • references/lora.md5.6 KB
  • references/multimodal.md6.6 KB
  • references/pooling.md6.4 KB
  • references/troubleshooting.md6.4 KB
  • scripts/validate_multimodal_payload.py8.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.