This repository contains the weights and configuration for the Geodesic State Space Model (G-SSM) specialized for XOR logic.
To run inference locally, you need the GFN Framework installed.
pip install gfngit lfs install
git clone https://huggingface.co/DepthMuun/gfn-gssm-xor-parity
cd gfn-gssm-xor-parityUse the included inference.py script for an interactive test:
python inference.pyAs shown in the audited inference.py, the official way to load G-SSM models is:
import torch
from gfn import gssm
# Load model (automatically handles config.json in the same dir)
model = gssm.load("xor_best_model.bin", device="cpu")
model.eval()
# Inference
bits = torch.randint(0, 2, (1, 1000000))
with torch.no_grad():
logits, state, info = model(bits)
# Geometrical decoding logic is detailed in inference.pyIf you use this work, please cite:
@article{sturtz2026geometry,
title={Geometric Flow Networks: A Physics-Informed Paradigm for Sequential Intelligence},
author={Stürtz, Joaquín},
journal={Zenodo Preprints},
year={2026},
doi={10.5281/zenodo.19141133},
url={https://doi.org/10.5281/zenodo.19141133}
}