计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
generation【效率与协作】Routes GPT2-Chinese prompt-based text generation and batch sample export.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about generating text from a checkpoint with generate.py or generate_texts.py.
../references/workflows.md for the end-to-end generation flow.../references/cli-reference.md for the exact flags and output paths.../references/model-overview.md when you need to match a checkpoint to a vocabulary bundle.../references/troubleshooting.md and this sub-skill's troubleshooting file for loop, prompt, and sample-saving issues.../../scripts/check_install.py when you want to confirm the environment can instantiate the model and sample a token sequence.generate.py for interactive or single-prompt generation.generate_texts.py for batch generation by title list.--prefix, --length, --temperature, --topk, --topp, and --repetition_penalty.--save_samples or --save_path.generate.py.generate_texts.py.model_path or model_path should point at a saved checkpoint directory.tokenizer_path must match the config and checkpoint vocab size.[CLS]-prefixed prompt.--fast_pattern is the preferred smoke path.--topk, --topp, and --temperature shape the sampling distribution.--save_samples writes a samples.txt file.generate_texts.py writes one text file per generated article.--batch_size 1 and use a short length.nsamples versus batch_size first.samples.txt when --save_samples is used.<title-index>-<article-index>.txt files when generate_texts.py is used.