Views
No views yet
gnai-creator)
License: Apache-2.0model_infer.onnx – Inference model (optimized)noesis.pt – PyTorch checkpoint (training artifact)inference.py – Custom ONNX handler[1, D]1from huggingface_hub import hf_hub_download
2import onnxruntime as ort
3import numpy as np
4
5# Download ONNX model
6onnx_path = hf_hub_download(
7 repo_id="gnai-creator/noesis-decoder",
8 filename="model_infer.onnx",
9 repo_type="model"
10)
11
12# Load runtime
13sess = ort.InferenceSession(onnx_path, providers=["CPUExecutionProvider"])
14input_name = sess.get_inputs()[0].name
15output_name = sess.get_outputs()[0].name
16
17# Example symbolic vector ψₛ
18x = np.random.randn(1, 300).astype("float32")
19
20# Run inference
21y = sess.run([output_name], {input_name: x})[0]
22print("Output shape:", y.shape)| Metric | Value | Description |
|---|---|---|
| Cosine(Q) | 0.83 | Symbolic alignment measure |
| Perplexity | 2.41 | Statistical readability proxy |
| Latency (CPU) | ~28 ms/token | Inference on Intel Sapphire Rapids (1vCPU) |
Custom engine and the included inference.py handler.“Truth is not imposed; it emerges from alignment.” — Felipe M. Muniz (2025)