Global

attention-mechanism
54 projects tagged “attention-mechanism” that gained the most stars yesterday
#360 · +113 · 1d ·GitHub

I implemented a transformer model from scratch using PyTorch, based on the paper Attention is All You Need. You can use my scripts to train your own billion or million parameter LLM using a single GPU.

Size
9.1 MB
Stars
12.3K
Updated
CommitOct 02
Age
1y
Commits · 90 Days
#422 · +95 · 1d ·GitHub

This repository contains the code for developing, pretraining, and finetuning a GPT-like LLM and is the official code repository for the book Build a Large Language Model (From Scratch).

Creator
rasbt
Size
16.7 MB
Stars
106.9K
Updated
CommitOct 02
Age
3y
Commits · 90 Days
#426 · +94 · 1d ·GitHub

A high-throughput and memory-efficient inference and serving engine for LLMs

Size
315.8 MB
Stars
94.1K
Age
3y
Commits · 90 Days

Implementing LLM architectures from scratch in PyTorch

Size
3.2 MB
Stars
1.1K
Updated
CommitOct 17
Age
1mo
Commits · 90 Days
#1111 · +30 · 1d ·GitHub

Build a modern LLM from scratch. Every line commented. Explained like we are five.

Size
0.3 MB
Stars
4.1K
Updated
CommitAug 30
Age
5mo
Commits · 90 Days
#1362 · +23 · 1d ·GitHub

> 第八章聚焦 GRPO、OPD、Search-R1 与 ReTool。更多 Agentic RL 算法、训练代码与实验实践,可以前往作者持续维护的另一个仓库 agentic-rl-lab;该仓库更新频率更高,会持续跟进新的算法与环境。

Size
52.1 MB
Stars
34.4K
Age
2y
Commits · 90 Days
#1605 · +19 · 1d ·GitHub

> Breakthrough inference speed for MiniMax H3 Reference-to-Video (Ref2VA / R2VA): Generate a full 5-second, 24 fps video conditioned on reference character images in 72s (warm) / 95s (first run) on a single consumer NVIDIA GeForce RTX 4090 (24GB).

Creator
Kablex
Size
4.1 MB
Stars
826
Updated
CommitOct 17
Age
1mo
Commits · 90 Days
#1843 · +15 · 1d ·GitHub

A course on neural networks that starts all the way at the basics. The course is a series of YouTube videos where we code and train neural networks together. The Jupyter notebooks we build in the videos are then captured here inside the lectures directory.

Creator
karpathy
Size
<0.1 MB
Stars
24.9K
Updated
CommitFeb 20
Age
4y
Commits · 90 Days
#1993 · +14 · 1d ·GitHub

分享AI Infra知识&代码练习:PyTorch、vLLM/SGLang、slime/vime框架入门⚡️、性能加速🚀、大模型基础🧠、AI软硬件🔧等

Creator
CalvinXKY
Size
186.8 MB
Stars
4.2K
Updated
CommitSep 20
Age
11mo
Commits · 90 Days
#2007 · +14 · 1d ·GitHub

OpenWAM is an open research stack for systematically developing World-Action Models (WAMs). It turns tightly coupled design choices into modular components and controlled experiments. It consists of:

Size
16.2 MB
Stars
1.1K
Updated
CommitOct 14
Age
1mo
Commits · 90 Days
#2180 · +12 · 1d ·GitHub

邱锡鹏《神经网络与深度学习》第二版与通识版:电子书、章节目录、学习资源与勘误。

Creator
nndl
Size
657 MB
Stars
19.5K
Age
10y
Commits · 90 Days
#2357 · +11 · 1d ·GitHub

RuVector provides High Performance, Real-Time decisions and agent memory , Self-Learning Ai, Vector GNN DB built in Rust.

Creator
ruvnet
Size
959.5 MB
Stars
4.6K
Age
11mo
Commits · 90 Days
#2804 · +8 · 1d ·GitHub

DeepGEMM is a unified, high-performance tensor core kernel library that brings together the key computation primitives of modern large language models — GEMMs (FP8, FP4, BF16), fused MoE with overlapped communication (Mega MoE), MQA scoring for the lightning indexer…

Size
2.4 MB
Stars
9K
Age
1y
Commits · 90 Days
#3027 · +7 · 1d ·GitHub

📍 Use GLM-5.3 & GLM-5.3-Flash API services on Z.ai API Platform.

Creator
zai-org
Size
11.2 MB
Stars
7.4K
Updated
CommitOct 15
Age
8mo
Commits · 90 Days
#3030 · +7 · 1d ·GitHub

Material for gpu-mode lectures

Creator
gpu-mode
Size
189.2 MB
Stars
6.9K
Updated
CommitSep 09
Age
2y
Commits · 90 Days
#3078 · +7 · 1d ·GitHub

Download everything (about 82 GB) into ckpts/ from Hugging Face using

Creator
OpenVDN
Size
117.2 MB
Stars
628
Updated
CommitOct 05
Age
1mo
Commits · 90 Days
#3447 · +5 · 1d ·GitHub

A PyTorch re-implementation of GPT, both training and inference. minGPT tries to be small, clean, interpretable and educational, as most of the currently available GPT model implementations can a bit sprawling. py).

Creator
karpathy
Size
1.5 MB
Stars
25K
Updated
CommitJan 08
Age
6y
Commits · 90 Days
#3640 · +5 · 1d ·GitHub

This is the official repository for Attention Residuals (AttnRes), a drop-in replacement for standard residual connections in Transformers that enables each layer to selectively aggregate earlier representations via learned, input-dependent attention over depth.

Creator
MoonshotAI
Size
1.7 MB
Stars
3.5K
Updated
CommitMar 17
Age
7mo
Commits · 90 Days

deep learning for image processing including classification and object-detection etc.

Creator
WZMIAOMIAO
Size
25 MB
Stars
26.4K
Updated
CommitJan 01
Age
6y
Commits · 90 Days
#3825 · +4 · 1d ·GitHub

3 快速搭建你的第一个系统,并进行迭代(Build your first system quickly, then iterate)

Creator
fengdu78
Size
571.5 MB
Stars
21.2K
Updated
CommitOct 05
Age
8y
Commits · 90 Days

Each implementation: - ✅ Uses only NumPy (no deep learning frameworks) for educational clarity - ✅ Includes synthetic/bootstrapped data for immediate execution - ✅ Provides extensive visualizations and explanations - ✅ Demonstrates core concepts from each paper - ✅ Runs in…

Creator
pageman
Size
2.3 MB
Stars
5.2K
Updated
CommitMar 15
Age
10mo
Commits · 90 Days
#4056 · +4 · 1d ·GitHub

An interactive coding platform, but for tensors. Self-hosted. Jupyter-based.

Creator
duoan
Size
0.6 MB
Stars
4.7K
Updated
CommitJul 31
Age
7mo
Commits · 90 Days
#4095 · +4 · 1d ·GitHub

0, running FP8 on the tensor cores. The intermediates match too, not just the final image: all 75 block boundaries, byte for byte.

Size
5.1 MB
Stars
941
Updated
CommitSep 21
Age
29d
Commits · 90 Days
#4231 · +3 · 1d ·GitHub

We've been very happy to see FlashAttention being widely adopted in such a short time after its release. This page contains a partial list of places where FlashAttention is being used.

Creator
Dao-AILab
Size
22.5 MB
Stars
25.2K
Age
4y
Commits · 90 Days
#4352 · +3 · 1d ·GitHub

A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.

Creator
kyegomez
Size
0.1 MB
Stars
14.9K
Updated
CommitMay 23
Age
6mo
Commits · 90 Days
#4410 · +3 · 1d ·GitHub

2-Exp models. This repository contains the following implementations:

Size
0.6 MB
Stars
13.1K
Updated
CommitOct 15
Age
1y
Commits · 90 Days
#4616 · +3 · 1d ·GitHub

Every clip was produced by the launchers in this repo, on the data bundled in examples/ — no external dataset, no cherry-picking across seeds. mp4.

Creator
AlayaLab
Size
132.7 MB
Stars
862
Updated
CommitSep 12
Age
2mo
Commits · 90 Days
#5262 · +2 · 1d ·GitHub

The Engram module augments the backbone by retrieving static $N$-gram memory and fusing it with dynamic hidden states. The architecture is shown below (drawio provided):

Size
2.2 MB
Stars
4.8K
Updated
CommitJan 14
Age
9mo
Commits · 90 Days
#5374 · +2 · 1d ·GitHub

8-Flash-Next is the foundation model developed by Qwen Team, Alibaba Group.

Creator
QwenLM
Size
2.2 MB
Stars
436
Updated
CommitAug 27
Age
1mo
Commits · 90 Days
#5392 · +2 · 1d ·GitHub

Note: This series will continue to grow as I write more blogs and create more videos on new topics. Keep learning.

Size
0.1 MB
Stars
374
Updated
CommitOct 05
Age
2mo
Commits · 90 Days