bert-pytorch
SkillDev tools"Use BERT-pytorch for corpus preparation, vocabulary building, and
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the bert-pytorch skill
What this skill tells your AI
The instructions your AI receives, as published by vectorspacelab/arex-skill in skills/repositories/repo-skills/bert-pytorch/SKILL.md and read by ahel’s review.
Use this skill when the user mentions BERT-pytorch, bert, bert-vocab, WordVocab, BERTDataset, BERT, BERTLM, or BERTTrainer.
Quick start
- Install the package with
python -m pip install bert-pytorchif it is not already available in your Python environment. - Run
python scripts/check_install.pyto confirm the package import, public exports, and console commands. - If the task is about corpus layout, vocabulary files, or dataset rows, go to
sub-skills/data-preparation/SKILL.md. - If the task is about model construction, training, device choice, or checkpoints, go to
sub-skills/training/SKILL.md. - Use
python scripts/make_tiny_corpus.py --output /tmp/bert-pytorch-corpus.txtwhen you need a stable two-line fixture.
Route map
sub-skills/data-preparation/SKILL.md: build or load vocabularies, validate corpus format, inspectBERTDataset, and diagnose pickle or row-format problems.sub-skills/training/SKILL.md: instantiateBERT,BERTLM, andBERTTrainer; train on a tiny corpus/vocab pair; pick CPU or CUDA; and save checkpoints.
Shared facts
- The corpus format is two sentences per line separated by a tab.
- Tokenization happens before the package; BERT-pytorch does not tokenize raw text for you.
bert-vocabandbertare the documented console commands.BERThidden size must be divisible by the number of attention heads.- The
bertCLI parses some boolean flags withtype=bool; use the bundled smoke scripts or the Python API when you need an explicit CPU run or streaming mode.
Shared references
references/repo-provenance.md: source commit, package version, and evidence snapshot.references/repo-routing-metadata.json: router metadata for managed import.references/api-reference.md: public classes, functions, and object relationships.references/cli-reference.md: command names, flags, defaults, and safety notes.references/troubleshooting.md: cross-cutting install, import, CLI, corpus, and device issues.
Shared scripts
scripts/check_install.py: verify imports, API exports, and CLI help.scripts/make_tiny_corpus.py: create a deterministic two-line corpus fixture.
When in doubt
- Start with the sub-skill that matches the first concrete noun in the request: corpus/vocab/data rows -> data preparation; model/training/checkpoint/device -> training.
- If the task mixes both, build the vocabulary first, then move to training.
- Read
references/troubleshooting.mdbefore guessing about missing files, malformed rows, or device failures.
Signals
- GitHub stars
- 266
- Forks
- 21
- Last commit
- Sep 2026
ahel review
K1binfo
installs-packagesK6low
bundled executables the agent is told to run
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Catalog kind
- skill
- Gateway key
bert-pytorch- Source
- github.com/vectorspacelab/arex-skill