Min-p Sampling with Temperature
Repetition, Frequency and Presence Logit Penalties
Temperature, Top-k and Top-p Sampling
Beam Search with Length Normalization
Trie-Based Constrained Decoding Logits Processor
WordPiece Greedy Longest-Match Tokenizer
Minimal BPE Tokenizer From Scratch
Viterbi Segmentation for Unigram LM Tokenizer
Training Objectives Architecture
Masked Cross-Entropy Loss and Perplexity
Sparse Top-k MoE Router with Load Balancing
Sliding-Window Perplexity Over Long Documents
Self-Consistency Answer Aggregation
N Gram Models Scaling Laws
Trigram Language Model with Laplace Smoothing
Chinchilla Compute-Optimal and Over-Trained Model Sizing