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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cputorch-0.5.8-cp313-cp313-win_amd64.whl (226.6 kB view details)

Uploaded CPython 3.13Windows x86-64

cputorch-0.5.8-cp313-cp313-win32.whl (224.2 kB view details)

Uploaded CPython 3.13Windows x86

cputorch-0.5.8-cp313-cp313-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

cputorch-0.5.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (853.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

cputorch-0.5.8-cp313-cp313-macosx_11_0_arm64.whl (55.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cputorch-0.5.8-cp313-cp313-macosx_10_13_x86_64.whl (57.9 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: cputorch-0.5.8.tar.gz
  • Upload date:
  • Size: 30.6 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.8.tar.gz
Algorithm Hash digest
SHA256 ef56330ec8f217a1e4ae52e61af10af3270ca4a19a769c77c1d2393a7ac8ed97
MD5 60b0fdc8ef5afa6ba769ea585cd7ab8f
BLAKE2b-256 73d0604ebc4e6be05bd8e6ef75641b855b604c167c5869cfe94d0932e41382c0

See more details on using hashes here.

File details

Details for the file cputorch-0.5.8-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: cputorch-0.5.8-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 226.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cputorch-0.5.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d6cb6c28947a957793b8b9afd4086a3bedb327a34c9c142287b492fe84cbb696
MD5 a73da4573c34133ff29801dcad38c6ce
BLAKE2b-256 bb28a3b809e1a711fa0b0abfa2959ad50c6b5598990206245061b196ec135647

See more details on using hashes here.

File details

Details for the file cputorch-0.5.8-cp313-cp313-win32.whl.

File metadata

  • Download URL: cputorch-0.5.8-cp313-cp313-win32.whl
  • Upload date:
  • Size: 224.2 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cputorch-0.5.8-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 2e761b965aaeef7d7ab7718e7a3d4e9e615d2ff6c030ce8bdc7950caf707c87e
MD5 ff2be610ffd06088dbb11e27b1601ea0
BLAKE2b-256 ff6ba972ba11cb2a49068ee08514fe42f03947aa1193dfc90fb913f882318fba

See more details on using hashes here.

File details

Details for the file cputorch-0.5.8-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cputorch-0.5.8-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c5ba3c113a1ed5ca17514e98d3f95b4236dda6febccd33cec6b57b1ab2a0d4dd
MD5 d6fb887d0a60518bafac59e73998e7cd
BLAKE2b-256 87526a738fd27430ec10c94e5f8f192f153e64939082ee9fc64734f9b7156585

See more details on using hashes here.

File details

Details for the file cputorch-0.5.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cputorch-0.5.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 17b869e3900b01881589c4b8b8980c346df314ec8203562b27b607f952432e67
MD5 035810b7dff0102b1f9e0221d3f6fa6b
BLAKE2b-256 71daf50ca52d534313843fef67f17c05b002e6685728a0140dc624bb749ac8dc

See more details on using hashes here.

File details

Details for the file cputorch-0.5.8-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cputorch-0.5.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1d698d6f0fe872e797b6b91b1d540b6774cea4cb19cc173171fde014390ae5f
MD5 301c73ded1277ccf86f111cc51883d99
BLAKE2b-256 9c507324decf7a02fde5cbf1ec76f1d7556d27781ec4a192267ccb34a8b749c4

See more details on using hashes here.

File details

Details for the file cputorch-0.5.8-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for cputorch-0.5.8-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f1a1bfbc5258215e04882dfd8d3576cbe9f3d940d63a15b3b7100017809c0372
MD5 0fffaad1866a534c4afbb0f957fdff36
BLAKE2b-256 a522fdfc84f47bf1e0d179df36c02db054a9eb9c2c06b7cbee72e0a3371c42ee

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.0

1 file

0.5.9

1 file

This release

0.5.8 This release

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