技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
textgenrnn【数据与研究】Routes agents through textgenrnn generation, training, and embedding-analysis workflows for pretrained samples, custom text generation, fine-tuning, context labels, and similarity checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for the textgenrnn Python package itself. It is a small Keras/TensorFlow text-generation library centered on one public class, textgenrnn, plus a few helper functions in textgenrnn.utils.
If the request is about a different TensorFlow project, a transformer LLM stack, or generic Keras internals, route elsewhere. If the request is about this package, use the route map below.
references/repo-provenance.md when you need to check whether this skill still matches the repository checkout.numpy 1.26.4, scikit-learn, h5py, tqdm, and a setuptools version that still exposes pkg_resources.pip install textgenrnn for the published distribution, or validate a local checkout with an editable install inside a compatible environment.python -c "from textgenrnn import textgenrnn; print(textgenrnn.__name__)"
scripts/check_textgenrnn_env.py first.Use this route for pretrained generation, custom weight loading, temperature/prefix control, interactive next-token selection, writing generated text to files, saving/loading weights, and model synthesis across multiple textgenrnn instances.
Use this route for train_on_texts, train_new_model, train_from_file, train_from_largetext_file, context labels, word-level training, scratch-model creation, and tiny smoke-training checks.
Use this route for encode_text_vectors, PCA/t-SNE coordinates, and similarity ranking tasks.
references/installation-and-compatibility.md explains the verified install stack and the TensorFlow/Keras/setuptools compatibility boundary.references/model-overview.md summarizes the architecture, default config, model artifacts, and raw vector shape.references/troubleshooting.md covers cross-cutting import, model-load, output-file, and backend warnings.scripts/check_textgenrnn_env.py is a safe environment diagnostic and optional short generation smoke.generation when the user wants to load a model, complete a prompt, generate samples, or save generated text.training when the user wants to feed new data, fine-tune, train from a file, or create a scratch model.embedding-analysis when the user wants vectors, similarity scores, or visualization coordinates.from textgenrnn import textgenrnn2.0.0textgenrnn_weights.hdf5 and textgenrnn_vocab.json files inside the package.Use scripts/check_textgenrnn_env.py when the user asks whether the installed package can import, whether the environment exposes the expected TensorFlow backend, or whether a quick generation smoke works before moving on to the route-specific sub-skill.