AI4Finance-Foundation / FinGPT

FinGPT: Open-Source Financial Large Language Models! Revolutionize 🔥 We release the trained model on HuggingFace.
https://ai4finance.org
MIT License
13.48k stars 1.88k forks source link

帮忙看一下这个是什么问题,推理的时候数量量大了就出现这个问题。 #80

Closed shiguangleigithub closed 11 months ago

shiguangleigithub commented 11 months ago

帮忙看一下这个是什么问题,推理的时候数量量大了就出现这个问题。 1

Noir97 commented 11 months ago

It's not because of large number of samples. Its because the total steps is not calculated correctly. 'total_steps = dataset.shape[0]//batch_size + 1' make this error happen when your sample number is divisible by batch_size. We'll fix that later