Views
No views yet
| Device ID | Location |
|---|---|
| jcia01~07 | Shinan, Jindo, Wando, Goheung (Jeollanam-do) |
| mecs01~02 | Aquafarm monitoring stations |
| v2test02~05 | Test/development units |
| kunsan01 | Gunsan (West coast) |
1from transformers import TimesFm2_5ModelForPrediction
2from peft import PeftModel
3
4# Load base model
5base = TimesFm2_5ModelForPrediction.from_pretrained(
6 "google/timesfm-2.5-200m-transformers"
7)
8
9# Load LoRA adapter
10model = PeftModel.from_pretrained(base, "ODNus/timesfm-omnion-lora/lora-omnion")
11
12# Inference
13import torch
14import numpy as np
15
16# Prepare input (context of 128 time steps)
17context = np.random.randn(128).astype(np.float32)
18inputs = torch.tensor(context).unsqueeze(0)
19
20with torch.no_grad():
21 output = model(past_values=inputs)
22
23predictions = output.mean_predictions[0].numpy()
24print(f"Forecast shape: {predictions.shape}")Supabase Data → TimesFM 2.5 → LoRA Adapter → Bias Correction → Forecast Result