Instructions to use Smith42/astroPT3-alpha-1-10m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Smith42/astroPT3-alpha-1-10m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Smith42/astroPT3-alpha-1-10m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AstroPTv3 10M β alpha-1 (step 19k)
β οΈ Alpha release. This is an early research release, not a finished production model. Weights, config format and loading code may still change, and downstream scientific tasks have not yet been benchmarked.
AstroPTv3 is a multimodal "large observation model" for astronomy: a decoder-only transformer backbone trained autoregressively over interleaved images, spectra and scalar catalogue values of the same object. Continuous tokens are modelled with per-modality normalising flows and Gaussian-mixture heads.
This is the 10M scaling sibling of Smith42/astroPT3-alpha-1-160m,
trained on the identical code commit, 57-modality data recipe (DESI DR1 spectra, 1:4 Legacy North:South anchor draw
weight, unified 4Γ4Γ3 96Γ96 galaxies-with-hats RGB with pre_flow_noise_max=0.20), 19k-step schedule, seed, and
256-object validation panel, with a smaller 10M transformer backbone and jetformer_flow_hidden=64 per-modality flows.
Checkpoint
| Backbone | 9.1M parameters (9,115,904): 12 layers, hidden size 256, 4 query / 1 KV heads, intermediate size 768 |
| Total parameters | 38.1M (38,093,952), including the per-modality flows (25.9M, hidden 64, depth 4, 8 steps, 8 heads), encoders, decoders and position embeddings (3.1M) |
| Modalities | 57: Legacy Survey North/South images (8Γ8 patches on 96Γ96, 1:4 anchor draw weight), HSC images (8Γ8 on 96Γ96), DESI DR1 and SDSS DR17 spectra (64-bin patches), galaxies-with-hats RGB (4Γ4Γ3 patches on 96Γ96, pre_flow_noise_max=0.20), and catalogue scalars (7 catalogues, min_catalogs=3) |
| Training | 19,000 steps (9.4 h on 4ΓH200), global batch 128 Γ 4096 tokens, 2.00B fresh non-padding tokens (~3.48M fresh object draws; 7.93B non-padding with 4Γ echo; 9.96B raw with padding) |
| Optimiser | AdamW (Ξ²β=0.9, Ξ²β=0.95, wd=0.1), LR 3e-4, 2k-step warmup, cosine to 3e-5, seed 42, pre_flow_noise_max=0.20 on galaxies RGB (0 elsewhere), latent noise 0.1 β 0.0 |
| Precision | bfloat16 safetensors |
| Code | UniverseTBD/astroPTv3 @ a9b44e3 |
| Logs | W&B run 94w5beaz |
| Sibling model | Smith42/astroPT3-alpha-1-160m (matched 160M scaling run) |
Usage
pip install "git+https://github.com/UniverseTBD/astroPTv3.git@a9b44e3716fda47ec99074f574385e802fa4e9fe#subdirectory=astro"
import astropt3 # registers the AstroPT3 Auto classes
from transformers import AutoModel
model = AutoModel.from_pretrained("Smith42/astroPT3-alpha-1-10m")
Intermediate checkpoints
All 29 Pythia-schedule checkpoints of the run are published as branches: early log-spaced steps step1, step2,
step4, step8, step16, step32, step64, step128, step256, step512, and every 1k steps step1000,
step2000, β¦ step19000. main holds the same weights as step19000.
model = AutoModel.from_pretrained("Smith42/astroPT3-alpha-1-10m", revision="step10000")
The learning rate and latent-noise schedules run over the full 19k steps. Earlier checkpoints are therefore mid-schedule snapshots, not shorter converged runs.
Sampling
To sample, download a local copy (huggingface_hub.snapshot_download) and pass that directory to
astro/scripts/generate.py --checkpoint <dir> in the code repository.
Known limitations
- Small capacity & early in training. The model has a 9.1M backbone (38.1M total with flows) and saw 2.00B fresh non-padding tokens (~3.48M fresh object draws) across 19k steps.
- Step-19k held-out validation snapshot (shared 256-object DESI DR1 panel; contains no HSC objects):
val/image_family_loss:-0.144nats/dim (val/galaxies_loss:-66.50per 48-dim token, or-1.385nats/dim)val/spectrum_family_loss:-0.617nats/dim (val/spectra_loss:-36.13DESI DR1,val/sdss_spectra_loss:-53.11)val/scalar_family_loss:+2.740(pulled up by an outlier inval/legacy_south_ebv_loss = +38.22; final trainingscalar_family_loss = -2.76,val/photometry_loss = -3.63,val/gwh_redshift_loss = -2.78)
- Scaling vs. 160M sibling. On the identical validation panel, this 10M model trails
Smith42/astroPT3-alpha-1-160macross all three modality families (val/image_family_loss:-0.144vs-0.198;val/spectrum_family_loss:-0.617vs-0.658;val/scalar_family_loss:+2.740vs-0.844), as expected for a 10Γ smaller scaling point. - No downstream evaluation yet. Downstream scientific tasks have not been benchmarked.
Updates and community
AstroPT is an open-to-all UniverseTBD project. Join the UniverseTBD Discord for updates: https://discord.gg/MNEVegvfJq
- Downloads last month
- -