跳到正文
cccskills
免费在 GitHub 公开

bert-pytorch

Use BERT-pytorch for corpus preparation, vocabulary building, and tiny BERT pretraining workflows.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(16)

  • SKILL.md2.8 KB
  • references/api-reference.md3.4 KB
  • references/cli-reference.md3.7 KB
  • references/repo-provenance.md1.1 KB
  • references/repo-routing-metadata.json433 B
  • references/troubleshooting.md3.5 KB
  • scripts/check_install.py4.3 KB
  • scripts/make_tiny_corpus.py1.2 KB
  • sub-skills/data-preparation/references/corpus-format.md2.2 KB
  • sub-skills/data-preparation/references/troubleshooting.md1.9 KB
  • sub-skills/data-preparation/scripts/build_vocab_smoke.py3.0 KB
  • sub-skills/data-preparation/SKILL.md2.2 KB
  • sub-skills/training/references/training-workflow.md1.9 KB
  • sub-skills/training/references/troubleshooting.md2.4 KB
  • sub-skills/training/scripts/train_smoke.py6.8 KB
  • sub-skills/training/SKILL.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

bert-pytorch

Use this skill when the user mentions BERT-pytorch, bert, bert-vocab, WordVocab, BERTDataset, BERT, BERTLM, or BERTTrainer.

Quick start

  1. Install the package with python -m pip install bert-pytorch if it is not already available in your Python environment.
  2. Run python scripts/check_install.py to confirm the package import, public exports, and console commands.
  3. If the task is about corpus layout, vocabulary files, or dataset rows, go to sub-skills/data-preparation/SKILL.md.
  4. If the task is about model construction, training, device choice, or checkpoints, go to sub-skills/training/SKILL.md.
  5. Use python scripts/make_tiny_corpus.py --output /tmp/bert-pytorch-corpus.txt when you need a stable two-line fixture.

Route map

  • 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.

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-vocab and bert are the documented console commands.
  • BERT hidden size must be divisible by the number of attention heads.
  • The 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.

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.md before guessing about missing files, malformed rows, or device failures.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题