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

pipeline-basics

pipeline-basics

【数据与研究】Install/import OpenPrompt, inspect the public pipeline APIs, and build the minimal PromptDataLoader/PromptForClassification/PromptForGeneration flow.

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

技能说明

GitHub

name: pipeline-basics description: "Install/import OpenPrompt, inspect the public pipeline APIs, and build the minimal PromptDataLoader/PromptForClassification/PromptForGeneration flow." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Pipeline Basics

Use this sub-skill for the OpenPrompt package-usage surface: install checks, public exports, InputExample / InputFeatures, PromptDataLoader, PromptForClassification, PromptForGeneration, and load_plm.

Start here:

  • references/api-reference.md for verified signatures and return contracts.
  • references/workflows.md for the minimal classification/generation quickstart and the no-download smoke.
  • references/troubleshooting.md for dependency and wrapper failures.
  • scripts/check_openprompt_install.py for the canonical import/API smoke.

Operating rules:

  1. Keep to the basic pipeline. Do not expand into prompt-template grammar, prompt-asset curation, dataset acquisition, or training-loop tuning.
  2. Prefer the smoke script before deeper debugging. It runs from a temporary working directory, imports the installed openprompt package, avoids downloads, and checks the fake-wrapper loader path.
  3. PromptDataLoader accepts either a ready wrapper object or a wrapper class plus tokenizer; the wrapper class must expose the constructor kwargs filtered by the loader.
  4. Route template/verbalizer design to ../template-verbalizer-design/, data/config work to ../data-and-config-workflows/, and training/runtime issues to ../training-and-generation/.
我的收藏