[KongchangAI]
Product

DenseCore

A lightweight deep learning framework written in Rust, emphasizing bit-level parity with PyTorch's CPU implementation. It is approximately 2 MB in size and currently supports only the Apple Silicon Mac platform.

Timeline (last 90 days)

Oct 16

DenseCore, a deep learning framework written in Rust by a CS student, produces bit-for-bit identical training results to PyTorch when running nanoGPT on an Apple Silicon Mac, with the initial weights, losses, gradients and weight updates completely identical for 50 consecutive steps, even with dropout enabled.

Unverified50%
Oct 16

DenseCore can only match PyTorch's bit-level consistency on Apple Silicon Macs.

Unverified50%
Oct 16

DenseCore is about 2MB in size, while PyTorch is about 580MB.

Unverified50%
Oct 16

The author proposed three possible development directions for DenseCore: continue to replicate PyTorch, become a lightweight drop-in replacement, or transform into a diagnostic tool.

Unverified50%
Oct 16

Turning DenseCore into a PyTorch difference diagnostic tool may be the most practical.

Unverified50%
Oct 16

DenseCore currently only covers small models like nanoGPT.

Unverified50%
Oct 16

DenseCore's GitHub repository address is https://github.com/lncch/DenseCore, and the nanoGPT comparison results can be verified by running `python scripts/demo_bit_exact.py`.

Unverified50%

All Facts (7)

Source Articles