Skip to content
SmallIsBeautiful-ProgPublic

About

An open-source Rust project exploring CPU-native machine learning, beginning with a ternary-weight language model for SVG generation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CPUForge

Rethinking how AI computes.

CPUForge is an open-source research and development project exploring CPU-native machine learning, with a focus on efficient computation, accessible hardware and Rust.

Our goal is to investigate how useful machine learning systems can be built to run on ordinary computers, without depending on powerful GPUs or expensive hardware.

We believe that making AI more accessible requires looking beyond hardware acceleration and reconsidering how neural networks compute.


Our Mission

To develop practical, CPU-native machine learning systems that make useful AI more accessible to people with limited computing resources.

CPUForge prioritises:

  • Efficient computation over unnecessary complexity.
  • CPU accessibility over GPU dependency.
  • Simplicity over architectural excess.
  • Reproducible research over unsupported claims.
  • Open development over closed experimentation.

Initial Project: SVG-1

Our first development objective is to build a small language model from scratch that generates Scalable Vector Graphics (SVG).

This provides a focused environment in which to develop, test and evaluate our computational approach.

The initial model will use:

Component Design
Model architecture Small decoder-only Transformer
Model weights Ternary: −1, 0, +1
Activations 8-bit integers
Accumulation 32-bit integers
Implementation Rust
Execution CPU-only
Training From scratch
Initial application SVG generation

Why ternary weights?

Conventional neural networks commonly use numerical weights with many possible values.

CPUForge will investigate a model whose forward-pass weights are restricted to three values:

  • −1
  • 0
  • +1

This changes the computation of linear layers. Multiplication by these weights can be replaced with addition, subtraction or skipped contributions.

The objective is to develop an efficient implementation suited to ordinary CPUs.

Our initial numerical design is fixed around ternary weights and 8-bit activations. We are prioritising a working, useful system rather than spending development time on alternative activation precision experiments.

Why Rust?

Rust provides a foundation for building efficient, reliable and portable software.

It gives CPUForge direct control over memory, data structures, computation and concurrency, while providing strong compile-time safety.

We intend to implement the model, training system, computational kernels and supporting tools in Rust.

Open Development

CPUForge is developed openly from its inception.

We will publish the development process as it happens, including:

  • Research and architectural decisions.
  • Technical specifications.
  • Source code and development scripts.
  • Milestones and progress reports.
  • Tests, benchmarks and measurements.
  • Successful results, failed approaches and limitations.

We believe research should be visible, reproducible and accessible.

We will distinguish clearly between ideas under investigation, working implementations and verified results.

Development Principles

Finesse over force. Simplicity over complexity.

CPU accessibility: Design for ordinary computers and limited resources.

Efficient computation: Investigate how neural network operations can be implemented more efficiently.

Practical outcomes: Prioritise working systems and measurable usefulness.

Modular engineering: Build reusable components with clear responsibilities.

Modular and Loosely Coupled Architecture: Design CPUForge as a collection of independent, reusable components with clearly defined responsibilities and interfaces. Modules should be independently testable, replaceable and extensible without requiring unrelated components to change. Minimise dependencies and avoid unnecessary architectural coupling.

Open research: Share the journey, not just the finished product.

Project Status

CPUForge is at its initial foundation stage.

The first milestone is to establish the research specification, architecture and development environment before implementing the model.

No performance or efficiency improvements are claimed at this stage. These will be measured and published as development progresses.

Following the Project

Follow CPUForge on GitHub to see the research, source code, milestones and benchmarks develop.

Contributions, constructive criticism, technical discussion and reproducible findings are welcome.


CPUForge — Rethinking how AI computes.

About

An open-source Rust project exploring CPU-native machine learning, beginning with a ternary-weight language model for SVG generation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages