Files
zeekay 75125f041f Update to candle 0.9.2-alpha.2 with full hanzo naming and latest upstream changes
- Updated all crate versions to 0.9.2-alpha.2
- Synced source code with latest upstream candle changes
- Added hanzo-ug crate as wrapper for ug functionality
- Fixed all import statements to use hanzo-* naming
- Updated dependencies to latest versions:
  * cudarc: 0.16.3 -> 0.18.2
  * gemm: 0.17.0 -> 0.18.2
  * safetensors: 0.4.1 -> 0.6.0
  * ug: 0.4.0 -> 0.5.0
  * criterion: 0.5.1 -> 0.7.0
- Added float8 support for enhanced precision
- Updated Metal backend to use objc2-metal/objc2-foundation
- All core crates now compile and build successfully

Core working crates:
- hanzo-ml (main ML framework)
- hanzo-nn (neural network layers)
- hanzo-transformers (transformer models)
- hanzo-datasets (data loading utilities)
- hanzo-ug (unified GPU backend)
- hanzo-kernels (CUDA kernels)
- hanzo-metal-kernels (Metal kernels)
- hanzo-flash-attn (flash attention)
- hanzo-onnx (ONNX support)
2026-01-16 17:17:01 -08:00
..
2026-01-16 13:01:08 -08:00

hanzo-ml-mnist-training

Training a 2 layer MLP on mnist in ML.

Running an example

$ cargo run --example mnist-training --features hanzo-datasets

> train-images: [60000, 784]
> train-labels: [60000]
> test-images: [10000, 784]
> test-labels: [10000]
>    1 train loss:  2.30265 test acc: 68.08%
>    2 train loss:  1.50815 test acc: 60.77%