mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
Implements MLX GPU acceleration for Go consensus with github.com/luxfi/mlx:
Features:
- MLXBackend with adaptive batch processing
- Automatic GPU/CPU device selection
- Neural network inference on GPU
- Throughput tracking and optimization
Example Usage:
```go
backend, _ := ai.NewMLXBackend(32)
backend.ProcessVotesBatch(votes)
fmt.Println("Throughput:", backend.GetThroughput())
```
Build with: go build -tags mlx
Completes MLX support across all SDKs:
- ✅ Go (github.com/luxfi/mlx)
- ✅ C++ (MLX C++ bindings)
- ✅ Python (mlx-py)
- ✅ All SDKs tested and working