# Rotary positional embeddings

> AI-ranked search results for `rotary positional embeddings` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 119 total matches; showing the top 11.

Explore on the web: https://awesome-repositories.com/q/rotary-positional-embeddings

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/rotary-positional-embeddings).**

## Results

- [naklecha/llama3-from-scratch](https://awesome-repositories.com/repository/naklecha-llama3-from-scratch.md) (15,230 ⭐) — This project is a manual reconstruction of the Llama 3 transformer architecture implemented as a PyTorch neural network. It serves as a reference for the internal mathematical structure and tensor flow of a transformer-based language model designed for next token prediction.

The implementation focuses on building the model from scratch using basic matrix operations and tensor manipulations. It demonstrates the manual construction of core components, including rotary positional embeddings, multi-head self-attention, and root mean square normalization.

The codebase covers the full inference pi
- [skyzh/tiny-llm](https://awesome-repositories.com/repository/skyzh-tiny-llm.md) (4,304 ⭐) — tiny-llm is a large language model inference engine and transformer model implementation. It serves as a quantized model runtime and paged key-value cache manager, providing a specialized inference stack optimized for Apple Silicon.

The system distinguishes itself through high-throughput execution techniques, including continuous batching and paged attention. It utilizes a paged memory system to eliminate fragmentation during token generation and employs on-the-fly dequantization of compressed weights to reduce the memory footprint during matrix multiplication.

The project covers a broad ran
- [lucidrains/x-transformers](https://awesome-repositories.com/repository/lucidrains-x-transformers.md) (5,912 ⭐) — x-transformers is a PyTorch library and research toolkit for building transformer architectures. It provides a modular framework for implementing experimental transformer research, including a suite of advanced attention mechanisms, long-sequence modeling tools, and a framework for vision transformers.

The project is distinguished by its focus on memory-efficient and high-performance components, such as Flash Attention with tiled kernels and multi-query attention. It also implements specialized methods for extending context windows, including sequence recurrence and rotary positional embeddin
- [pageman/sutskever-30-implementations](https://awesome-repositories.com/repository/pageman-sutskever-30-implementations.md) (3,148 ⭐) — This project is a collection of deep learning research implementations and a reproduction kit designed to translate theoretical AI papers into working code. It provides a library of neural network architectures and reference implementations for reproducing seminal research concepts through interactive notebooks.

The repository distinguishes itself through the implementation of AI theory and scaling laws, covering complexity dynamics, information theory, and the simulation of universal AI agents. It also includes a benchmarking suite for synthetic reasoning, allowing for the evaluation of mode
- [jingyaogong/minimind](https://awesome-repositories.com/repository/jingyaogong-minimind.md) (51,834 ⭐) — This project is a comprehensive framework for the entire lifecycle of transformer-based language models, supporting everything from foundational pretraining to specialized deployment. It provides a modular toolkit for defining neural network architectures, managing data preparation pipelines, and executing training routines across various scales. The framework is designed to handle the full model development process, including supervised fine-tuning, behavioral alignment, and the integration of agentic capabilities.

What distinguishes this framework is its focus on efficient training and adva
- [hyunwoongko/transformer](https://awesome-repositories.com/repository/hyunwoongko-transformer.md) (4,601 ⭐) — This project is a PyTorch implementation of an attention-based neural network designed for sequence-to-sequence deep learning tasks. It serves as a library for constructing deep learning sequence models that utilize encoder and decoder structures to process natural language and sequential data.

The implementation centers on a multi-head attention mechanism to capture diverse relationships between tokens without using recurrence. It includes sinusoidal positional encoding to maintain sequence order and point-wise feed-forward networks to transform token positions independently.

The architectu
- [kellerjordan/modded-nanogpt](https://awesome-repositories.com/repository/kellerjordan-modded-nanogpt.md) (5,436 ⭐) — This is a PyTorch deep learning implementation for training transformer-based language models. It functions as a distributed GPU trainer and framework designed to optimize text prediction models for increased speed and sample efficiency.

The project is distinguished by its use of the Newton-Schulz weight optimizer. This method applies an iterative process to maintain semi-orthogonal parameter updates and weight matrices, which improves sample efficiency and reduces memory overhead during the training process.

The framework covers broad capabilities in distributed GPU computing, including dat
- [wzmiaomiao/deep-learning-for-image-processing](https://awesome-repositories.com/repository/wzmiaomiao-deep-learning-for-image-processing.md) (26,281 ⭐) — This project is a PyTorch-based computer vision library and deep learning image processing framework. It provides a collection of neural network architectures designed for visual analysis tasks, specifically focusing on image classification, object detection, and semantic segmentation.

The toolset implements diverse methodologies for visual recognition, including anchor-free object detection, regional proposal networks, and heatmap-based keypoint estimation. It utilizes both convolutional neural networks for spatial feature extraction and transformer-based self-attention mechanisms to compute
- [skindhu/build-a-large-language-model-cn](https://awesome-repositories.com/repository/skindhu-build-a-large-language-model-cn.md) (3,242 ⭐) — This project is a generative AI educational resource and natural language processing course. It serves as a technical implementation guide for building, pre-training, and fine-tuning a large language model from scratch using PyTorch.

The curriculum provides a step-by-step tutorial on large language model development, focusing specifically on the design of transformer-based text generation models. It includes dedicated instruction on parameter-efficient fine-tuning to optimize training by updating only a small subset of model weights.

The material covers the end-to-end generative AI training
- [xlite-dev/leetcuda](https://awesome-repositories.com/repository/xlite-dev-leetcuda.md) (9,694 ⭐) — LeetCUDA is a collection of high-performance GPU kernel libraries focusing on memory optimization, activation functions, and attention mechanisms. It serves as a reference library for CUDA kernel implementations, ranging from basic element-wise operations to complex neural network components, and provides Python bindings to integrate these kernels into deep learning workflows.

The project is distinguished by its focus on low-level hardware optimizations. This includes the use of tensor cores for half-precision matrix multiplication, asynchronous data pipelining with double buffering, and shar
- [harvardnlp/annotated-transformer](https://awesome-repositories.com/repository/harvardnlp-annotated-transformer.md) (7,325 ⭐) — The Annotated Transformer is an educational resource that provides annotated code implementations of the Transformer architecture for sequence-to-sequence tasks, built with PyTorch. It serves as a learning tool for understanding attention mechanisms, multi-head parallel attention, and scaled dot-product attention through executable examples that walk through each component of the model.

The project covers the full Transformer pipeline, including stacked encoder-decoder layers with residual connections and layer normalization, sinusoidal positional encoding for order-aware representation, and
