界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

models-and-inference

models-and-inference

【效率与协作】Route xTuring model selection, loading, saving, generation, and backend-specific inference choices.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: models-and-inference description: "Route xTuring model selection, loading, saving, generation, and backend-specific inference choices." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

models-and-inference

Use this sub-skill when the user needs to pick a supported model key, load a saved checkpoint, tune generation settings, save a model, or choose between base, LoRA, INT8, and K-bit variants.

Use this for

  • BaseModel.create("<key>") for supported registry-backed families.
  • BaseModel.load(path) for saved xTuring checkpoints and bundled x/... hub entries.
  • BaseModel.load(path, model_name="<key>") for a plain Hugging Face checkpoint directory without xturing.json.
  • GenericModel and the other Generic* wrappers for arbitrary local or hub checkpoints.
  • model.generate(...), model.save(...), and model.generation_config().

Route elsewhere for

  • dataset schemas, dataset conversion, or self-instruct generation -> data-prep-and-generation
  • fine-tuning, DPO, or trainer configuration -> training-and-alignment
  • CLI chat, API server, or playground UI -> cli-api-ui
  • perplexity or adapter-style evaluation -> evaluation

Read first

  1. references/model-catalog.md
  2. references/inference-workflows.md
  3. references/troubleshooting.md
  4. scripts/inspect_xturing_install.py

Known gap

  • StableDiffusion is registered but placeholder-only; instantiating it raises NotImplementedError, so do not route users there as a usable inference target.

This sub-skill is self-contained; do not depend on the original source checkout for model-selection or inference guidance.

我的收藏