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
model-apiUse XLNet TensorFlow graph APIs, config objects, tokenization helpers, checkpoints, losses, optimizers, and runtime helpers directly.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill for direct XLNet model work: graph construction, config inspection, tokenization, checkpoint initialization, optimizer setup, and diagnosis of API/runtime failures.
XLNetConfig, RunConfig, and XLNetModel.get_pooled_out() or get_sequence_output().modeling.transformer_xl, modeling.lm_loss, or modeling.summarize_sequence for custom graph work.function_builder losses for classification, regression, SQuAD-style QA, or RACE-style multiple choice.prepro_utils.scripts/inspect_xlnet_config.py <xlnet_config.json> first. The config must define n_layer, d_model, n_head, d_head, d_inner, ff_activation, untie_r, and n_token.XLNetConfig and RunConfig from the JSON or flags. Keep input_ids, seg_ids, and input_mask in [len, bsz] order when calling XLNetModel.get_pooled_out() for a single vector per example.get_sequence_output() for token-level or span-level heads.get_new_memory() when you need streaming memory.get_embedding_table() when you need tied embeddings or LM projection.get_initializer() and then apply classification_loss, regression_loss, get_qa_outputs, get_race_loss, or lm_loss as appropriate.model_utils.init_from_checkpoint() before the first session run and model_utils.get_train_op() after the loss is defined. Use gpu_utils only when you need manual tower placement or gradient averaging.prepro_utils.preprocess_text() before encode_pieces() or encode_ids(), and make sure the SentencePiece model from the release zip is available.references/api-reference.mdreferences/checkpoints-and-runtime.mdreferences/troubleshooting.mdscripts/inspect_xlnet_config.py