Instructions to use Smith42/astropt3-pre-alpha-1-70m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Smith42/astropt3-pre-alpha-1-70m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Smith42/astropt3-pre-alpha-1-70m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AstroPTv3 70M β pre-alpha-1 (step 80k)
β οΈ 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 | 69.4M parameters: 23 layers, hidden size 512, 8 query / 2 KV heads |
| Total parameters | 192M, including the per-modality flows and heads |
| Modalities | 59: Legacy Survey North/South images, HSC images, DESI and SDSS spectra, galaxies-with-hats RGB, GZ10, and catalogue scalars |
| Training | 80,000 steps, global batch 32 Γ 4096 tokens, about 2.1B fresh non-padding tokens (10.5B with padding and 4Γ echo) |
| Optimiser | LR 1e-3, 2k-step warmup, cosine to 1e-4, seed 42 |
| Precision | bfloat16 safetensors |
| Code | Smith42/AstroPTv3 @ b627214 |
Usage
pip install "git+https://github.com/Smith42/AstroPTv3.git@b627214fb1ed069be8f72b6d46c1d665be531e58#subdirectory=astro"
import astropt3 # registers the AstroPT3 Auto classes
from transformers import AutoModel
model = AutoModel.from_pretrained("Smith42/astropt3-pre-alpha-1-70m")
Intermediate checkpoints
Every 10k steps of the same run is published as a branch: step10000, step20000, β¦ step80000.
main is the same as step80000.
model = AutoModel.from_pretrained("Smith42/astropt3-pre-alpha-1-70m", revision="step40000")
The learning rate and pre-flow noise schedules are cosines over the full 80k 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
- RGB modalities are weak.
galaxies(galaxies-with-hats RGB) draws were still patch-coloured noise at 74k steps. - Legacy South image draws only began to look like galaxies late in training, at around 74k steps. They are compact and centred but too small, and some show hard patch edges.
- Spectra samples have a roughly correct continuum level, with spurious spikes and no lines at the right redshift.
- Conditional generation is not validated. No held-out evaluation has been run on this checkpoint.
- Unstable
galaxiesloss. During training this loss switched in bursts between about β1 and about β950 nats per patch. A learning rate that is too high for this size is the leading suspect.
Updates and community
AstroPT is an open-to-all UniverseTBD project. Join the UniverseTBD Discord for updates: https://discord.gg/MNEVegvfJq
- Downloads last month
- 116