cputorch 0.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cputorch-0.5.3/PKG-INFO +63 -0
- cputorch-0.5.3/README.md +54 -0
- cputorch-0.5.3/pyproject.toml +14 -0
- cputorch-0.5.3/python/cputorch/__init__.py +17 -0
- cputorch-0.5.3/python/cputorch/_core.cpp +1294 -0
- cputorch-0.5.3/python/cputorch.egg-info/PKG-INFO +63 -0
- cputorch-0.5.3/python/cputorch.egg-info/SOURCES.txt +20 -0
- cputorch-0.5.3/python/cputorch.egg-info/dependency_links.txt +1 -0
- cputorch-0.5.3/python/cputorch.egg-info/top_level.txt +1 -0
- cputorch-0.5.3/setup.cfg +4 -0
- cputorch-0.5.3/setup.py +63 -0
- cputorch-0.5.3/src/cpu/cpu_ops.cpp +9 -0
- cputorch-0.5.3/src/device.cpp +36 -0
- cputorch-0.5.3/src/nn/linear.cpp +175 -0
- cputorch-0.5.3/src/nn/module.cpp +265 -0
- cputorch-0.5.3/src/nn/mse_loss.cpp +49 -0
- cputorch-0.5.3/src/nn/parameter.cpp +42 -0
- cputorch-0.5.3/src/nn/relu.cpp +28 -0
- cputorch-0.5.3/src/nn/sequential.cpp +95 -0
- cputorch-0.5.3/src/optim/sgd.cpp +85 -0
- cputorch-0.5.3/src/tensor.cpp +1179 -0
- cputorch-0.5.3/tests/test_tensor.py +23 -0
cputorch-0.5.3/PKG-INFO
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cputorch
|
|
3
|
+
Version: 0.5.3
|
|
4
|
+
Summary: CPU-focused tensor and neural network engine written in C++
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/yourusername/cputorch
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# MiniTorch
|
|
11
|
+
|
|
12
|
+
MiniTorch is an experimental neural-network framework built from scratch.
|
|
13
|
+
|
|
14
|
+
## Architecture
|
|
15
|
+
|
|
16
|
+
- C++ numerical core
|
|
17
|
+
- Python API
|
|
18
|
+
- CPU backend
|
|
19
|
+
- Future Vulkan backend
|
|
20
|
+
- Automatic differentiation
|
|
21
|
+
- Neural-network modules
|
|
22
|
+
- Optimizers
|
|
23
|
+
- Transformer support
|
|
24
|
+
- Hardware-aware execution
|
|
25
|
+
- GPU watchdog
|
|
26
|
+
- Adaptive fallback
|
|
27
|
+
|
|
28
|
+
## Current Version
|
|
29
|
+
|
|
30
|
+
V0.2.0
|
|
31
|
+
|
|
32
|
+
## V0.2 Features
|
|
33
|
+
|
|
34
|
+
- requires_grad
|
|
35
|
+
- Gradient storage
|
|
36
|
+
- Computational graph
|
|
37
|
+
- backward()
|
|
38
|
+
- Gradient accumulation
|
|
39
|
+
- zero_grad()
|
|
40
|
+
- Addition backward
|
|
41
|
+
- Subtraction backward
|
|
42
|
+
- Multiplication backward
|
|
43
|
+
- Matrix multiplication backward
|
|
44
|
+
- Sum backward
|
|
45
|
+
|
|
46
|
+
## Build on Termux
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
./scripts/build_termux.sh
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Roadmap
|
|
53
|
+
|
|
54
|
+
- V0.1 Tensor core
|
|
55
|
+
- V0.2 Automatic differentiation
|
|
56
|
+
- V0.3 Neural network modules
|
|
57
|
+
- V0.4 Optimizers
|
|
58
|
+
- V0.5 Hardware profiler
|
|
59
|
+
- V0.6 Vulkan compute backend
|
|
60
|
+
- V0.7 GPU watchdog and adaptive scheduler
|
|
61
|
+
- V0.8 Transformer
|
|
62
|
+
- V0.9 Tokenizer and TinyLLM
|
|
63
|
+
- V1.0 MiniTorch training engine
|
cputorch-0.5.3/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# MiniTorch
|
|
2
|
+
|
|
3
|
+
MiniTorch is an experimental neural-network framework built from scratch.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
- C++ numerical core
|
|
8
|
+
- Python API
|
|
9
|
+
- CPU backend
|
|
10
|
+
- Future Vulkan backend
|
|
11
|
+
- Automatic differentiation
|
|
12
|
+
- Neural-network modules
|
|
13
|
+
- Optimizers
|
|
14
|
+
- Transformer support
|
|
15
|
+
- Hardware-aware execution
|
|
16
|
+
- GPU watchdog
|
|
17
|
+
- Adaptive fallback
|
|
18
|
+
|
|
19
|
+
## Current Version
|
|
20
|
+
|
|
21
|
+
V0.2.0
|
|
22
|
+
|
|
23
|
+
## V0.2 Features
|
|
24
|
+
|
|
25
|
+
- requires_grad
|
|
26
|
+
- Gradient storage
|
|
27
|
+
- Computational graph
|
|
28
|
+
- backward()
|
|
29
|
+
- Gradient accumulation
|
|
30
|
+
- zero_grad()
|
|
31
|
+
- Addition backward
|
|
32
|
+
- Subtraction backward
|
|
33
|
+
- Multiplication backward
|
|
34
|
+
- Matrix multiplication backward
|
|
35
|
+
- Sum backward
|
|
36
|
+
|
|
37
|
+
## Build on Termux
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
./scripts/build_termux.sh
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Roadmap
|
|
44
|
+
|
|
45
|
+
- V0.1 Tensor core
|
|
46
|
+
- V0.2 Automatic differentiation
|
|
47
|
+
- V0.3 Neural network modules
|
|
48
|
+
- V0.4 Optimizers
|
|
49
|
+
- V0.5 Hardware profiler
|
|
50
|
+
- V0.6 Vulkan compute backend
|
|
51
|
+
- V0.7 GPU watchdog and adaptive scheduler
|
|
52
|
+
- V0.8 Transformer
|
|
53
|
+
- V0.9 Tokenizer and TinyLLM
|
|
54
|
+
- V1.0 MiniTorch training engine
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "cputorch"
|
|
7
|
+
version = "0.5.3"
|
|
8
|
+
description = "CPU-focused tensor and neural network engine written in C++"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
|
|
13
|
+
[project.urls]
|
|
14
|
+
Homepage = "https://github.com/yourusername/cputorch"
|