计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
attention-is-all-you-need-pytorch【效率与协作】Use jadore801120 attention-is-all-you-need-pytorch for Transformer architecture inspection, preprocessing, training, and checkpoint translation workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves the PyTorch implementation of the
Transformer paper in jadore801120/attention-is-all-you-need-pytorch: model
internals, German-English preprocessing, training commands, or checkpoint
translation. The repository is script/source based rather than a packaged Python
distribution, so future users normally work from a checkout that contains
transformer/, preprocess.py, train.py, and translate.py.
Use a legacy-compatible Python environment with PyTorch, legacy torchtext APIs,
spaCy, dill, tqdm, and NumPy. The source expects torchtext.data.Field; modern
torchtext releases that removed this API will not work unchanged.
Minimal import check from a user's checkout:
python - <<'PY'
from transformer.Models import Transformer
from transformer.Translator import Translator
print(Transformer)
print(Translator)
PY
Run the bundled environment checker when diagnosing an existing checkout:
python scripts/check_environment.py --repo-root /path/to/attention-is-all-you-need-pytorch --device cpu
Transformer, masks, positional encoding, attention layers,
feed-forward blocks, weight sharing, tensor shapes, and ScheduledOptim.train.py
commands, hyperparameters, scheduler/loss behavior, logs, checkpoints,
TensorBoard, CPU/CUDA selection, and safe training preflights.translate.py, run checkpoint translation, or use
transformer.Translator beam search programmatically..chkpt file, route to translation for checkpoint
inspection unless they are asking how the checkpoint was produced.translate.py leaves BPE decoding as TODO.-log flag, prefer the
inspected train.py parser over the README example for this commit.