-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to finetune #195
Comments
Hi. This error is caused by EvalCrop, indicating that the context/prediction window cannot be cropped under the current configuration as it would exceed the data bounds. You can check the values of Additionally, validation data is optional—simply omit After fine-tuning, you can load the model with moirai_lightning_ckpt. Set |
Hi @zqiao11, firstly, thank you for your response. I made the adjustment without providing validation data, using the following command: CUDA_VISIBLE_DEVICES=0 python -m cli.train -cp conf/finetune run_name=fine_tuning_morai model=moirai_1.0_R_small data=data_fine_tuning val_data=val_fine_tuning The training was executed with As a result, I obtained an
Inside, it only contains a To load the model I tried the following but it didn't work: from uni2ts.model.moirai import MoiraiForecast
model = MoiraiForecast.load_from_checkpoint(
checkpoint_path="outputs/finetune/moirai_1.1_R_small/data_fine_tuning/fine_tuning_morai",
num_samples=100,
patch_size=16,
context_length=398
) Finally, I also tried testing the code in PR #189 by executing the following command: CUDA_VISIBLE_DEVICES=0 python -m cli.train -cp conf/finetune exp_name=example_lsf run_name=example_run model=moirai_1.0_R_small model.patch_size=32 model.context_length=1000 model.prediction_length=96 data=data_fine_tuning data.patch_size=32 data.context_length=1000 data.prediction_length=96 data.mode=S I also removed the validation data and changed the etth1 data to mine, but this resulted in the following error:
|
I am also trying to do fine-tuning and encountered the same issues as mentioned in #174. I followed the steps outlined, replicating the code presented in #174, with the only change being the location where the data will be saved:
I followed the same approach and created two YAML configuration files for training and validation. They are located respectively at
cli/conf/finetune/data/data_fine_tuning.yaml
andcli/conf/finetune/val_data/val_fine_tuning.yaml
.The training YAML file is:
And the validation YAML file is:
Then, I ran the training command as specified, changing only the file name:
However, it generates the following error:
My questions:
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: