potentialpaper

OpenArch: A Unified PyTorch Framework for Implementing Modern Open-Source LLM Architectures

Anonymous authors

ICLR 2027

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We introduce OpenArch, a readable PyTorch framework for reconstructing and comparing modern LLM architectures, with a unified taxonomy and validation protocol spanning attention, MoE, normalization, positional encoding and training objectives.

Abstract. Large Language Models (LLMs) have emerged as foundational systems for natural language understanding and generation tasks. While production-scale implementations of modern LLM architectures are often optimized for speed and scalability, they present significant barriers to learning and reproducibility. This paper introduces OpenArch, an open-source PyTorch framework providing clean, educational implementations of 20+ modern LLM architectures. Our implementations span diverse architectural innovations including Grouped Query Attention (GQA), Mixture-of-Experts (MoE) routing, Rotary Position Embeddings (RoPE) and advanced normalization techniques (QK-Norm, RMSNorm). Each model is implemented as a single readable file with explicit design choices and comprehensive documentation, facilitating learning, comparison and rapid prototyping. We provide detailed architectural analyses, reference comparisons against official implementations and empirical validation across 15+ distinct model families ranging from GPT-2 to Kimi K2 (1T tokens). OpenArch serves as both an educational resource for practitioners entering LLM systems research and a reproducible reference implementation for architecture ablation studies. The codebase achieves functional parity with reference implementations while prioritizing readability over performance optimization. We discuss implementation patterns, common pitfalls in architecture replication and recommendations for practitioners implementing novel LLM architectures.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
15 Sep 2026ICLR 2027submittedICLR 2027Desk rejectedreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Desk rejected · OpenReview

Updated 24 Nov 2026, 16:48 UTC.

The venue hasn't published any reviews yet.

Missing a submission?

Loading the discussion…