executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
xlnetOperate the legacy TensorFlow 1.x XLNet repository for model APIs, classification, SQuAD, RACE, and pretraining workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a Researcher task involves the original zihangdai/xlnet TensorFlow 1.x repository: released XLNet checkpoints, xlnet_config.json, spiece.model, source-script fine-tuning, SQuAD/RACE workflows, pretraining data, or direct XLNet graph APIs.
transformers.XLNet* APIs.xlnet_config.json, spiece.model, and, for training, the TensorFlow checkpoint prefix.scripts/check_xlnet_environment.py --help when you need a safe import/config diagnostic. It does not download data, open checkpoints, or launch training.tf.contrib APIs used by the repository.sentencepiece, numpy, and task-specific metric packages such as scipy/scikit-learn for RACE metrics.xlnet, modeling, run_classifier, run_squad, and run_race are importable.Minimal diagnostic from a runtime where XLNet source is importable:
python scripts/check_xlnet_environment.py --repo-root /path/to/xlnet --config /path/to/xlnet_config.json
If no checkout path is needed because the modules are already importable, omit --repo-root.
| User task | Read next | Why |
|---|---|---|
Use XLNetConfig, RunConfig, XLNetModel, tokenizer helpers, losses, checkpoint loading, or custom TensorFlow graph code. | sub-skills/model-api/SKILL.md | Covers verified signatures, tensor shapes, config validation, and runtime helpers. |
Fine-tune/evaluate/predict GLUE MNLI, STS-B, IMDB, Yelp-5, or processor-backed classification/regression through run_classifier.py. | sub-skills/classification/SKILL.md | Covers task names, data layouts, train/eval/predict flags, and command generation. |
| Preprocess or fine-tune SQuAD 1.1/2.0, generate predictions, decode n-best answers, or handle no-answer thresholds. | sub-skills/squad-qa/SKILL.md | Covers SQuAD JSON, feature caches, GPU/TPU recipes, prediction outputs, and threshold metrics. |
| Run RACE multiple-choice reading-comprehension training/evaluation or adapt TPU RACE recipes. | sub-skills/race-reading-comprehension/SKILL.md | Covers RACE directory layout, high/middle filtering, four-candidate batching, and TPU command templates. |
Prepare raw text or token-id corpora for pretraining, generate TFRecords, or build train_gpu.py/train.py pretraining commands. | sub-skills/data-pretraining/SKILL.md | Covers corpus format, SentencePiece assumptions, record_info files, and pretraining command builders. |
data_dir, output_dir, model_dir, predict_dir, and init_checkpoint conceptually separate.output_dir as a cache. Use a new cache or overwrite flag when sequence length, task data, tokenizer, or split changes.num_core_per_host means number of GPUs and train_batch_size is per GPU.