This is not a miner. It’s an ANE stress test that shows you can emulate integer crypto on a matrix engine…and that you probably shouldn’t, performance-wise. That contrast is the point.
1python -m venv .venv
2source .venv/bin/activate
3pip install --upgrade pip
4pip install coremltools numpy
1python test.py --bench --batches 1,2,4,8,16,32,64,128,256,512,1024 \
2 --iters 10 --warmup 3 --cu CPU_AND_NE --verbose
If you want to nudge flexible-shape models toward ANE on newer OS builds, load with:
1import coremltools as ct
2mlmodel = ct.models.MLModel(
3 "bitlot.mlpackage",
4 compute_units=ct.ComputeUnit.CPU_AND_NE,
5 optimization_hints={"reshapeFrequency": ct.ReshapeFrequency.Infrequent},
6)
Not intended for mining or production crypto. If you want real speed, use:
To everyone who looks at a matrix engine and says: “yeah, let’s make it do bitwise crypto.”
ANE-Hash is that energy.