OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Femtogpt

femtoGPT is a minimal GPT implementation written from scratch in Rust, with code for training and inference on CPUs and GPUs. Its tensor processing, training and inference are implemented in the project, making it a compact codebase for language-model experimentation and study.

Independent OpenViST project profile, based on linked sources.

Femtogpt — Rust users who can compile and run a Cargo project
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use femtoGPT for hands-on experimentation with GPT implementation, local training on a small-character-set text dataset, or inference with a trained model.

Who it is for

  • Rust developers exploring how GPT-style models are implemented.
  • Learners who want to examine tensor operations, training and inference in a minimal language-model project.
  • Experimenters who want to train a small GPT-style model on their own text dataset.

Documented uses

  • Compile and run a local GPT-style model implementation.
  • Train a model using text placed in dataset.txt.
  • Run inference with the documented infer command.
  • Explore a from-scratch Rust implementation of GPT tensor processing and model code.
Before you choose

Requirements & limits

The public GitHub repository identifies the project as MIT-licensed and written in Rust.

  • Training expects a local dataset named dataset.txt; the README recommends keeping the number of unique characters small.
  • CPU execution is supported; GPU acceleration requires drivers and OpenCL runtimes, and uses the GPU feature flag.
  • The implementation favors simple primitive operations and the README cautions that layers may still contain errors.
  • Published sample outputs in the README are often incoherent, so the project is better suited to implementation study and experimentation than polished text generation.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare a local dataset for training

Set up the documented local inputs for a femtoGPT training run.

Before you start

  • Rust toolchain installed.
  • A text dataset saved as dataset.txt, with a small number of unique characters.

Steps

  1. Put the text you want to train on in a file named dataset.txt.

  2. Run the documented training command: cargo run --release -- train.

Expected outcome

The project starts training the GPT-style model; the README says training data is written to the train_data directory and can be continued after stopping.

Guide limitations

  • The README recommends a small character set and does not specify a universal dataset size or training duration.
  • The project describes its primitive operations as simple and warns that some layers may be implemented incorrectly.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
5 November 2026
Original website title
keyvank/femtoGPT · Official homepage title · retained in its source language