计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
bert-pytorch【效率与协作】Use BERT-pytorch for corpus preparation, vocabulary building, and tiny BERT pretraining workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the user mentions BERT-pytorch, bert, bert-vocab, WordVocab, BERTDataset, BERT, BERTLM, or BERTTrainer.
python -m pip install bert-pytorch if it is not already available in your Python environment.python scripts/check_install.py to confirm the package import, public exports, and console commands.sub-skills/data-preparation/SKILL.md.sub-skills/training/SKILL.md.python scripts/make_tiny_corpus.py --output /tmp/bert-pytorch-corpus.txt when you need a stable two-line fixture.sub-skills/data-preparation/SKILL.md: build or load vocabularies, validate corpus format, inspect BERTDataset, and diagnose pickle or row-format problems.sub-skills/training/SKILL.md: instantiate BERT, BERTLM, and BERTTrainer; train on a tiny corpus/vocab pair; pick CPU or CUDA; and save checkpoints.bert-vocab and bert are the documented console commands.BERT hidden size must be divisible by the number of attention heads.bert CLI parses some boolean flags with type=bool; use the bundled smoke scripts or the Python API when you need an explicit CPU run or streaming mode.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.scripts/check_install.py: verify imports, API exports, and CLI help.scripts/make_tiny_corpus.py: create a deterministic two-line corpus fixture.references/troubleshooting.md before guessing about missing files, malformed rows, or device failures.