Deep Neural Networks from Scratch in Zig
monadmonkey.com
Deep Neural Networks from Scratch in Zig
1–10 of 34 posts
Re: Deep Neural Networks from Scratch in Zig
#2Re: Deep Neural Networks from Scratch in Zig
#3Re: Deep Neural Networks from Scratch in Zig
#4EDIT: the MNIST link requires authentication: http://yann.lecun.com/exdb/mnist/ How can we get access to the test run at the end?
Re: Deep Neural Networks from Scratch in Zig
#5I didn't investigate this more deeply , but I think if you used an arena allocator on each iteration of the loop, and simply freed the whole allocator after each iteration, you might get much better performance. EDIT: the MNIST link requires authentication: http://yann.lecun.com/exdb/mnist/ How can we get access to the test run at the end?
Re: Deep Neural Networks from Scratch in Zig
#6I didn't investigate this more deeply , but I think if you used an arena allocator on each iteration of the loop, and simply freed the whole allocator after each iteration, you might get much better performance. EDIT: the MNIST link requires authentication: http://yann.lecun.com/exdb/mnist/ How can we get access to the test run at the end?
Why would any DNN ever need to deallocate other than at program termination? (And allocate other than at startup)
EDIT: FixedBufferAllocator has a reset method , so maybe you just need to use that to "free" all memory on each iteration? Perhaps using that directly is enough if you know the max memory usage at compile-time... I was just thinking that it should be possible to use an arena allocator to basically tell the delegate allocator to make all memory available again without freeing it back to the OS?! If anyone knows more about allocators I would be happy to know this. https://ziglang.org/documentation/master/std/#A;std:heap.Fix...
Re: Deep Neural Networks from Scratch in Zig
#7I didn't investigate this more deeply , but I think if you used an arena allocator on each iteration of the loop, and simply freed the whole allocator after each iteration, you might get much better performance. EDIT: the MNIST link requires authentication: http://yann.lecun.com/exdb/mnist/ How can we get access to the test run at the end?
Re: Deep Neural Networks from Scratch in Zig
#8I didn't investigate this more deeply , but I think if you used an arena allocator on each iteration of the loop, and simply freed the whole allocator after each iteration, you might get much better performance. EDIT: the MNIST link requires authentication: http://yann.lecun.com/exdb/mnist/ How can we get access to the test run at the end?
doesn't ask for auth for me?
Re: Deep Neural Networks from Scratch in Zig
#9No, the bottleneck would be not utilizing the idling GPU.