Implement a Transformer architecture from scratch with multi-head attention and positional encoding.
Implement a complete Transformer model from scratch for [TASK: translation/classification/generation]. Specifications: - Framework: [PyTorch/TensorFlow] - Model size: [SMALL/BASE/LARGE] - Number of layers: [N_LAYERS] - Hidden dimension: [D_MODEL] - Number of attention heads: [N_HEADS] - Vocabulary size:…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[N_LAYERS][D_MODEL][N_HEADS]