arXiv:2612.01682v1 cs.CL

A Hands-On Introduction to Modern Decoder-Only Transformers

Yang He

제출 2026-12-02

원문 초록

We follow one message through a modern decoder-only Transformer, from byte-level subword tokenization to autoregressive generation and next-token training. Equations and tensor shapes connect learned embeddings, causal self-attention with pre-normalization and rotary position embeddings (RoPE), SwiGLU feed-forward networks, and a tied vocabulary head to a single-file PyTorch implementation. The 370,848-parameter model can be trained on a CPU. Tests check individual operations, and a small synthetic corpus exercises the full training-to-generation path. We compare the miniature model with documented architectures and explain how caching, batching, and attention kernels affect computation and memory.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2612.01682v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.