generative-workflows
Use Simple Transformers language modeling, language generation, T5, Seq2Seq, ConvAI, and text-to-text workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- generative-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Simple Transformers language modeling, language generation, T5, Seq2Seq, ConvAI, and text-to-text workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md3.1 KB
- 参考文档references/data-formats.md1.8 KB
- 参考文档references/troubleshooting.md1.5 KB
- 参考文档references/workflows.md2.1 KB
03 SKILL.md 正文
Simple Transformers Generative Workflows Sub-skill
Use this sub-skill for language-model fine-tuning or training from scratch, free-form generation, T5 text-to-text tasks, generic Seq2Seq encoder/decoder models, and ConvAI chatbot-style workflows.
Owns
LanguageModelingModel/LanguageModelingArgs/GenerationArgs.LanguageGenerationModel/LanguageGenerationArgs.T5Model/T5Argsfor prefix-based text-to-text tasks.Seq2SeqModel/Seq2SeqArgsfor encoder-decoder and separate encoder/decoder setups.ConvAIModel/ConvAIArgsfor conversational training and interaction.- Text, CSV/DataFrame, prefix/input/target, and conversation data validation.
Route elsewhere
- Ordinary binary/multiclass/multilabel/regression classification: classification.
- Extractive QA or NER: token-and-qa.
- Dense retrieval, representations, and BEIR/MSMARCO: retrieval-representation.
Read first
- API reference for constructors and methods.
- Data formats before preparing LM/T5/Seq2Seq/ConvAI inputs.
- Workflows for CPU-safe recipes and constructor choices.
- Troubleshooting for model downloads, text-to-text prefixes, tokenizer/from-scratch settings, and compatibility import issues.
Validation helper
python scripts/validate_generative_data.py --task lm-text --input train.txt
python scripts/validate_generative_data.py --task t5-csv --input t5.csv
python scripts/validate_generative_data.py --task seq2seq-csv --input pairs.csv
python scripts/validate_generative_data.py --task t5-predict-lines --input predict.txt
python scripts/validate_generative_data.py --task convai-json --input convai.json
The helper checks data shape only. It does not download models, train, generate, or open network connections.
Key decisions
- Language modeling: pretrained fine-tuning needs
model_name; training from scratch needsmodel_name=None,train_files, andvocab_size/tokenizer settings. - T5: training/eval DataFrames use
prefix,input_text,target_text; prediction strings must already include"prefix: ". - Seq2Seq: either pass
encoder_decoder_type/encoder_decoder_namefor unified models like BART, or pass separateencoder_type,encoder_name, anddecoder_name. - Generation: keep
max_length,max_new_tokens,do_sample,top_k,top_p,temperature, andnum_return_sequencesexplicit. - ConvAI: expect additional compatibility and data-shape risk because upstream utility imports use old Transformers cache helpers.
Verification status
Constructor signatures were inspected for Simple Transformers 0.70.8. Native LM/Seq2Seq/T5 examples train or download models and are skipped by default; use validators and small cached-model smoke tests unless the user approves larger runs.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.