Closed Camille-Molinier closed 3 weeks ago
I also have this problem now. on the old operating system, I managed to do training, but I don't know what version of python and torch I used then in September 2023. who manages to train, please post. in the past I used the python command train.py --data midi_data/train --lr 0.001 --batch-size-train 16 --max-step 1000 --val-step 25
I also encountered this - I am totally new to this so what I did was probably totally wrong, but I got it running at least. Still get quite a few warnings from pytorch, but at least it runs:
In train.py ( line 335 ) there is a call to TrainMidiModel with flash=True, I changed it to False and that did it for me.
Also I had to reconfigure the torch options quite a bit to make finetuning possible on my 8gig GPU. Its painful, but at least it's possible ( about half an hour / epoch ) and a full validation will not work because of too low memory.
Hey, I'm working on a fine-tuning of your model to build a Pokémon diamond music generator. For now, I'm trying to understand your code and run it. When I try to run the train.py (data is my folder with midi file) :
I encounter this error :
I'm using torch==2.1.2+cu121 and transformers==4.36.2 Any ideas ?