Skip to content
Back to skills

Data Pretraining

ASecurity

Prepare XLNet pretraining corpora, TFRecords, and GPU/TPU command plans.

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 9, 2026
toolsapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-pretraining --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Pretraining?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Pretraining
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-pretraining/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-pretraining)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-pretraining
description: "Prepare XLNet pretraining corpora, TFRecords, and GPU/TPU command plans."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# data-pretraining

Use this sub-skill when you need to prepare XLNet pretraining data or commands:

- validate raw text or pre-tokenized integer-id corpora
- convert raw corpora into XLNet pretraining TFRecords
- build GPU or TPU pretraining command lines safely
- reason about `corpus_info.json`, `tfrecords/record_info*.json`, and filename matching

Route elsewhere when the request is about:

- downstream fine-tuning for classification, SQuAD QA, or RACE reading comprehension
- custom XLNet graph or model API details

Core contract:

- Raw text uses one sentence per line.
- An empty line marks a document boundary.
- Optional `<eop>` can appear at the end of a sentence line to mark a paragraph break.
- Pre-tokenized input uses whitespace-separated integer ids per line via `--from_raw_text=False`.
- SentencePiece is still required for preprocessing in both modes.
- Preprocessing emits `corpus_info.json` and `tfrecords/record_info*.json` alongside `.tfrecords` shards.
- Keep `task`, `num_task`, `pass_id`, `seq_len`, `reuse_len`, `bi_data`, `mask_alpha`, `mask_beta`, and `num_predict` aligned across preprocessing and training.
- TPU training is legacy TensorFlow 1.x / `tf.contrib` based and may not import in CPU-only environments.

Start here:

- [Workflow guide](references/workflows.md)
- [Data formats](references/data-formats.md)
- [CLI reference](references/cli-reference.md)
- [Troubleshooting](references/troubleshooting.md)
- [Pretraining command builder](scripts/build_pretraining_command.py)
- [Text validator](scripts/validate_pretraining_text.py)

Files in this skill

  • SKILL.md1.7 KB
  • references/cli-reference.md5.7 KB
  • references/data-formats.md3 KB
  • references/troubleshooting.md3.4 KB
  • references/workflows.md3.7 KB
  • scripts/build_pretraining_command.py23.8 KB
  • scripts/validate_pretraining_text.py6.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.