Request PhaseWeave model weights
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Hugging Face shares your account username and email with the owner for access review and licensing correspondence. Review the terms on this card before submitting.
Log in or Sign Up to review the conditions and access this model content.
PhaseWeave FX forecasting models
Model and data
PhaseWeave predicts two directional quote margins one second ahead from 16 seconds of a directed three-asset market graph. Each frame carries six directed quote edges, transformed log rates in bps, quote-age channels and availability masks. A pinned ToricGT tokenizer supplies edge endpoint and torus features. Two spatial and two temporal attention blocks process each window. A two-output residual readout adds its estimate to the currently observed loop margins.
All training windows come from real bid/ask records. The frozen HistData manifest covers 30 source archives, 10 pairs and 294,912 labeled windows. August trains, early September validates, late September stresses the models, and October supplies the chronological and unseen-CHF reports.
The width transfer campaign tunes three master learning rates, two readout scales and two attention scales across two seeds. It selects hyperparameters by mean validation MAE across the seed pair. Transfers hold the selected configuration fixed while changing width. Both transfers use seed 20261120. Data and training
Published weights
| File | Parameters | Measured training CUDA peak | Best use |
|---|---|---|---|
proxy-11.safetensors |
2,019,234 | 433 MiB | CPU or modest CUDA GPU. First validation-selected seed. |
proxy-12.safetensors |
2,019,234 | 433 MiB | Second seed for a reproducibility comparison. |
transfer-448.safetensors |
10,078,242 | 806 MiB | Intermediate transfer. Start CPU or a consumer CUDA GPU. |
transfer-832.safetensors |
34,691,106 | 1,568 MiB | Larger transfer tested on the RTX 4090. |
Peak allocated values are PyTorch readings from the short campaign with batch size 64 and its particular input/history length. They do not include other processes, CUDA context, driver allocation or arbitrary longer contexts.
The Hugging Face model card is public. Weight downloads require a Hugging Face access request, agreement to the access terms, and approval by the owner. The exported tensors match their training checkpoints exactly. The metadata embeds configuration, the checkpoint step or epoch, and the frozen data manifest hash.
Run from the Hub
Use Python 3.11+, the research requirements, and the pinned source bundled with PhaseWeave. The experiment used PyTorch 2.8.0+cu128, BF16 on CUDA and float32 inference. Reconstruct the frozen data locally from the provider with the training recipe. The approved Hub download includes portable graph and Parquet inference.
hf download AmelieSchreiber/PhaseWeave-FX-Pilot proxy-12.safetensors \
--revision 97b63ce9e56e77cf4c2b482ba94068fa5c114e3a \
--local-dir artifacts/hf-weights
PYTHONDONTWRITEBYTECODE=1 python3 research/forecast.py infer \
--dataset data/margin-window-reproduction \
--checkpoint artifacts/hf-weights/proxy-12.safetensors \
--split validation --row 0 --device cpu
For an NVIDIA GPU, select --device cuda. Replace the filename with
transfer-448.safetensors or transfer-832.safetensors to run a larger
checkpoint. The evaluation command is research/forecast.py eval with the
same arguments and without --row. CPU omits CUDA kernels and uses the
same checkpoint/configuration logic.
With authorized access to the existing Parquet files, run the same observed row directly without rebuilding from raw archives.
python3 research/infer_parquet.py --dataset artifacts/fx-parquet \
--checkpoint artifacts/hf-weights/proxy-12.safetensors \
--split new_asset --row 0 --device cpu
The model repository also publishes the finished runs' per-epoch
inference weights with SHA-256 manifests under convergence/. Select an
epoch by path, or use the validation-selected epoch listed in each width's
summary.json. The separately hosted dataset card
describes the provider data and split boundaries.
| Full-pass width | Parameters | Selected / final epoch | October MAE | CHF MAE | Stress MAE |
|---|---|---|---|---|---|
| 200 | 2,020,265 | 22 / 23 | 0.15583 | 0.17582 | 0.15955 |
| 448 | 10,080,513 | 17 / 18 | 0.15631 | 0.17713 | 0.15975 |
| 832 | 34,695,297 | 20 / 21 | 0.15596 | 0.17691 | 0.15930 |
The six inside-circuit checkpoints in ablations/ compare coherent
amplitudes, dephased probability sums and max-plus path scores. The
separate matched outer-attention study evaluates classical, frozen-qutrit
and trainable-qutrit patches. Use the interactive scores
to switch among splits and training exposure.
Observed comparison
| Model | October MAE | CHF MAE | September stress MAE |
|---|---|---|---|
| Persistence | 0.20767 | 0.22015 | 0.20701 |
| Proxy 11 | 0.20737 | 0.22024 | 0.20681 |
| Proxy 12 | 0.17709 | 0.20184 | 0.18038 |
| 10.08M transfer | 0.20770 | 0.21855 | 0.20675 |
| 34.69M transfer | 0.20747 | 0.21928 | 0.20669 |
The observed differences are seed-dependent. The wider models do not reproduce the stronger second proxy seed's gain at this step budget. The held-out targets are indicative post-fee bid/ask cycle scores. They do not contain filled orders, realized execution timing, depth for the FX sample, or realized profit. Separate workbench tools expose the evidence and reference route audit. Interactive experiment results
Hugging Face access terms
These terms apply to requests for the PhaseWeave models and benchmark catalog. Hugging Face shares the account username and email address with the repository owner when a request is submitted. Provide a short intended use so the owner can review the request. The contact details are requested for access review and licensing correspondence.
Access to the PhaseWeave model weights is governed by the PolyForm Noncommercial License 1.0.0. Commercial use requires a separate written agreement with Amelie Schreiber. To discuss terms, contact the owner through the Hugging Face profile or GitHub profile.
The benchmark catalog documents third-party market observations. Access to the catalog conveys no license to obtain, reuse, or redistribute the provider's market records. Follow the provider's terms for source data.
The model cards state the measurement scope. Quote-margin forecasts are research outputs. They do not represent filled orders or realized returns.
Paired FX reference-context checkpoints
The matched reference comparison trained two width-200, 2,150,866 parameter models for 16 full epochs on the same frozen FX graph windows. Both receive Gate trade, FOMC and GDELT context. One also receives BIS turnover, SDR basket and New York Fed reference inputs.
October MAE was 0.155883 log basis points with the extra reference inputs and 0.156397 with the matched control. The paired intervals for September stress and unseen CHF include zero. See the full epoch sequence, fixed-checkpoint source masks and holdout results. Interactive results
The 32 epoch weights, detailed model card and inference source bundle
are available to approved downloaders in
joint-reference/v2. The bundle
uses locally acquired historical inputs with the pinned source digests.
Dataset provenance catalog
Width and data scaling
The RTX 4090 scaling study trained six arms at 2.02M, 10.08M and 34.70M parameters. Each width compared 65,536 with 131,072 distinct August FX windows at matched presentation counts. October error rose slightly for the expansion at every width. September stress error decreased at every width. The paired intervals use UTC-day resampling from a single initialization per arm.
The bundle contains 27 verified SafeTensors epoch weights, a checksum roster, model configuration and validation selection for each arm. Versioned weights and detailed card 路 Measured scaling curves and W&B histories
Five-horizon FX forecasts
The four arms forecast both directed quote margins at 1, 5, 15, 60, and 300 seconds. The release contains all 21 epoch weights, covering a 29,338-parameter MPNN, 2+2 and 4+4 TokenGT backbones, and a trained fine-to-coarse torus branch. Every fit selected its final allowed epoch. Reference scores are historical quote-margin MAEs. The intended inputs are 16 frames, six directed edges and three observation channels. Checkpoint files at verified revision 路 Measures and cohort counts 路 Native forward traces