Update README.md

#1
by Emaad - opened
Files changed (1) hide show
  1. README.md +36 -4
README.md CHANGED
@@ -11,6 +11,35 @@ tags:
11
  - pytorch_model_hub_mixin
12
  license: apache-2.0
13
  pipeline_tag: time-series-forecasting
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
  # Toto-2.0-4m
16
 
@@ -51,19 +80,22 @@ pip install "toto-2 @ git+https://github.com/DataDog/toto.git#subdirectory=toto2
51
  import torch
52
  from toto2 import Toto2Model
53
 
54
- model = Toto2Model.from_pretrained("Datadog/Toto-2.0-4m")
55
- model = model.to("cuda").eval()
 
56
 
57
  # (batch, n_variates, time_steps)
58
- target = torch.randn(1, 1, 512, device="cuda")
59
  target_mask = torch.ones_like(target, dtype=torch.bool)
60
- series_ids = torch.zeros(1, 1, dtype=torch.long, device="cuda")
61
 
62
  # Returns quantiles of shape (9, batch, n_variates, horizon)
63
  # Quantile levels: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
64
  quantiles = model.forecast(
65
  {"target": target, "target_mask": target_mask, "series_ids": series_ids},
66
  horizon=96,
 
 
67
  )
68
  ```
69
 
 
11
  - pytorch_model_hub_mixin
12
  license: apache-2.0
13
  pipeline_tag: time-series-forecasting
14
+ thumbnail:
15
+ results:
16
+ - task: time-series-forecasting
17
+ dataset:
18
+ name: GIFT-Eval
19
+ metrics:
20
+ - name: MASE
21
+ type: mase
22
+ value: 0.757
23
+ - name: CRPS
24
+ type: brier_score
25
+ value: 0.524
26
+ source:
27
+ name: GIFT-Eval Time Series Forecasting Leaderboard
28
+ url: https://huggingface.co/spaces/Salesforce/GIFT-Eval
29
+
30
+ - task: time-series-forecasting
31
+ dataset:
32
+ name: BOOM
33
+ metrics:
34
+ - name: MASE
35
+ type: mase
36
+ value: 0.624
37
+ - name: CRPS
38
+ type: brier_score
39
+ value: 0.717
40
+ source:
41
+ name: BOOM 💥 Observability Time-Series Forecasting Leaderboard
42
+ url: https://huggingface.co/spaces/Datadog/BOOM
43
  ---
44
  # Toto-2.0-4m
45
 
 
80
  import torch
81
  from toto2 import Toto2Model
82
 
83
+ model = Toto2Model.from_pretrained("Datadog/Toto-2.0-22m")
84
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
85
+ model = model.to(device).eval()
86
 
87
  # (batch, n_variates, time_steps)
88
+ target = torch.randn(1, 1, 512, device=device)
89
  target_mask = torch.ones_like(target, dtype=torch.bool)
90
+ series_ids = torch.zeros(1, 1, dtype=torch.long, device=device)
91
 
92
  # Returns quantiles of shape (9, batch, n_variates, horizon)
93
  # Quantile levels: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
94
  quantiles = model.forecast(
95
  {"target": target, "target_mask": target_mask, "series_ids": series_ids},
96
  horizon=96,
97
+ decode_block_size=768,
98
+ has_missing_values=False,
99
  )
100
  ```
101