Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
-
Updated
May 23, 2026 - Jupyter Notebook
A grammar describes the syntax of a programming language, and might be defined in Backus-Naur form (BNF). A lexer performs lexical analysis, turning text into tokens. A parser takes tokens and builds a data structure like an abstract syntax tree (AST). The parser is concerned with context: does the sequence of tokens fit the grammar? A compiler is a combined lexer and parser, built for a specific grammar.
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Parser Building Toolkit for JavaScript
Persian NLP Toolkit
Solves basic Russian NLP tasks, API for lower level Natasha projects
A micro-library of stream components for building custom JSON and JSONC processing pipelines with a minimal memory footprint — parse, filter, and transform JSON far larger than available memory with a SAX-inspired token API, on Node.js or Web Streams.
한국어 자연어처리를 위한 파이썬 라이브러리입니다. 단어 추출/ 토크나이저 / 품사판별/ 전처리의 기능을 제공합니다.
Self-contained Japanese Morphological Analyzer written in pure Go
Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.
An Integrated Corpus Tool With Multilingual Support for the Study of Language, Literature, and Translation
数据标注是一款专门对文本数据进行处理和标注的工具,通过简化快捷的文本标注流程和动态的算法反馈,支持用户快速标注关键词并能通过算法持续减少人工标注的成本和时间。数据标注的过程先由人工标注构建基础,再由自动标注反哺人工标注,最后由人工标注进行纠偏,从而大幅度提高标注的精准度和高效性。数据标注需要依赖开源的数字底座进行人员岗位管控。
🌭 Mustard is a Swift library for tokenizing strings when splitting by whitespace doesn't cut it.
Ekphrasis is a text processing tool, geared towards text from social networks, such as Twitter or Facebook. Ekphrasis performs tokenization, word normalization, word segmentation (for splitting hashtags) and spell correction, using word statistics from 2 big corpora (english Wikipedia, twitter - 330mil english tweets).
Open Korean Text Processor - An Open-source Korean Text Processor
The fast scanner generator for Java™ with full Unicode support
A multilingual morphological analysis library.
Achieve the llama3 inference step-by-step, grasp the core concepts, master the process derivation, implement the code.