Skip to content
Back to skills

Attention Is All You Need Pytorch

ASecurity

"Use jadore801120 attention-is-all-you-need-pytorch for Transformer

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill attention-is-all-you-need-pytorch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Attention Is All You Need Pytorch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Attention Is All You Need Pytorch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-attention-is-all-you-need-pytorch/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-attention-is-all-you-need-pytorch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: attention-is-all-you-need-pytorch
description: "Use jadore801120 attention-is-all-you-need-pytorch for Transformer
  architecture inspection, preprocessing, training, and checkpoint translation
  workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# 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:

```bash
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:

```bash
python scripts/check_environment.py --repo-root /path/to/attention-is-all-you-need-pytorch --device cpu
```

## Route Map

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

## Repo-Level References

- Read [references/package-overview.md](references/package-overview.md) for the
  source layout, dependency expectations, workflow map, and known caveats.
- Read [references/troubleshooting.md](references/troubleshooting.md) for
  cross-cutting install/import, torchtext, spaCy, CUDA, pickle, and stale README
  issues.
- Read [references/repo-provenance.md](references/repo-provenance.md) before
  deciding whether this skill is current for a checkout or should be refreshed.

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

Files in this skill

  • SKILL.md3.5 KB
  • references/package-overview.md3 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json587 B
  • references/troubleshooting.md2 KB
  • scripts/check_environment.py3.6 KB
  • sub-skills/data-preparation/SKILL.md3.5 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/model-architecture/SKILL.md3.8 KB
  • sub-skills/model-architecture/references/api-reference.md8.8 KB
  • sub-skills/model-architecture/references/architecture-notes.md8 KB
  • sub-skills/model-architecture/references/troubleshooting.md8.7 KB
  • sub-skills/model-architecture/scripts/architecture_smoke_check.py11.5 KB
  • sub-skills/training/SKILL.md3.2 KB
  • sub-skills/training/references/cli-reference.md5.7 KB
  • sub-skills/training/references/troubleshooting.md6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.