Skip to content
Back to skills

Model Backends

ASecurity

"Configure OpenCompass model backends including HuggingFace, API,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentsexpressapibackend

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill model-backends --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Backends?

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

Security grade badge for Model Backends
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-backends-8801e443/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-backends-8801e443)

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: model-backends
description: "Configure OpenCompass model backends including HuggingFace, API,
  custom wrappers, LMDeploy, vLLM, credentials, resource run_cfg,
  tokenizer/model kwargs, batching, and backend troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Model Backends

Use this sub-skill when an OpenCompass task is about model configuration rather than dataset selection, prompt construction, or workflow launch. It covers HuggingFace/local models, API providers, accelerated LMDeploy/vLLM/LightLLM-style backends, custom model wrappers, credentials, and resource sizing.

## Route by Backend

- HuggingFace/local Transformers models: use `references/model-configuration.md` for `HuggingFace`, `HuggingFaceCausalLM`, `HuggingFacewithChatTemplate`, tokenizer/model kwargs, `batch_size`, `max_seq_len`, `max_out_len`, `batch_padding`, and `run_cfg`.
- API models: use `references/api-models.md` for `OpenAI`, `OpenAISDK`, `TurboMindAPIModel`, credential handling, `query_per_second`, `retry`, `rpm_verbose`, `openai_api_base`, and no-network config checks.
- Accelerated local backends: use `references/backend-compatibility.md` for `--accelerator {vllm,lmdeploy,None}`, direct `VLLM` configs, direct `TurboMindModel` configs, service-based acceleration, and optional dependency boundaries.
- New/custom model support: use `references/model-configuration.md#custom-model-extension-route` when an existing OpenCompass backend cannot express the target model.
- Backend failures: use `references/troubleshooting.md` before changing datasets, prompts, summarizers, or evaluation mode.

## Boundaries

- For prompt templates, `meta_template`, and generation prompt behavior, coordinate with `../prompt-and-inference/SKILL.md` if present.
- For dataset imports, config composition, and `read_base()` patterns, coordinate with `../configuration-and-datasets/SKILL.md` if present.
- For `opencompass` CLI launch modes, `--mode`, `--reuse`, runners, and work directories, coordinate with `../evaluation-workflows/SKILL.md` if present.
- Do not claim real HuggingFace/GPU/API inference is verified unless a task explicitly runs it in a suitable environment with required optional extras and credentials.

## Bundled Script

- `scripts/check_api_model_config.py`: loads an OpenCompass config, inspects model dictionaries, identifies likely API models, checks credential placeholders/environment-variable references, validates common API rate/resource fields, and exits before building models or making network calls.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-models.md5.7 KB
  • references/backend-compatibility.md6.5 KB
  • references/model-configuration.md6.5 KB
  • references/troubleshooting.md5.8 KB
  • scripts/check_api_model_config.py8.9 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.