FinGPT
FinGPT copied to clipboard
Fine-tuning error.
Hey guys,
I'm trying to do finetunning using finGPT. According to the website https://medium.datadriveninvestor.com/introducing-fingpt-forecaster-the-future-of-robo-advisory-services-50add34e3d3c
it takes 2 steps such as: 1- Prepare Data (prepare_data.ipynb) 2- The Training Process (train_lora.py)
Executing the first step (prepare_data.ipynb) generates two folders, one containing the .csv files and the other containing the .json files, as in the image below
The problem is in the second step: When executing the train_lora.py file I have the following error AttributeError: 'NoneType' object has no attribute 'strip' , as in the image below
I don't know what else to do... please, could someone help me? Many thanks!!
this seems the 'answer' is empty. you might want to check prepare data to see if it generates 'answer' at all. did you setup your gpt4 API key correctly? otherwise there is no ground truth answer will be generated.
Seems similar to a null pointer exception problem because the object itself does not exist. You should start from this and look for this "empty" object. It is possible that it is not generated at all.
https://github.com/AI4Finance-Foundation/FinGPT-Research