You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

1 month ago
  1. #This is a template config for custom finetuning kronos on csv data
  2. #这是一份模板config,用于kronos的csv自定义数据微调
  3. data:
  4. data_path: "/xxxx/Kronos/finetune_csv/data/HK_ali_09988_kline_5min_all.csv"
  5. lookback_window: 512
  6. predict_window: 48
  7. max_context: 512
  8. clip: 5.0
  9. # dataset split ratio
  10. train_ratio: 0.9
  11. val_ratio: 0.1
  12. test_ratio: 0.0
  13. training:
  14. # control the training epochs of tokenizer and basemodel
  15. tokenizer_epochs: 30
  16. basemodel_epochs: 20
  17. batch_size: 32
  18. log_interval: 50
  19. num_workers: 6
  20. seed: 42
  21. tokenizer_learning_rate: 0.0002
  22. predictor_learning_rate: 0.000001
  23. adam_beta1: 0.9
  24. adam_beta2: 0.95
  25. adam_weight_decay: 0.1
  26. # gradient accumulation steps for tokenizer training
  27. accumulation_steps: 1
  28. # model path configuration
  29. model_paths:
  30. # pretrained model path
  31. pretrained_tokenizer: "/xxx/Kronos/pretrained/Kronos-Tokenizer-base"
  32. pretrained_predictor: "/xxx/Kronos/pretrained/Kronos-base"
  33. # experiment name - other paths will be generated based on this
  34. exp_name: "HK_ali_09988_kline_5min_all"
  35. base_path: "/xxx/Kronos/finetune_csv/finetuned/"
  36. # the following paths will be generated based on exp_name, no need to modify manually
  37. # way 1: leave empty string, the system will generate the full path
  38. base_save_path: "" # /xxxx/Kronos/finetune_csv/finetuned/{exp_name}
  39. finetuned_tokenizer: "" # /xxxx/Kronos/finetune_csv/finetuned/{exp_name}/tokenizer/best_model
  40. # way 2: use template string, {exp_name} will be replaced with the actual experiment name
  41. # base_save_path: "/xxxx/Kronos/finetune_csv/finetuned/{exp_name}"
  42. # finetuned_tokenizer: "/xxxx/Kronos/finetune_csv/finetuned/{exp_name}/tokenizer/best_model"
  43. tokenizer_save_name: "tokenizer"
  44. basemodel_save_name: "basemodel"
  45. experiment:
  46. name: "kronos_custom_finetune"
  47. description: "Custom finetune for HK stock data"
  48. use_comet: false
  49. # control the training phase
  50. train_tokenizer: true
  51. train_basemodel: true
  52. # if true, skip the existing model training
  53. skip_existing: false
  54. # device configuration
  55. device:
  56. use_cuda: true
  57. device_id: 0