FinGPT icon indicating copy to clipboard operation
FinGPT copied to clipboard

Fine-tuning error.

Open rafaepires opened this issue 1 year ago • 3 comments

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

Screenshot from 2024-02-08 16-38-10

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

Screenshot from 2024-02-08 16-42-37

I don't know what else to do... please, could someone help me? Many thanks!!

rafaepires avatar Feb 08 '24 19:02 rafaepires

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.

ynjiun avatar Feb 13 '24 00:02 ynjiun

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.

Weiyao-Li avatar Mar 07 '24 19:03 Weiyao-Li

https://github.com/AI4Finance-Foundation/FinGPT-Research

Weiyao-Li avatar Mar 11 '24 23:03 Weiyao-Li