Skip to content

tdh8316/llm.torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

LLM.torch

This repository contains PyTorch implementations of various large language models (LLMs).

Each model is implemented from scratch using only PyTorch and standard libraries, without relying on high-level frameworks. The goal is to provide clear and educational codebases for understanding how these models work under the hood.

Usage

To use a specific model, navigate to its directory and run the model download scripts. For example, to run the Gemma-3 model:

cd gemma-3
python download_gemma_3.py
python gemma_3.py

This will download the pre-trained weights and run a simple inference example.

About

Clean, one file PyTorch implementations of LLMs. Huggingface-compatible and easy-to-read.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages