Comments (5)
Perhaps we should add an option to control collecting history?
Lines 370 to 384 in 366daa7
It could default on but allow people with large models to disable without having to recompile.
Does anyone have an optimization real use case they could share? We could potentially speed it up as well.
from hype.
@adicirstei I can offer you my solution, but it requires you to modify source code.
In Optimize.fs
find the line whist <- [w] @ whist
and comment it out or delete it.
This line accumulates all the weight history which gets very large if your model is large. After that, it works great.
from hype.
Thanks @zgrkpnr!
I'll give it a try. Hope I'll be able to compile it.
from hype.
@zgrkpnr do you remember what was the size of that list when you got OutOfMemory?
Looking at the code quickly, it feels this should actually be a ResizeArray
(initialized with a size matching iters
), this would also make the last step (where it is currently reversed and converted to array) faster.
This change could save roughly 4 bytes per element.
from hype.
@smoothdeveloper Let's say our model has 900,000 parameters to optimize (which is quite normal for deep structures). 100 minibacthes and 10 Epochs for each brings us 100 x 10 x 900,000 single precision floating points of the size 3.4 b bytes. Roughly 3GB. I may be wrong, of course.
@adicirstei If the solution works, let me know.
from hype.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hype.