Model reference · open weights

NASA-IBM-Lunar-Foundation-Model

Embeddings nasa-ibm-ai4science Image embed 1 build Open weights 500 dl/mo

NASA-IBM-Lunar-Foundation-Model is an open-weight embedding model from nasa-ibm-ai4science. NASA-IBM-Lunar-Foundation-Model (BF16) weighs 12.8 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • NASA-IBM-Lunar-Foundation-Model is a multimodal, multi-resolution ViT-B encoder-decoder trained from scratch for lunar remote sensing.
  • It processes 11 modalities at two spatial scales, including LROC NAC and WAC imagery, to support tasks like detection, segmentation, and dense regression.
  • The model is released under the Apache-2.0 license.

Summary of the nasa-ibm-ai4science/NASA-IBM-Lunar-Foundation-Model model card, 2026-10-01

What it is

Released bynasa-ibm-ai4science
Released2026-09-01
VRAM12.8 GB for the weights

What it runs on

Memory and cards for NASA-IBM-Lunar-Foundation-Model (BF16)

12.8 GBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBdoes not fit11.6 GB
RTX 4060 Ti 16 GBtight15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What nasa-ibm-ai4science says about NASA-IBM-Lunar-Foundation-Model

Read the model card

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:

  1. Acquisition geometry as explicit context — per-tile illumination angles, solar-frame anchors, and tile footprint are sequence-tokenized encoder inputs. Lunar surface appearance is governed more by illumination geometry than by intrinsic surface variation, so this hands the model the dominant confound instead of making it recover a quantity already recorded for every tile.
  2. Joint mixed-resolution pretraining — NAC- and WAC-anchored tiles train in a single mixed-batch loop at native resolution, so one set of weights covers both resolution families across a 100× scale gap.

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).

Model at a glance

Encoder / decoderViT-B (768 dim, 12 layers, 12 heads) / 12-layer Transformer, shared width
Input size / patch size256 × 256 px / 16 × 16 at pretraining (FlexiViT-resizable; results below use ps8)
Modalities11 — 9 dense image-like, plus per-tile optical metadata and static-map context
ObjectiveCross-entropy over discrete token vocabularies at sampled target positions
Tokenizers9 modality-specific VQ-VAE, FSQ quantization (levels 8,8,8,6,5), DDPM decoder
Pretraining16 × H100, 150k steps, global batch 1,536, peak LR 1e-4 cosine, bf16, ~1.1k GPU-h
DataSomBench — 963,609 WAC + 1,000,113 NAC bundles, split geographically by LTM zone / LPS cap
Downstream adaptationTerraTorch
LicenseApache-2.0

Repository contents

backbone/         pretrained checkpoint and config to be used for finetuning/generation
tokenizers/       checkpoints and configs for all tokenizers

Intended use

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.

Modalities

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.

FamilyModalityKeyNative res.Ch.Source
WAC (51.2 km tiles)Visible reflectancevis100 m5LROC WAC
Ultraviolet reflectanceuv500 m2LROC WAC
Topography / slope / aspectdtm, slope, aspect60 m1 / 1 / 2SLDEM2015
NAC (512 m tiles)Panchromatic imagerynac1 m1LROC NAC
Topography / slope / aspectdtm_3m, slope_3m, aspect_3m3 m1 / 1 / 2NAC-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):

  • Optical metadata (8 fields) — solar incidence, emission, phase and azimuth angles; sub-solar and tile-center coordinates; ground sampling distance. Available at inference whenever the image is, so no label leakage.
  • Static-map context (28 fields, tile-footprint averages) — Diviner thermophysics (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).

Usage

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_pro

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms