Discover and explore top open-source AI tools and projects—updated daily.
robertcpriceGPU-native CPU executes operations via trained neural networks
Top 52.1% on SourcePulse
This project introduces nCPU, a novel CPU architecture where all components—registers, memory, and program counter—are represented as GPU tensors, and ALU operations are executed by trained neural networks. It targets researchers and power users exploring alternative computing paradigms and offers a unique approach to hardware acceleration by leveraging deep learning models for fundamental arithmetic and logic operations, potentially enabling new forms of computation.
How It Works
The nCPU architecture runs entirely on the GPU, with all state managed as PyTorch tensors. Instruction fetch, decode, execution, and state updates occur on-device, eliminating host CPU round-trips. Each ALU operation is routed through a specific trained neural network model: addition uses a Kogge-Stone carry-lookahead network, multiplication employs a learned byte-pair lookup table, bitwise operations utilize neural truth tables, and shifts are handled by attention-based bit routing. This model-native approach aims for high accuracy and explores the transferability of classical hardware design principles to neural architectures.
Quick Start & Requirements
pip install -e ".[dev]"python main.py --program programs/sum_1_to_10.asmHighlighted Details
Maintenance & Community
No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap are provided in the README.
Licensing & Compatibility
The project is released under the MIT License, permitting commercial use and integration with closed-source projects without significant restrictions.
Limitations & Caveats
As a research runtime, nCPU may not be production-ready. Performance benchmarks are primarily demonstrated on Apple Silicon, and broader hardware compatibility for optimal performance is not detailed. The project explores a highly experimental architecture, and long-term maintenance or community support is not explicitly indicated.
1 week ago
Inactive
microsoft
MarioSieg
baidu-research
gpu-mode