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.5.5

V0.5.5

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.5.9.tar.gz (30.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: cputorch-0.5.9.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.5.9.tar.gz
Algorithm Hash digest
SHA256 6367bb52f7ec093987319fd0863119a42f360447b7591e64a279718cfd05ba01
MD5 0ba94d36dcaf8f1a32b87e83ce628042
BLAKE2b-256 7ef8d41d9b535862472a467296b78d9e7b8a257293325de400a6f506419f6518

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.0

1 file

This release

0.5.9 This release

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