Skip to content
cccskills
FreePublished on GitHub

attention-is-all-you-need-pytorch

Use jadore801120 attention-is-all-you-need-pytorch for Transformer architecture inspection, preprocessing, training, and checkpoint translation workflows.

The English summary is being prepared. Showing the original description.

See how to install

Files included (29)

  • SKILL.md3.5 KB
  • references/package-overview.md3.0 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json587 B
  • references/troubleshooting.md2.0 KB
  • scripts/check_environment.py3.6 KB
  • sub-skills/data-preparation/references/data-formats.md5.3 KB
  • sub-skills/data-preparation/references/troubleshooting.md7.4 KB
  • sub-skills/data-preparation/references/workflows.md7.6 KB
  • sub-skills/data-preparation/scripts/bpe_tiny_demo.py7.6 KB
  • sub-skills/data-preparation/scripts/inspect_preprocessed_pickle.py15.3 KB
  • sub-skills/data-preparation/SKILL.md3.5 KB
  • sub-skills/model-architecture/references/api-reference.md8.8 KB
  • sub-skills/model-architecture/references/architecture-notes.md8.0 KB
  • sub-skills/model-architecture/references/troubleshooting.md8.7 KB
  • sub-skills/model-architecture/scripts/architecture_smoke_check.py11.5 KB
  • sub-skills/model-architecture/SKILL.md3.8 KB
  • sub-skills/training/references/cli-reference.md5.7 KB
  • sub-skills/training/references/troubleshooting.md6.0 KB
  • sub-skills/training/references/workflows.md7.6 KB
  • sub-skills/training/scripts/build_training_command.py12.0 KB
  • sub-skills/training/scripts/training_smoke_check.py7.8 KB
  • sub-skills/training/SKILL.md3.2 KB
  • sub-skills/translation/references/api-reference.md4.5 KB
  • sub-skills/translation/references/cli-reference.md5.4 KB
  • sub-skills/translation/references/troubleshooting.md4.0 KB
  • sub-skills/translation/scripts/inspect_checkpoint.py15.9 KB
  • sub-skills/translation/scripts/translation_smoke_check.py6.5 KB
  • sub-skills/translation/SKILL.md3.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

attention-is-all-you-need-pytorch

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.

Quick Setup And Smoke Check

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

Route Map

  • model-architecture: instantiate or debug Transformer, masks, positional encoding, attention layers, feed-forward blocks, weight sharing, tensor shapes, and ScheduledOptim.
  • data-preparation: prepare or inspect Multi30k/spaCy and WMT+BPE data artifacts, pickle schemas, torchtext Fields, vocabularies, and BPE helper behavior.
  • training: build and troubleshoot train.py commands, hyperparameters, scheduler/loss behavior, logs, checkpoints, TensorBoard, CPU/CUDA selection, and safe training preflights.
  • translation: validate checkpoints and data pickles for translate.py, run checkpoint translation, or use transformer.Translator beam search programmatically.

Repo-Level References

Decision Hints

  • If the user asks about tensor dimensions, masks, weight sharing, or custom model construction, route to model-architecture before training or translation.
  • If the user asks why training cannot read a pickle, route to data-preparation first, then training after the schema is identified.
  • If the user asks about a .chkpt file, route to translation for checkpoint inspection unless they are asking how the checkpoint was produced.
  • If the prompt mentions BPE, keep the repository caveat visible: BPE is marked not fully tested and translate.py leaves BPE decoding as TODO.
  • If a README command fails with an unrecognized -log flag, prefer the inspected train.py parser over the README example for this commit.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill341Updated Sep 3, 2026

3ddfa

Free

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

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill341Updated Sep 3, 2026

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

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill341Updated Sep 3, 2026

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

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill341Updated Sep 3, 2026

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.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill341Updated Sep 3, 2026

acme

Free

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

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill341Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill