File size: 3,078 Bytes
68a57f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d0b9bec
 
 
 
 
 
 
 
68a57f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d0b9bec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68a57f4
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
license: mit
library_name: pytorch
tags:
  - wireless
  - channel-modeling
  - foundation-model
  - deepmimo
---

# MultiPathFormer Foundation Checkpoint

This model card accompanies the released foundation checkpoint for:

**MultiPathFormer: A Foundation Model for Multipath Wireless Propagation**

Code release:

https://github.com/gblessed/MultiPathFormer

Hugging Face model repo:

https://huggingface.co/gblessed/multipathformer

## Model

- Architecture: first-step residual corridor-concat MultiPathFormer.
- Hidden dimension: 1024.
- Decoder layers: 12.
- Attention heads: 8.
- Prefix tokens: 4.
- Maximum generated paths: 25.
- Outputs: delay, scaled power, phase, AoA azimuth/elevation, AoD azimuth/elevation, and interaction labels.

## Training Data

The checkpoint was trained on 27 DeepMIMO ray-tracing scenarios listed in `configs/foundation_27scenarios.yaml`.

## Intended Use

The model is intended for research on geometry-aware wireless propagation modeling and downstream task reuse. It should be used with the preprocessing artifacts released alongside the checkpoint.

## Quick Inference Example

Install the code release and dependencies:

```bash
git clone https://github.com/gblessed/MultiPathFormer.git
cd MultiPathFormer
python -m pip install -r requirements.txt
```

Run inference from an already constructed augmented prompt and first-step baseline:

```python
import json
from pathlib import Path

import numpy as np
from huggingface_hub import hf_hub_download

from multipathformer.inference import MultiPathFormerPredictor, prediction_to_rows

repo_id = "gblessed/multipathformer"
checkpoint = hf_hub_download(
    repo_id=repo_id,
    filename="first_step_residual_corridor_concat_27scenarios_44710a4a_best_model_checkpoint.pth",
)
artifacts = hf_hub_download(repo_id=repo_id, filename="preprocessing_artifacts.json")

augmented_prompt = np.asarray(
    json.loads(Path("examples/augmented_prompt.json").read_text()),
    dtype=np.float32,
)
first_step_baseline = np.asarray(
    json.loads(Path("examples/first_step_baseline.json").read_text()),
    dtype=np.float32,
)

predictor = MultiPathFormerPredictor(checkpoint, artifacts_path=artifacts)
prediction = predictor.predict_from_augmented_prompt(
    augmented_prompt,
    first_step_baseline,
    max_steps=25,
)

for row in prediction_to_rows(prediction)[:5]:
    print(row)
```

The augmented prompt follows the released corridor-concat recipe: TX/RX position, first-step delay/power baseline, first-step standard deviation, and scene/corridor descriptors. The helper script `inference_example.py` in this model repo contains the same flow.

## Limitations

The checkpoint is trained on simulated ray-tracing data. It has not yet been validated as a standalone replacement for real-world measurement campaigns. Phase-accurate channel synthesis is especially sensitive and should be evaluated carefully for each use case.

## Files

- `first_step_residual_corridor_concat_27scenarios_44710a4a_best_model_checkpoint.pth`
- `preprocessing_artifacts.json`
- Optional: `model.safetensors`