paper-with-me

홈 › Papers

MiniGPT: Rebuilding GPT from First Principles

2026-05-17 · Jibin Joseph arxiv

This paper presents MiniGPT, a compact from-scratch implementation of GPT-style autoregressive language modeling in PyTorch. The aim is to rebuild the core GPT pipeline from first principles after studying the design of nanoGPT by Andrej Karpathy, while keeping the model and training code independently written in a single notebook. MiniGPT implements token and positional embeddings, causal multi-head self-attention, pre-LayerNorm Transformer blocks, residual connections, feed-forward MLP layers, next-token cross-entropy training (teacher forcing), validation tracking, checkpoint selection, and autoregressive text generation. This paper evaluates the implementation on Tiny Shakespeare dataset using character-level tokenization. A baseline 0.83M-parameter model reaches a validation loss of 1.7236 after 3000 training iterations. A stronger 10.77M-parameter configuration, using a larger context length and improved training settings, reaches a best validation loss of 1.4780 and generates text with recognizable Shakespeare-style dialogue structure. MiniGPT does not introduce a new language-model architecture. Instead, it documents a clear and reproducible implementation path from raw text to trained character-level generation, including design choices, training behavior, generation quality, and practical limitations.

📄 PDF Abstract BibTeX arXiv:2605.17398

Code (0)

등록된 구현이 없습니다.

Tasks

Text Generation

Similar Papers 제목 키워드 기반

MiniGPT-3D: Efficiently Aligning 3D Point Clouds with Large Language Models using 2D Priors

2024-05-02 · Yuan Tang, Xu Han, Xianzhi Li, Qiao Yu 외

Large 2D vision-language models (2D-LLMs) have gained significant attention by bridging Large Language Models (LLMs) with images using a simple projector. Inspired by their success, large 3D point cloud-language models (…

3D Object Captioning3D Object ClassificationGenerative 3D Object ClassificationGPU+1

MiniGPT-Reverse-Designing: Predicting Image Adjustments Utilizing MiniGPT-4

2024-06-03 · Vahid Azizi, Fatemeh Koochaki

Vision-Language Models (VLMs) have recently seen significant advancements through integrating with Large Language Models (LLMs). The VLMs, which process image and text modalities simultaneously, have demonstrated the abi…

InstructionGPT-4: A 200-Instruction Paradigm for Fine-Tuning MiniGPT-4

2023-08-23 · Lai Wei, Zihao Jiang, Weiran Huang, Lichao Sun

Multimodal large language models are typically trained in two stages: first pre-training on image-text pairs, and then fine-tuning using supervised vision-language instruction data. Recent studies have shown that large l…

Instruction FollowingQuestion AnsweringVisual Question Answering

MiniGPT4-Video: Advancing Multimodal LLMs for Video Understanding with Interleaved Visual-Textual Tokens

2024-04-04 · Kirolos Ataallah, Xiaoqian Shen, Eslam Abdelrahman, Essam Sleiman 외

This paper introduces MiniGPT4-Video, a multimodal Large Language Model (LLM) designed specifically for video understanding. The model is capable of processing both temporal visual and textual data, making it adept at un…

Language ModelingLanguage ModellingLarge Language ModelMultimodal Large Language Model+10

M-MiniGPT4: Multilingual VLLM Alignment via Translated Data

2026-03-31 · Seung Hun Han, Youssef Mohamed, Mohamed Elhoseiny arxiv

This paper presents a Multilingual Vision Large Language Model, named M-MiniGPT4. Our model exhibits strong vision-language understanding (VLU) capabilities across 11 languages. We utilize a mixture of native multilingua…