AI4Finance-Foundation / FinGPT

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

Allow benchmarking on CPU #167

Open WilliamGazeley opened 6 months ago

WilliamGazeley commented 6 months ago

In CI pipelines and testing suites, it is common for test code to run tiny toy models on the CPU to make sure things work before running a full model on accelerators. I found that a few benchmarks were hard coded to use CUDA and causes such tests to fail. I've updated the benchmarks so that they move data to the device the model itself is on.