Skip to content
Back to skills

Models And Customization

ASecurity

"Use docTR standalone model factories, custom weights, vocabulary

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devops

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill models-and-customization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Models And Customization?

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

Security grade badge for Models And Customization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-models-and-customization/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-models-and-customization)

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: models-and-customization
description: "Use docTR standalone model factories, custom weights, vocabulary
  whitelists, Hugging Face Hub models, ONNX export, and PyTorch
  device/precision/compile optimization safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# models-and-customization

Use this sub-skill when the task is about docTR model selection or model-level customization rather than end-to-end document I/O:

- Choosing detection, recognition, layout, table, classification, crop-orientation, or page-orientation architectures.
- Instantiating standalone predictors such as `detection_predictor`, `recognition_predictor`, `layout_predictor`, `table_predictor`, `crop_orientation_predictor`, and `page_orientation_predictor`.
- Loading custom weights or custom trained models into docTR predictors.
- Restricting recognition outputs with vocabulary whitelists.
- Loading or sharing models through the Hugging Face Hub interface.
- Exporting PyTorch models to ONNX or optimizing inference with devices, batch sizes, half precision, or `torch.compile`.

Do not use this sub-skill as the primary guide for full OCR/KIE pipelines, document loading/export objects, dataset formats, training commands, CLI usage, or service deployment. Route those to the corresponding sibling sub-skill, then return here only for the model-level details.

## Operating procedure

1. Start with [references/model-catalog-and-customization.md](references/model-catalog-and-customization.md) to pick the correct architecture, factory signature, custom loading pattern, Hub entry point, or whitelist strategy.
2. Use [references/optimization-and-export.md](references/optimization-and-export.md) before changing devices, precision, compile mode, batch sizes, or ONNX export settings.
3. If anything fails, read [references/troubleshooting.md](references/troubleshooting.md) before changing architectures or assuming a package bug.
4. Keep user code explicit about `pretrained`: `pretrained=True` can trigger model downloads; `pretrained=False` creates randomly initialized models and is not useful for real inference unless weights are loaded afterward.

## Quick routing cues

- "Which architecture should I use?" → model catalog.
- "I trained weights; how do I plug them into docTR?" → custom loading section in the model catalog.
- "Only allow German/Latin characters" → whitelist section in the model catalog.
- "Use a model from Hugging Face" → Hub section in the model catalog.
- "CUDA, MPS, BF16, FP16, compile, ONNX" → optimization/export reference.
- "Unknown architecture, state dict mismatch, CPU half precision, ONNX shape/names" → troubleshooting reference.

Files in this skill

  • SKILL.md2.7 KB
  • references/model-catalog-and-customization.md15.9 KB
  • references/optimization-and-export.md9.2 KB
  • references/troubleshooting.md10.8 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.