title: How to cache a large machine learning model in Flask?
body: <p>Here is the situation I am facing with:</p>
  
  <p>I just wrote a Flask app that people can input the text review they want and my app would return the most similar reviews from our dataset. So basically it is a NLP project and the machine learning model was trained already. The problem right now is the model is about 2.5GB and each time the user types in something, it will load that model to do some calculation.</p>
  
  <p>I am ok with machine learning stuff but a total newbie at web development field. After some googling, I found that cache in Flask may be the solution and I tried to follow this tutorial <a href="http://brunorocha.org/python/flask/using-flask-cache.html" rel="noreferrer">http://brunorocha.org/python/flask/using-flask-cache.html</a></p>
  
  <p>However, I failed to implement it. Could anyone give me some advice about what's the correct way to do it. If Flask cache is "the" solution, I will keep looking at that stuff and hope I could make it.</p>