Instructions to use HarrisDe/chronos2-lora-eu-load with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use HarrisDe/chronos2-lora-eu-load with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +43 -0
- adapter_config.json +52 -0
- adapter_model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: amazon/chronos-2
|
| 3 |
+
library_name: peft
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
pipeline_tag: time-series-forecasting
|
| 6 |
+
tags:
|
| 7 |
+
- chronos
|
| 8 |
+
- lora
|
| 9 |
+
- electricity-load
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Chronos-2 LoRA adapter for European day-ahead load forecasting
|
| 13 |
+
|
| 14 |
+
A LoRA adapter for [amazon/chronos-2](https://huggingface.co/amazon/chronos-2),
|
| 15 |
+
fine-tuned on hourly electricity load for Germany, Spain, France, Greece and Italy.
|
| 16 |
+
|
| 17 |
+
## Training
|
| 18 |
+
|
| 19 |
+
- Data: Open Power System Data (ENTSO-E Transparency), hourly load, 2015-2017
|
| 20 |
+
- Method: LoRA, 500 steps, batch size 8, learning rate 1e-4, on CPU
|
| 21 |
+
- Context length 1344 hours (8 weeks), prediction length 24 hours
|
| 22 |
+
|
| 23 |
+
## Results
|
| 24 |
+
|
| 25 |
+
Day-ahead forecasts for every day of 2019. MASE is scaled by the in-sample
|
| 26 |
+
error of a weekly seasonal-naive forecast; lower is better.
|
| 27 |
+
|
| 28 |
+
| Model | Mean MASE |
|
| 29 |
+
|------------------------|-----------|
|
| 30 |
+
| Seasonal naive | 1.004 |
|
| 31 |
+
| LightGBM | 0.497 |
|
| 32 |
+
| Chronos-2 zero-shot | 0.402 |
|
| 33 |
+
| Chronos-2 + this LoRA | 0.387 |
|
| 34 |
+
|
| 35 |
+
The adapter was selected on 2018 as a validation year and evaluated once on 2019.
|
| 36 |
+
|
| 37 |
+
## Usage
|
| 38 |
+
|
| 39 |
+
from chronos import Chronos2Pipeline
|
| 40 |
+
|
| 41 |
+
pipeline = Chronos2Pipeline.from_pretrained("YOUR_USERNAME/chronos2-lora-eu-load")
|
| 42 |
+
|
| 43 |
+
Code: https://github.com/HarrisDe/gridcast
|
adapter_config.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": {
|
| 6 |
+
"base_model_class": "Chronos2Model",
|
| 7 |
+
"parent_library": "chronos.chronos2.model"
|
| 8 |
+
},
|
| 9 |
+
"base_model_name_or_path": "amazon/chronos-2",
|
| 10 |
+
"bias": "none",
|
| 11 |
+
"corda_config": null,
|
| 12 |
+
"ensure_weight_tying": false,
|
| 13 |
+
"eva_config": null,
|
| 14 |
+
"exclude_modules": null,
|
| 15 |
+
"fan_in_fan_out": false,
|
| 16 |
+
"inference_mode": true,
|
| 17 |
+
"init_lora_weights": true,
|
| 18 |
+
"kasa_config": null,
|
| 19 |
+
"layer_replication": null,
|
| 20 |
+
"layers_pattern": null,
|
| 21 |
+
"layers_to_transform": null,
|
| 22 |
+
"loftq_config": {},
|
| 23 |
+
"lora_alpha": 16,
|
| 24 |
+
"lora_bias": false,
|
| 25 |
+
"lora_dropout": 0.0,
|
| 26 |
+
"lora_ga_config": null,
|
| 27 |
+
"megatron_config": null,
|
| 28 |
+
"megatron_core": "megatron.core",
|
| 29 |
+
"modules_to_save": null,
|
| 30 |
+
"monteclora_config": null,
|
| 31 |
+
"peft_type": "LORA",
|
| 32 |
+
"peft_version": "0.21.3",
|
| 33 |
+
"qalora_group_size": 16,
|
| 34 |
+
"r": 8,
|
| 35 |
+
"rank_pattern": {},
|
| 36 |
+
"revision": null,
|
| 37 |
+
"target_modules": [
|
| 38 |
+
"output_patch_embedding.output_layer",
|
| 39 |
+
"self_attention.k",
|
| 40 |
+
"self_attention.o",
|
| 41 |
+
"self_attention.v",
|
| 42 |
+
"self_attention.q"
|
| 43 |
+
],
|
| 44 |
+
"target_parameters": null,
|
| 45 |
+
"task_type": null,
|
| 46 |
+
"trainable_token_indices": null,
|
| 47 |
+
"use_bdlora": null,
|
| 48 |
+
"use_dora": false,
|
| 49 |
+
"use_qalora": false,
|
| 50 |
+
"use_rslora": false,
|
| 51 |
+
"velora_config": null
|
| 52 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc49f5c669699e578b6c363f0e50df02e537b48e20241ad019a9e6318d4ee024
|
| 3 |
+
size 4854584
|