Views
No views yet
| File | Description |
|---|---|
best_backbone.pt | Backbone weights only (no pretraining heads) — use for fine-tuning |
best_pretrained.pt | Backbone + 4 frozen context heads (regime/vol/structure/range) — recommended for fine-tuning with context heads |
pip install git+https://github.com/johnamcruz/Futures-Foundation-Model.git1from huggingface_hub import hf_hub_download
2from futures_foundation import FFMConfig, FFMBackbone
3
4# Download weights
5path = hf_hub_download(repo_id="johnamcruz/futures-foundation-model", filename="best_pretrained.pt")
6
7config = FFMConfig()
8backbone = FFMBackbone(config)
9backbone.load_pretrained(path)
10
11embeddings = backbone(features_tensor) # (batch, 256)1from futures_foundation.finetune import StrategyLabeler, TrainingConfig, run_walk_forward
2
3class MyStrategyLabeler(StrategyLabeler):
4 @property
5 def name(self): return 'my_strategy'
6
7 @property
8 def feature_cols(self): return ['zone_height', 'entry_depth', 'risk_norm']
9
10 def run(self, df_raw, ffm_df, ticker):
11 features_df, labels_df = my_signal_logic(df_raw, ffm_df)
12 return features_df, labels_df| Head | Classes | Output |
|---|---|---|
| Regime | Trending Up / Trending Down / Rotational / Volatile | 4-dim softmax |
| Volatility | Low / Normal / Elevated / Extreme | 4-dim softmax |
| Structure | Bullish / Bearish | 2-dim softmax |
| Range Position | 5 quintiles | 5-dim softmax |