Instructions to use Smith42/astropt3-pre-alpha-2-160m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Smith42/astropt3-pre-alpha-2-160m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Smith42/astropt3-pre-alpha-2-160m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AstroPTv3 160M β pre-alpha-2 (step 19k)
β οΈ Pre-alpha release. This is a research snapshot, not a finished model. Weights, config format and loading code may change without notice, and nothing here has been benchmarked for downstream use.
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.
Checkpoint
| Backbone | 157.5M parameters: 25 layers, hidden size 768, 12 query / 4 KV heads, intermediate size 2048 |
| Total parameters | 395.4M, including the per-modality flows (221.3M), encoders, decoders and position embeddings |
| Modalities | 57: Legacy Survey North/South images, HSC images, DESI EDR and SDSS DR17 spectra, galaxies-with-hats RGB, and catalogue scalars (7 catalogues, min_catalogs=3) |
| Training | 19,000 steps (12.9 h on 4ΓH200), global batch 128 Γ 4096 tokens, 2.08B fresh non-padding tokens (8.26B 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 |
| Precision | bfloat16 safetensors |
| Code | UniverseTBD/astroPTv3 @ 9a72153 |
| Logs & samples | W&B run g8w1pab7 (includes 1kβ19k image and spectra samples) |
Usage
pip install "git+https://github.com/UniverseTBD/astroPTv3.git@9a72153b97a09d174faf17aca7f269b220c18273#subdirectory=astro"
import astropt3 # registers the AstroPT3 Auto classes
from transformers import AutoModel
model = AutoModel.from_pretrained("Smith42/astropt3-pre-alpha-2-160m")
Intermediate checkpoints
Every 1k steps of the same run is published as a branch: step1000, step2000, β¦ step19000.
main holds the same weights as step19000.
model = AutoModel.from_pretrained("Smith42/astropt3-pre-alpha-2-160m", revision="step10000")
The learning rate and pre-flow noise schedules are cosines 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
- Early in training (~0.12 epochs of eligible sky). The model saw 2.08B fresh non-padding tokens (~3.63M fresh object draws) across 19k steps.
- RGB cutouts (
galaxies) still show patch boundaries. Samples progress from noise at 1k steps to centred galaxy cores and colours by 16kβ19k steps, but patch edges remain visible (much fewer tokens than single-band Legacy cutouts). - Legacy Survey single-band draws (
legacy_south_{g,r,i,z}) are substantially cleaner than pre-alpha-1 (centred cores, halos and realistic sky noise), though scientific fidelity has not been benchmarked. - Spectra samples (
spectraDESI andsdss_spectra) still show occasional extreme single-bin outlier spikes at default sampling temperature (1.0). - No downstream evaluation yet. Held-out validation loss was tracked during training (
val/image_family_loss = -0.081,val/spectrum_family_loss = -0.878,val/scalar_family_loss = -2.61at step 19k) andgalaxiesloss remained stable throughout (unlike the 70M pre-alpha-1 bursts), but downstream tasks have not been evaluated.
Updates and community
AstroPT is an open-to-all UniverseTBD project. Join the UniverseTBD Discord for updates: https://discord.gg/MNEVegvfJq
- Downloads last month
- 50