hemanthramgk commited on
Commit
1d08c84
·
verified ·
1 Parent(s): 71462b5

Stage submitted CoCo LoRA adapter and model card

Browse files
Files changed (3) hide show
  1. README.md +59 -0
  2. adapter_config.json +47 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: amazon/chronos-2
3
+ base_model_relation: adapter
4
+ library_name: peft
5
+ pipeline_tag: time-series-forecasting
6
+ tags:
7
+ - lora
8
+ - chronos
9
+ - time-series
10
+ - forecasting
11
+ - multimodal
12
+ - coco
13
+ ---
14
+
15
+ # CoCo: Chronos2 LoRA adapter
16
+
17
+ The multivariate time-series forecasting component of **TSFM Meets LLM: Context as Covariates (CoCo)**, shared by SWARM-Lab. This repository contains the adapter from the paper's submitted supplementary package, not the base model weights.
18
+
19
+ This adapter teaches Chronos2 to use an LLM's forecast and confidence covariates together with numerical history. Its companion LLM adapter is [SWARM-Lab/CoCo-Qwen3-4B-LoRA](https://huggingface.co/SWARM-Lab/CoCo-Qwen3-4B-LoRA).
20
+
21
+ ## Checkpoint
22
+
23
+ - Base model: `amazon/chronos-2`.
24
+ - PEFT LoRA rank: 8; alpha: 16; dropout: 0.
25
+ - Target modules: `self_attention.q`, `self_attention.k`, `self_attention.v`, `self_attention.o`, `output_patch_embedding.output_layer`.
26
+ - Adapter file: 4,854,584 bytes.
27
+ - Adapter SHA-256: `e2ff6bcf5e35ad9d7e9199481ece4f095c53754423d7f925613e12138638f39c`.
28
+ - Adapter configuration records PEFT 0.18.1.
29
+ - Exact historical base-model revision was not recorded in the submitted adapter configuration; it remains to be established.
30
+
31
+ ## Loading the component
32
+
33
+ ```python
34
+ import torch
35
+ from chronos.chronos2 import Chronos2Model, Chronos2Pipeline
36
+ from peft import PeftModel
37
+
38
+ base = Chronos2Model.from_pretrained(
39
+ "amazon/chronos-2", torch_dtype=torch.bfloat16, device_map="cuda"
40
+ )
41
+ model = PeftModel.from_pretrained(base, "SWARM-Lab/CoCo-Chronos2-LoRA")
42
+ model = model.merge_and_unload()
43
+ model.eval()
44
+ pipeline = Chronos2Pipeline(model)
45
+ ```
46
+
47
+ Merging happens in memory; this repository stores only the LoRA adapter. This follows the submitted loader, but the remote-loading example has not yet been GPU-tested as part of the release.
48
+
49
+ Use the paper's covariate construction rather than supplying arbitrary text embeddings: the forecast channel is shifted, numerical history is normalized using history-only statistics, and raw rollout variance is divided by squared history standard deviation (with the implementation's numerical stabilizer). The submitted implementation uses history noise standard deviation 0.05. A unified public CoCo inference package is being prepared.
50
+
51
+ The submitted environment pins `chronos-forecasting==2.1.0`, `peft==0.18.1`, and `torch==2.9.0`.
52
+
53
+ ## Training and intended use
54
+
55
+ The paper describes second-stage LoRA adaptation on pre-generated LLM forecast and confidence covariates. Intended use is research on text-aided time-series forecasting. The confidence covariate is a rollout-variance signal, not a calibrated probability of correctness.
56
+
57
+ ## Licensing status
58
+
59
+ The base Chronos2 checkpoint is distributed under Apache-2.0 by its publisher. **A license for this adapter has not yet been assigned.** Do not interpret the base-model license as a separate license grant for these adapter weights. Training-data licensing is under review. This card does not grant unrestricted commercial-use rights.
adapter_config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 16,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.0,
25
+ "megatron_config": null,
26
+ "megatron_core": "megatron.core",
27
+ "modules_to_save": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.18.1",
30
+ "qalora_group_size": 16,
31
+ "r": 8,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "output_patch_embedding.output_layer",
36
+ "self_attention.o",
37
+ "self_attention.k",
38
+ "self_attention.v",
39
+ "self_attention.q"
40
+ ],
41
+ "target_parameters": null,
42
+ "task_type": null,
43
+ "trainable_token_indices": null,
44
+ "use_dora": false,
45
+ "use_qalora": false,
46
+ "use_rslora": false
47
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2ff6bcf5e35ad9d7e9199481ece4f095c53754423d7f925613e12138638f39c
3
+ size 4854584