Here is the memory that I noted when synthesizing a text with 3 sentences.
before inference: allocated 5.10791015625
cached 6.0
inference: allocated 225.40185546875
cached 970.0
after inference allocated 6.48193359375
cached 26.0
del all allocated 6.48193359375
cached 26.0
before inference: allocated 5.10791015625
cached 6.0
inference: allocated 95.818359375
cached 398.0
after inference allocated 5.6748046875
cached 6.0
del all allocated 5.6748046875
cached 6.0
before inference: allocated 5.10791015625
cached 6.0
inference: allocated 31.6435546875
cached 122.0
after inference allocated 5.27490234375
cached 6.0
del all allocated 5.27490234375
cached 6.0