Skip to main content

CPUTorch

CPUTorch is a lightweight tensor and neural-network framework built from scratch, with a C++ numerical core, Python API, CPU execution, and Vulkan compute support.

The project is designed as a general-purpose computational foundation for machine learning and artificial intelligence systems.

Author

Frandika Imam Arifin

Repository

https://github.com/Mangono1/minitorch

Architecture

  • C++ numerical core
  • Python API
  • CPU backend
  • Vulkan compute backend
  • Automatic differentiation
  • Tensor operations
  • Neural-network modules
  • Optimizers
  • Hardware profiling
  • Hardware-aware execution
  • Adaptive execution architecture

Current Version

CPUTorch V0.6.0

V0.6.0

Current development includes:

  • Tensor engine
  • requires_grad
  • Computational graph infrastructure
  • Automatic differentiation infrastructure
  • Neural-network modules
  • Linear layers
  • ReLU
  • Sequential models
  • MSE loss
  • SGD optimizer
  • Hardware profiler
  • CPU backend
  • Vulkan compute infrastructure
  • Vulkan buffer management
  • Vulkan compute pipeline
  • Vector arithmetic backend operations
  • Scalar multiplication operation
  • Python package
  • PyPI distribution
  • Multi-platform wheel build automation

Installation

Install the released package directly from PyPI:

python -m pip install cputorch

Or install a specific version:

python -m pip install cputorch==0.5.5

Quick Example

import cputorch

x = cputorch.Tensor(
    [1.0, 2.0, 3.0, 4.0],
    [2, 2],
    requires_grad=True
)

y = x.multiply_scalar(2.0)

print(y.data)

Design Philosophy

CPUTorch is intended to remain a general computational framework.

It is not tied to a specific domain or dataset.

It can serve as a foundation for:

  • Machine learning
  • Deep learning
  • Computer vision
  • Scientific computing
  • Robotics
  • Simulation
  • Reinforcement learning
  • Custom AI systems
  • Domain-specific AI frameworks

Higher-level frameworks and models can use CPUTorch as their computational backend.

Roadmap

  • V0.1 Tensor core
  • V0.2 Automatic differentiation
  • V0.3 Neural-network modules
  • V0.4 Optimizers
  • V0.5 Hardware profiler
  • V0.5.x Vulkan compute development
  • V0.6 Expanded Vulkan backend
  • V0.7 GPU watchdog and adaptive scheduler
  • V0.8 Transformer architecture
  • V0.9 Tokenizer and language-model infrastructure
  • V1.0 General training engine

License

MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cputorch-0.6.0.tar.gz (30.5 kB view details)

Uploaded Source

File details

Details for the file cputorch-0.6.0.tar.gz.

File metadata

  • Download URL: cputorch-0.6.0.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cputorch-0.6.0.tar.gz
Algorithm Hash digest
SHA256 ad0d743bce1ead189bf467c4f859b58abfe453c2bfef766b89041dab8c21f3a5
MD5 eb4bb5e51e1da2ed840443d8ed8aa924
BLAKE2b-256 f3a3538bc959a1fc6f7e58b65ad4d2f62bb442664647d2d56582a02f0463c7ce

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

1 file

0.5.9

1 file

0.5.8

7 files

0.5.7

55 files

0.5.5

55 files

0.5.4

55 files

0.5.3

56 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page