计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
training【效率与协作】Routes textgenrnn training, train_on_texts, train_new_model, train_from_file, and train_from_largetext_file workflows for fine-tuning, context labels, word-level inputs, and scratch architectures.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to train, fine-tune, resume, or debug a textgenrnn model.
It covers in-memory text lists, newline-delimited files, CSV-backed datasets, context labels, word-level inputs,
and single large text blocks.
textgenrnn model on a small or medium text corpus.word_level, rnn_layers, rnn_size, rnn_bidirectional,
max_length, max_words, and dim_embeddings settings.train_size, validation, dropout, save_epochs, and optional multi_gpu acceleration.../generation/SKILL.md.../embedding-analysis/SKILL.md.../../references/installation-and-compatibility.md first.references/api-reference.md for the verified training signatures, defaults, and artifact names.references/data-formats.md for newline files, one-column CSV, two-column context CSV, single-large-text, and word-level data choices.references/workflows.md for common training and fine-tuning recipes.references/troubleshooting.md for batch-size, CSV, context, overfitting, and save-path failures.../../references/model-overview.md for architecture and config background.../../references/installation-and-compatibility.md when imports or backend setup fail.scripts/smoke_train_tiny.py — creates a temporary tiny fixture, trains a scratch model for one epoch,
and asserts that the config, vocab, and weights files were written.train_on_texts to continue from the current model.train_new_model when you want a fresh vocabulary, a fresh config, or a word-level model.train_from_file for newline files, CSV files, or context-labeled CSV files.train_from_largetext_file when the source file is one large document.context_labels=[...] with the same length as texts for in-memory contextual training.context=True for a two-column CSV where column 1 is text and column 2 is label.train_size < 1.0 to hold out validation sequences.validation=True if you want validation loss.dropout sparingly; high values can hurt convergence.gen_epochs=0 and validation=False for smoke tests and artifact checks.num_epochs, train_size, or corpus size when you want real quality.train_from_file(..., header=True, delim="\n", is_csv=False) skips the first row by default.is_csv=True for a one-column CSV that stores texts in the first column.context=True for a two-column CSV with text in the first column and the context label in the second.train_from_largetext_file reads the entire file into a single-element text list and sets single_text=True.max_length values usually work better than the default character-level setting.name_config.json, name_vocab.json, and name_weights.hdf5.save_epochs > 0, intermediate snapshots are written as name_weights_epoch_<epoch>.hdf5.save() writes only the current weights file; it does not rewrite the config or vocab files.load() expects a matching weights file for the current config and vocabulary shape.