Model reference · open weights
NASA-IBM-Lunar-Foundation-Model is an open-weight embedding model from nasa-ibm-ai4science. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | nasa-ibm-ai4science |
|---|---|
| Type | Embedding models |
| Task | Image embed |
| Runs with | terratorch |
| Released | 2026-09-01 |
| Popularity | 500 downloads / month |
| Licence | Open weights |
About
A multimodal, multi-resolution foundation model for lunar remote sensing.
A ViT-B encoder–decoder trained from scratch on SomBench — ~2 million co-registered lunar tile bundles spanning 11 modalities at two spatial scales (LROC NAC ~1 m/px and LROC WAC ~100 m/px). It adapts the TerraMind masked-token recipe to the Moon with two extensions:
FlexiViT patch embedding lets the checkpoint be fine-tuned at other patch sizes without retraining the backbone; modality-wise tokenization lets you drop or add modalities at fine-tuning time.
📄 Full method, ablations, and per-baseline results: paper · 💻 Fine-tuning code: GitHub
Modality-wise tokenization (left/center-left) feeds a TerraMind-style any-to-any masked-token objective (center-right); the pretrained encoder then supports multimodal generation, multimodal fine-tuning, and FlexiViT fine-tuning at new patch sizes (right).
| Encoder / decoder | ViT-B (768 dim, 12 layers, 12 heads) / 12-layer Transformer, shared width |
| Input size / patch size | 256 × 256 px / 16 × 16 at pretraining (FlexiViT-resizable; results below use ps8) |
| Modalities | 11 — 9 dense image-like, plus per-tile optical metadata and static-map context |
| Objective | Cross-entropy over discrete token vocabularies at sampled target positions |
| Tokenizers | 9 modality-specific VQ-VAE, FSQ quantization (levels 8,8,8,6,5), DDPM decoder |
| Pretraining | 16 × H100, 150k steps, global batch 1,536, peak LR 1e-4 cosine, bf16, ~1.1k GPU-h |
| Data | SomBench — 963,609 WAC + 1,000,113 NAC bundles, split geographically by LTM zone / LPS cap |
| Downstream adaptation | TerraTorch |
| License | Apache-2.0 |
backbone/ pretrained checkpoint and config to be used for finetuning/generation
tokenizers/ checkpoints and configs for all tokenizers
A reusable representation for lunar remote sensing: fine-tune or LoRA-adapt the encoder for detection, segmentation, and dense regression on LROC WAC/NAC imagery and co-registered terrain products, with modality subsets and patch grids that differ from pretraining. Any-to-any multimodal generation is supported as a qualitative probe of learned cross-modal structure.
Out of scope. Not a scientific-grade generative product — generated fields are not calibrated predictions and are no substitute for instruments, stereo photogrammetry, or geodetic solutions. The model maintains no geodetic reference frame: it recovers local structure but not absolute values (DTM shape is right at a shifted elevation offset; generated lat/lon can be off by tens of degrees). Not validated for operational decisions such as landing-site certification or hazard clearance. Ice-prospectivity outputs regress a knowledge-driven fuzzy-overlay prospectivity map, not measured ice. Not evaluated beyond the Moon or on products absent from SomBench.
Dense modalities are patch-embedded and tokenized as images. A sample is either NAC- or WAC-centered — the two families are never mixed within a sample.
| Family | Modality | Key | Native res. | Ch. | Source |
|---|---|---|---|---|---|
| WAC (51.2 km tiles) | Visible reflectance | vis | 100 m | 5 | LROC WAC |
| Ultraviolet reflectance | uv | 500 m | 2 | LROC WAC | |
| Topography / slope / aspect | dtm, slope, aspect | 60 m | 1 / 1 / 2 | SLDEM2015 | |
| NAC (512 m tiles) | Panchromatic imagery | nac | 1 m | 1 | LROC NAC |
| Topography / slope / aspect | dtm_3m, slope_3m, aspect_3m | 3 m | 1 / 1 / 2 | NAC-stereo DTM |
Aspect is stored as a sine–cosine pair to avoid angular wrap-around.
Two sequence-like modalities carry scalar context, binned and stringified before text tokenization (e.g. with
0.25° longitude bins, a tile-center longitude of 87.49° becomes C_LON=87.25-->87.50):
TREG, TBOL,
ROCK_ABUND, HPAR, DICE), LOLA products (ROUGHNESS, PSR, AVG_ILLUM, ALBEDO), Mini-RF radar
(MINIRF_*), Kaguya mineralogy (MI_*, SW_FE, SP_MINER), LROC WAC (nr643, TIO2, WAC_*), GRAIL
(GRAVITY), and Lunar Prospector (HYDROGEN). Coverage varies by instrument footprint, from near-global to
polar-only (~6,900 polar tiles per track).Fine-tuning runs through TerraTorch, configured from YAML. The companion repo adds the SomBench benchmark datamodules, backbone wrappers, support for registering new input modalities into the pretrained backbone, and FlexiViT patch-embedding interpolation.
git clone https://github.com/NASA-IMPACT/NASA-IBM-Lunar-Foundation-Model && cd $_
pip install -e .
terratorch fit --config configs/finetune/ice_proFrom the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys nasa-ibm-lunar-foundation-model for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (nasa-ibm-lunar-foundation-model below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"nasa-ibm-lunar-foundation-model","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.