Write perplexity and logprob with higher precision.