How can I release the unused gpu memory?

Did you check, if the cached memory was decreased using this approach?