Astro Emulators Toolkit
JAX + Flax NNX tools for training, validating, packaging, sharing, and using astrophysical emulators.
Status: This package is under active development and currently being tested with collaborators. It is pre-1.0, so APIs and bundle metadata may still change. Please open an issue or contact me if you try it and something does not work.
The project is built around a narrow stable surface and explicit contracts. The goal is not only to fit emulators, but to make them usable by other astronomers in downstream inference code without requiring them to reverse-engineer training details. In practice that means:
- a small high-level facade (
Emulator) for loading, training, inference, and bundle export; - canonical dict-tree inputs and outputs instead of model-family-specific calling conventions;
- explicit preprocessing and domain metadata instead of hidden transforms;
- portable bundles as the artifact that another astronomer should receive, inspect, validate, and load.
This README is the main user documentation for the current pre-1.0 phase. The package API is intentionally small, but on-disk bundle details may still evolve before 1.0.
What this toolkit is for
Use this toolkit when you need one or more of the following:
- load a trained emulator and call it inside your custom inference pipeline;
- train a new emulator on your data;
- publish a trained emulator with explicit metadata about inputs, outputs, scaling, valid domain, provenance, and release checks;
- develop new emulator architectures while keeping the user-facing inference surface simple.
Current stable examples focus on flux spectra, intensity spectra, and isochrone-like tabular regression.
Design philosophy
1. One public facade
The central public object is Emulator. It provides the main supported workflows:
Emulator.from_bundle(...)/Emulator.from_pretrained(...)for loading a shared artifact;Emulator.from_config(...)for building from a config;fit(...)for training;predict(...)for host-side inference returning NumPy arrays;apply_jax(...)andmake_frozen_apply(...)for JAX-side inference;save_bundle(...)for exporting a portable artifact.
2. Explicit contracts
The toolkit does not hide physical-to-training-space preprocessing. If an emulator uses scaled inputs or outputs and the author explicitly records those transforms, the bundle can store reference_scaling_inputs and reference_scaling_outputs, but the caller still applies normalization or denormalization explicitly with normalize_tree(...) and denormalize_tree(...). If either block is absent, the bundle is not claiming that the corresponding transform was documented. Likewise, input_domain records intended-use bounds, but the user remains responsible for checking whether proposed inputs are scientifically appropriate.
3. Composition over framework lock-in
Stable inference is one predictive mapping. The library does not try to own every downstream inversion or sampling workflow. Instead, it gives you a callable that can be inserted into your own JAX likelihood code.
4. Shared artifacts should be inspectable
A bundle is the artifact you share with collaborators: weights, config, effective I/O spec, metadata, provenance, integrity information, and optional release fingerprint checks. The point is portability and responsible reuse, not just serialization.
Who should start where
If you received a trained emulator from somebody else, start with:
- Installation
- Load a shared bundle and predict
- Inspecting bundle metadata at runtime
- Using the same emulator inside JAX inference code
If you are training your own emulator, start with:
- Installation
- Main public components
- Training a new emulator
- Recording the scientific contract of the emulator
- Preparing a release bundle for collaborators
- Publishing a bundle on the Hugging Face Hub
If you are extending the library, also read:
- Configuration model
- Stable model families and tasks
- Data flow
- Bundle structure and semantics
AGENTS.md
For contributors and coding agents, repository guidance lives in AGENTS.md.
Installation
Python >=3.11 is required.
Published-package usage with pip:
pip install astro-emulators-toolkit
Optional extras:
pip install "astro-emulators-toolkit[blackjax]" # BlackJAX examples/integration
pip install "astro-emulators-toolkit[viz]" # plotting snippets/examples
The same packages can be added with uv:
uv add astro-emulators-toolkit
uv add "astro-emulators-toolkit[blackjax]"
uv add "astro-emulators-toolkit[viz]"
Base installation already includes local bundle loading, Hugging Face bundle download, training, bundle export, safetensors serialization, JSON/YAML config I/O, and the stable model/task/runtime surface.
On the Hugging Face Hub, Emulator itself only downloads (Emulator.from_pretrained(...)). Publishing a bundle is a separate, explicit step with the aemu command installed with the package; see Publishing a bundle on the Hugging Face Hub.
Main public components
These are the components most users need to know.
astro_emulators_toolkit.Emulator
High-level facade for:
- loading a bundle from disk with
from_bundle(...); - downloading and loading a bundle from Hugging Face with
from_pretrained(...); - building from config with
from_config(...); - optional explicit initialization with
initialize(...); - host-side inference with
predict(...); - JAX-side inference with
apply_jax(...)andmake_frozen_apply(...); - training with
fit(...); - exporting a portable artifact with
save_bundle(...).
Useful bundle metadata accessors on a loaded emulator:
specinput_spec,output_specreference_scaling_inputs,reference_scaling_outputsinput_domainbundle_extrasinput_channel_names_tree,output_channel_names_treedescribe_bundle()anddescribe_domain()
astro_emulators_toolkit.config
Primitive-only configuration dataclasses plus config I/O:
RootConfigModelSpec,TaskSpec,SolverConfig,OptimConfig,TrainConfigIOSpec,IOTreeSpec,MinMaxTreeSpecload_config(...),save_config(...)
Configs remain JSON/YAML-friendly by using string registry names for model families, tasks, solvers, and optimizers.
astro_emulators_toolkit.presets
Stable starting points for the most common workflows:
payne_flux_mlp(...)isochrone_mlp(...)cannon_flux(...)transformer_payne_flux(...)transformer_payne_intensity(...)
Use presets when you want a supported, top-down starting point instead of assembling a full RootConfig by hand.
astro_emulators_toolkit.data
Core data-layer building blocks:
Batch,DatasetProtocol,DeviceBatchTransformTreeArrayDatasetXYArrayDatasetMappedDatasetNpyTableDatasettrain_val_split(...)SubsetDatasetDataLoaderpack_xy_as_tree(...)(host-side mapping of raw x/y arrays to canonical trees)IdentityDeviceBatchTransform
The intended split is:
- host side for storage access, semantic mapping, batching, and loader-added
valid_mask; - device side for explicit JAX-compatible numeric preprocessing through
device_batch_transform.
Model families with runtime adapters can expose concrete device-side preprocessing objects through emu.make_device_batch_transform(...).
astro_emulators_toolkit.training
Training callbacks and helpers:
build_callbacks_from_config(...)CSVLoggerProgressBarLoggerModelCheckpointBestModelCheckpoint(best-metric tracking; see the training notes)Callback(base class for custom callbacks),History,TrainState
ModelCheckpoint belongs to run management for ongoing training. It is not the collaborator-facing distribution artifact; that role belongs to bundles saved with save_bundle(...).
astro_emulators_toolkit.bundle
Release-oriented helpers for shared artifacts:
prepare_bundle_release(...)verify_bundle_fingerprint_evaluation(...)load_bundle_fingerprint_evaluation(...)
and for publishing a released bundle on the Hugging Face Hub (also available as the aemu command):
write_model_card(...)check_bundle_for_publishing(...)plan_bundle_upload(...)publish_bundle(...)
Load a shared bundle and predict
The first supported user workflow is: load a bundle, apply explicit preprocessing if required, and call predict(...).
import numpy as np
from astro_emulators_toolkit import Emulator, normalize_tree
# Load from Hugging Face. Local bundles use Emulator.from_bundle(path).
emu = Emulator.from_pretrained("RozanskiT/example_bundle")
x_physical = {
"parameters": np.asarray([[5600.0, 4.2, -0.1]], dtype=np.float32)
}
# The library does not auto-apply preprocessing. When the bundle records an
# explicit reference_scaling_inputs block, reproduce the training-space input from it.
ref = emu.reference_scaling_inputs
if ref is None:
raise ValueError("This bundle does not declare reference_scaling_inputs.")
x_scaled = normalize_tree(
x_physical,
ref["min_tree"],
ref["max_tree"],
)
pred = emu.predict(x_scaled)
flux = pred["flux"]
wave = np.asarray(emu.bundle_extras.get("wavelength_angstrom", []), dtype=np.float32)
print(flux.shape)
print(wave.shape)
print(emu.describe_domain())
What to remember:
predict(...)is the host-side path and returns NumPy-backed outputs.- Stable public inference expects canonical dict-tree inputs with an explicit batch axis on every leaf. A single example still uses shape
(1, n), not(n,). - Scaling is explicit;
predict(...)does not normalize for you. - Fixed grids and convenience arrays often live in
bundle_extras.
Runnable examples:
Inspecting bundle metadata at runtime
A loaded emulator gives direct access to the scientific and portability metadata carried by the bundle.
print(emu.describe_bundle())
print(emu.input_spec)
print(emu.output_spec)
print(emu.reference_scaling_inputs)
print(emu.reference_scaling_outputs)
print(emu.input_domain)
print(emu.bundle_extras.keys())
Typical uses:
- checking channel names for input labels or output channels;
- retrieving a stored wavelength grid or companion recipe;
- reconstructing physical-space preprocessing;
- auditing provenance or release identity;
- inspecting solver details recorded for a trained bundle, such as Cannon ridge settings and observed condition number;
- checking whether fingerprint evaluation metadata is present.
Using the same emulator inside JAX inference code
For downstream inference, the main supported pattern is to freeze a pure callable once and compose it into your own JAX code.
import jax
import jax.numpy as jnp
import numpy as np
from astro_emulators_toolkit import Emulator, normalize_tree
emu = Emulator.from_pretrained("RozanskiT/example_bundle")
apply_flux = emu.make_frozen_apply(jit=False)
ref = emu.reference_scaling_inputs
y_obs = jnp.asarray(observed_flux, dtype=jnp.float32)
y_err = jnp.asarray(observed_sigma, dtype=jnp.float32)
@jax.jit
def log_likelihood(theta):
x_physical = {"parameters": theta[None, :]}
x_scaled = normalize_tree(
x_physical,
ref["min_tree"],
ref["max_tree"],
)
y_model = apply_flux(x_scaled)["flux"][0]
resid = (y_obs - y_model) / y_err
return -0.5 * jnp.sum(resid**2)
log_likelihood(jnp.asarray([5600.0, 4.2, -0.1], dtype=jnp.float32))
Important distinction:
apply_jax(...)uses the current live emulator state.make_frozen_apply(...)captures the current parameter/state snapshot and returns a callable suitable for composition into jitted code.- In repeated optimization or sampling loops, usually keep
make_frozen_apply(jit=False)and jit the outer likelihood, optimizer step, or sampler transition. This gives XLA one compiled objective that includes your normalization, nuisance terms, masks, priors, and emulator call. make_frozen_apply(jit=True)is available when you specifically want the emulator callable pre-jitted, but it is not a replacement for jitting the full downstream objective or transition kernel.
If you retrain or otherwise mutate the emulator state, recreate the frozen callable afterwards.
The JAX-side spectral-resolution helper lives under astro_emulators_toolkit.inference.compose.
For example, if a bundle stores a wavelength grid and your likelihood needs a lower
instrumental resolution, wrap the frozen callable once:
from astro_emulators_toolkit.inference.compose import downgrade_spectral_resolution
log_wavelength = jnp.asarray(bundle_log_wavelength_grid, dtype=jnp.float32)
apply_flux_lowres = downgrade_spectral_resolution(
apply_flux,
log_wavelength,
resolution=30000.0,
output_path="flux",
axis=-1,
)
Here bundle_log_wavelength_grid is the grid matching the selected flux leaf.
The resolution helper assumes that leaf is already sampled on a uniform log10
wavelength grid. Use axis=-1 for arrays shaped like (batch, n_wavelength)
and axis=-2 for arrays shaped like (batch, n_wavelength, channels). A bare
output_path, such as "flux", smooths all leaves with that name; a
slash-delimited path, such as "spectra/flux", selects one exact leaf.
For mixed output trees, pass an axis_tree with the same structure as the
output tree and leaves set to None, -1, or -2:
apply_lowres = downgrade_spectral_resolution(
apply_flux,
log_wavelength,
resolution=30000.0,
axis_tree={"flux": -1, "intensity": -2, "diagnostics": None},
)
This changes only the selected output leaves; it does not hide input scaling, output scaling, masking, or scientific validation.
Numerical reproducibility in JAX likelihoods
Most released neural-network bundles use float32 weights. In float32, eager JAX evaluation and XLA-compiled evaluation can differ by tiny roundoff-level amounts because the compiler may fuse or reorder arithmetic. Flux differences at the 1e-6 level are usually negligible physically, but a small-noise likelihood can amplify them when it sums over many pixels.
For deterministic tests, synthetic observations, and tight reproducibility checks:
- generate synthetic observations with the same compiled model path used by the objective;
- compare likelihoods that are evaluated in the same execution mode, preferably inside the same outer
jax.jit; - do not expect
predict(...)or an eager scalar likelihood to be bitwise identical to a compiled likelihood at very small tolerances; - enable float64 only when the full model and weights are intended to run in float64. Float64 likelihood accumulation alone cannot make a float32 bundle evaluate as a float64 emulator.
Runnable examples:
Training a new emulator
The typical supported training path is:
- choose a stable preset or build a
RootConfig; - use
TreeArrayDatasetfor canonical trees, or start fromXYArrayDataset/NpyTableDatasetand wrap withMappedDatasetwhen you need an explicit host-side semantic mapping; - call
fit(...); - save a portable bundle with
save_bundle(...).
from astro_emulators_toolkit import Emulator, normalize_tree
from astro_emulators_toolkit.data import TreeArrayDataset
from astro_emulators_toolkit.presets import payne_flux_mlp
# x_train, x_val: (n_samples, n_labels) in physical units
# y_train, y_val: (n_samples, n_wavelengths)
cfg = payne_flux_mlp(
workdir="runs/payne_flux_mlp",
profile="cpu_recommended",
)
# MLP presets expect roughly unit-scaled inputs: min-max scale the labels and
# record the scaling in the bundle so consumers can reproduce it.
min_tree = {"parameters": x_train.min(axis=0)}
max_tree = {"parameters": x_train.max(axis=0)}
emu = Emulator.from_config(cfg)
history = emu.fit(
TreeArrayDataset(
x=normalize_tree({"parameters": x_train}, min_tree, max_tree),
y={"flux": y_train},
),
validation_dataset=TreeArrayDataset(
x=normalize_tree({"parameters": x_val}, min_tree, max_tree),
y={"flux": y_val},
),
)
pred = emu.predict(normalize_tree({"parameters": x_val[:2]}, min_tree, max_tree))
bundle_dir = emu.save_bundle(
spec={
"reference_scaling_inputs": {
"kind": "affine_minmax_v1",
"applies_to": "inputs",
"source_space": "physical_input_dict_tree_v1",
"target_space": "canonical_input_dict_tree_v1",
"min_tree": {"parameters": [float(v) for v in min_tree["parameters"]]},
"max_tree": {"parameters": [float(v) for v in max_tree["parameters"]]},
},
}
)
print(sorted(history.logs))
print(pred["flux"].shape)
print(bundle_dir)
Config-declared progress, evaluation, and checkpoint callbacks are built
automatically (fit(callbacks=None)); pass callbacks=[] to disable them or
an explicit list to take control. Saving reference_scaling_inputs closes
the loop with the consumer workflow above: the bundle documents exactly how
to map physical labels into the emulator's training space.
Training notes
Emulator.from_config(...)can initialize immediately if enough shape information is available throughinit_example=...orcfg.model.init_hints.- If not,
fit(...)lazily initializes from the first training batch. Whendevice_batch_transformis provided, initialization usesdevice_batch_transform.for_init(...). configure_training(optimizer=None, task=None)is the advanced hook for attaching a task override and/or optimizer beforefit(...). It only configures training components; it does not calljax.jit, trigger XLA compilation, or initialize optimizer state.training.num_stepsis the total target optimization step count. Withresume=True, training continues until the restored state reachestraining.num_steps;max_stepsonly caps the additional steps taken by the currentfit(...)call and does not train pasttraining.num_steps.- For
closed_form_linear, a scalar target leaf with shape(N,)is treated as one output channel; fitted coefficients and predictions keep an explicit trailing dimension of 1. - Presets use
profile="smoke"for short example runs andprofile="cpu_recommended"for longer CPU-oriented defaults. - Training and inference are tested for CPU/single-device JAX execution. Single-GPU execution should work with a correct JAX GPU installation. Multi-GPU training is not yet part of the stable contract; the current trainer does not shard batches or replicate/partition training state across devices.
training.checkpoint_interval_steps=0(orNone, with no explicitcheckpoint_steps) disables periodic checkpointing entirely;max_saved_checkpointsonly controls retention of saved checkpoints and never enables or disables checkpointing.fit(callbacks=None)builds config-declared callbacks withbuild_callbacks_from_config(cfg)by default, sotraining.checkpoint_interval_stepsand progress logging take effect without extra wiring. Passcallbacks=[]to run without callbacks, or an explicit list to take full control.- The default learning-rate schedule is cosine decay with automatic linear
warmup over the first 10% of
training.num_steps(optim.warmup_steps=None). Setoptim.warmup_stepsexplicitly to override,0to disable warmup, oroptim.schedule="constant"for a fixed learning rate. - Run provenance: the first
fit(...)writesrun_config.jsonin the workdir; later fits never overwrite it (a changed config is recorded asrun_config.resume-N.json), and everyfit(...)appends the effective choices — resolved solver, optimizer source (config vsconfigure_trainingoverride), optim settings, toolkit version — toeffective_runs.jsonl. - Best-model tracking: set
training.checkpoint_best_metric(the bare eval-metric name, e.g."loss"or"mae"— avalidation_prefix from history keys is accepted and stripped — withcheckpoint_best_mode"min"/"max") and the single bestTrainState— judged on validation metrics — is kept undercheckpoints_best/in the workdir, separate from the resume checkpoints. After training,emu.load_best_checkpoint()restores it; a typical flow isfit(...)→load_best_checkpoint()→save_bundle(...). - Resuming continues the LR schedule from the restored optimizer step. A
resume with a changed optimizer/schedule config (including a different
training.num_steps, which reshapes cosine decay) emits a warning based on the fingerprint stored in the checkpoint, andresume=Truewith no checkpoint found warns before training from scratch.CSVLoggerappends to an existing file on resume instead of truncating it. training.async_checkpointing=Falseforces synchronous orbax checkpoint writes — useful when bisecting GPU instability.
Advanced training: learning-rate scaling
Most training recipes should leave optim.lr_scaling=None, which gives one shared
learning-rate schedule to the whole model. For scaling-law work and larger model
sweeps, optim.lr_scaling can instead request muP-style per-parameter learning
rate factors. This is an optimizer update rule: it does not change the public
I/O contract, hide preprocessing, or make bundle fingerprints a substitute for
scientific validation.
Supported settings are:
transformer_paynewithoptim.lr_scaling="si": legacy standard parameterization. Parameter-embedding groups train atlr * optim.scale_embedding_lr; all other groups keep the base learning rate. No reference width is required and, unlikemup, the output embedding is not width-divided.mlpwithoptim.lr_scaling="mup": requiresmodel.params.reference_width. Dense kernels are scaled by the ratio between the reference width and the current hidden width; biases and otherwise unclassified parameters keep the base learning rate.transformer_paynewithoptim.lr_scaling="mup": requiresmodel.params.reference_widthand applies the Transformer Payne component-wise scaling used by the optimizer implementation.transformer_paynewithoptim.lr_scaling="mup_depth": additionally requiresmodel.params.reference_depthand applies the depth factor to the attention and feed-forward blocks.
optim.scale_embedding_lr scales the Transformer Payne parameter-embedding
learning rate and is only meaningful with lr_scaling set to "si", "mup",
or "mup_depth"; setting it with lr_scaling=None is a config error rather
than a silently ignored knob. optim.lr_scaling="standard" is rejected as
ambiguous — use None for one shared learning rate or "si" for the legacy
standard parameterization. optim.grad_clip=0.0, the default, disables
gradient clipping; set a positive value to clip by global norm before the
optimizer update. Note that optim.b1 doubles as the SGD momentum when
optim.name="sgd".
Schedule endpoint convention: for cosine and wsd, every applied step uses
a strictly positive learning rate. Warmup ramps lr/warmup_steps, ... up to
lr, and decay reaches exactly zero only one step past the final applied
optimizer step, so no training step is wasted on a zero learning rate.
Representative examples:
examples/basic/01_train_payne_flux_mlp.pyexamples/basic/05_train_cannon_flux.pyexamples/basic/06_train_isochrone_mlp.pyexamples/basic/07_train_transformer_payne_flux.pyexamples/advanced/03_train_transformer_payne_intensity.py
Recording the scientific contract of the emulator
For a shared artifact, the important question is not only “what weights did I save?” but “what does this emulator mean, what inputs does it expect, what outputs does it produce, and over what domain is it intended to be used?”
That contract lives in the effective bundle spec and extras.
There are two main ways to supply it:
- put it directly into
cfg.ioso it becomes part of the resolved config-level spec; - pass
spec=...andextras=...tosave_bundle(...).
A typical portability-oriented save looks like this:
spec = {
"input_domain": {
"kind": "box_v1",
"value_space": "physical_input_dict_tree_v1",
"min_tree": {"parameters": label_min},
"max_tree": {"parameters": label_max},
},
"reference_scaling_inputs": {
"kind": "affine_minmax_v1",
"applies_to": "inputs",
"source_space": "physical_input_dict_tree_v1",
"target_space": "canonical_input_dict_tree_v1",
"min_tree": {"parameters": label_min},
"max_tree": {"parameters": label_max},
},
"reference_scaling_outputs": {
"kind": "affine_minmax_v1",
"applies_to": "outputs",
"source_space": "canonical_output_dict_tree_v1",
"target_space": "physical_output_dict_tree_v1",
"min_tree": {"flux": flux_min},
"max_tree": {"flux": flux_max},
},
}
bundle_dir = emu.save_bundle(
"dist/my_flux_bundle",
spec=spec,
extras={
"wavelength_angstrom": wavelength_grid,
"companion_recipe": {
"kind": "hf_repo_file_v1",
"repo_id": "my-org/my-emulator-recipes",
"revision": "v0.1.0",
"path": "predict_physical.py",
"role": "physical_inference_wrapper",
},
},
)
What belongs here:
- canonical input/output structure;
- channel names, units, and meanings when known;
reference_scaling_inputsdescribing physical-to-training-space input transforms when known;reference_scaling_outputsdescribing canonical-to-physical output transforms when known;input_domaindescribing intended-use bounds;- fixed coordinate grids or other conveniences in
extras; - optional companion-recipe pointers for wrappers that live outside the core bundle-owned payload.
Preparing a release bundle for collaborators
For day-to-day development you may save a raw bundle. For a bundle you expect other astronomers to rely on, a release step is recommended.
from astro_emulators_toolkit.bundle import (
prepare_bundle_release,
verify_bundle_fingerprint_evaluation,
)
released_dir = prepare_bundle_release(
bundle_dir,
path="dist/my_flux_bundle_released",
release_name="my-flux-emulator",
release_version="0.1.0",
)
summary = verify_bundle_fingerprint_evaluation(released_dir)
print(summary)
What this gives you:
- a human-readable release identity;
- a release-time fingerprint input/output pair stored inside the bundle;
- a reproducibility check that the released bundle still produces the expected output on that canonical fingerprint input;
- an updated integrity manifest for the release artifact.
If you omit fingerprint_inputs=..., automatic fingerprint synthesis requires the bundle to carry explicit input_domain or reference_scaling_inputs metadata.
When you do provide fingerprint_inputs=..., pass one canonical example. Public inference APIs refuse ambiguous 1D leaves; release preparation stores a single unbatched vector/list as a batch-one fingerprint.
Scientific validation versus portability checks
These are not the same thing.
Scientific validation should include, as appropriate:
- held-out errors and calibration diagnostics;
- residual structure versus stellar labels, wavelength, age, metallicity, or other physical coordinates;
- behavior near the edges of the intended domain;
- comparisons against the expensive forward model or reference calculation;
- tests inside at least one realistic downstream likelihood/inference workflow.
Portability checks include:
- bundle integrity verification;
- load/save round-trips;
- fingerprint reproducibility checks.
A release fingerprint is a useful reproducibility smoke test. It is not a substitute for physical validation.
Publishing a bundle on the Hugging Face Hub
A released bundle directory can be published as a Hub model repository with the aemu command, which is installed with the package. Each subcommand wraps a function in astro_emulators_toolkit.bundle, so the same steps can be scripted from Python.
aemu card dist/my_flux_bundle_released # create README.md (the model card)
# ...write your sections in README.md...
aemu check dist/my_flux_bundle_released # the pre-publish checklist
aemu publish dist/my_flux_bundle_released my-org/my-flux-emulator --dry-run
aemu publish dist/my_flux_bundle_released my-org/my-flux-emulator
aemu publish refreshes the generated part of the card, uploads the directory in one commit, tags it v<release_version>, and then downloads it back to check that it loads, has the same bundle_id, and reproduces its fingerprint. It authenticates with your Hugging Face login (hf auth login) or HF_TOKEN. The token needs write access: a Write token, or a fine-grained token with write permission on the target repository (to create a new repository, on your whole namespace or organization); aemu publish checks this before changing anything, and --dry-run reports it too. Also, --private creates a private repository, which from_pretrained(...) reads with the same login. aemu enables JAX_ENABLE_X64 itself, which TransformerPayne bundles need.
What belongs in the directory
- Bundle contract: the files listed in
bundle_integrity.jsonplus the manifest itself (config.json,metadata.json,README.txt,weights/, and the sidecars the metadata refers to). They are verified on every load; do not edit them afterprepare_bundle_release(...). - Documentation: anything else you add, such as the
README.mdmodel card,LICENSE,CITATION.cff, or adocs/folder with figures and validation notes. Loading ignores these files, so you can document as much as you like. Keep them out of the contract folders (weights/,extras/,fingerprint_evaluation/);aemu checkrefuses files there. - Not uploaded: hidden files,
__pycache__, and training state (checkpoints/,checkpoints_best/,runs/). Internal run state is not the sharing contract.
The model card
The Hub shows README.md as the model card. aemu card writes a default one with three parts:
- YAML front matter with
library_name: astro-emulators-toolkit, which lists the model under this library on the Hub. Addlicense:and, if the training set is on the Hub,datasets:. - Your sections: an introduction, intended use and domain, training data, model and training, validation, known limitations, citation and contact. Each starts as an
<!-- aemu:todo ... -->prompt to replace with your own text. - A generated block between
<!-- aemu:generated:begin -->and<!-- aemu:generated:end -->, built from the bundle metadata: the input/output table (names, meanings, units, intended domain), a usage snippet with the pinned revision, the requirements (the oldest toolkit version that loads the bundle, andJAX_ENABLE_X64where needed), release and provenance, and the contract files.aemu cardandaemu publishrebuild only this block; your text is never touched.
The generated table is only as good as the recorded metadata: set channel names, meanings and units in io and record an input_domain before saving the bundle.
Before you publish
aemu check runs this checklist; errors block publishing, warnings do not.
- Errors: the bundle does not load or fails its integrity check; it has no release identity or fingerprint (run
prepare_bundle_release(...)); the fingerprint does not reproduce (--allow-fingerprint-mismatchaccepts that, for example for a fingerprint recorded on another platform); documentation files sit inside contract folders;README.mdis missing, lackslibrary_name, or still hasaemu:todoprompts. - Warnings: an input or output leaf without names, meanings or units; no
input_domain; nolicense:; files that will not be uploaded.
These are portability and documentation checks. The scientific validation you write in the card (held-out errors, residual structure, behavior at the domain edges, comparison with the expensive model) is yours to provide; a fingerprint that reproduces is not evidence of physical accuracy.
Versions on the Hub
- Each release is one commit on
mainplus the tagv<release_version>, using the version given toprepare_bundle_release(...). Users pin a release withEmulator.from_pretrained("my-org/my-flux-emulator", revision="v1.2.0"); withoutrevisionthey get the latestmain. - Tags are not moved: publishing an existing tag is refused unless you pass
--overwrite-tagdeliberately (for example to fix a broken release before anyone used it). - A release older than the latest tagged one is refused, since
mainwould move backwards. - A change of the interface since the latest release (input/output structure, channel names, units) needs a new major version, for example
2.0.0after1.4.0;--allow-interface-changeoverrides this. --no-tagpublishes a documentation-only update tomain(a better card, a new figure). It is refused if any contract file differs from whatmainalready has.- By default files you deleted locally stay on the Hub (and are listed);
--mirrordeletes them too.
Downloading and the cache
Emulator.from_pretrained(...) downloads into the toolkit's own cache, ~/.cache/astro_emulators_toolkit/hub (or $ASTRO_EMU_CACHE_DIR/hub, or $XDG_CACHE_HOME/astro_emulators_toolkit/hub), unless you pass cache_dir=.... The loaded emulator records where it came from in emu.bundle_metadata["hub_source"]: the repository, the requested revision, and the resolved commit.
API reference: the Emulator surface
Construction
Emulator.from_config(cfg, init_example=None)Emulator.initialize(inputs=..., outputs=None, init_hints=None)Emulator.from_bundle(path, verbose=False)Emulator.from_pretrained(repo_id, revision=None, cache_dir=None, verbose=False)
Use from_config(...) when building a new emulator. Use from_bundle(...) or from_pretrained(...) when the model already exists as a portable artifact.
Inference
predict(x)returns NumPy-backed outputs.apply_jax(x, rng=None, postprocess=True, train=False)returns JAX arrays.make_frozen_apply(jit=False)returns a callable over the current parameter/state snapshot.make_device_batch_transform(...)exposes model-family-specific device batch transforms when the runtime adapter provides them.
Training and packaging
configure_training(optimizer=None, task=None)for advanced training overrides. It only attaches a task object and/or optimizer for laterfit(...); it does not JIT/XLA-compile the model.fit(train_dataset, validation_dataset=None, callbacks=None, resume=False, max_steps=None, device_batch_transform=None, method=None);methodaccepts a solver registry name ("gradient"or"closed_form_linear") to overridecfg.solver.namefor one call.load_best_checkpoint()to restore the best-metric snapshot tracked duringfit(...)(seetraining.checkpoint_best_metric).save_bundle(path=None, spec=None, extras=None).
Metadata accessors
specinput_spec,output_specreference_scaling_inputs,reference_scaling_outputs,input_domainbundle_extrasinput_channel_names_tree,output_channel_names_treedescribe_bundle(),describe_domain()
Configuration model
RootConfig is the main configuration object. Its sections are:
model: model-family name plus primitive parameters and optional init hints;task: training task name plus primitive parameters;solver: training algorithm selection;optim: optimizer and learning-rate schedule settings for gradient training;training: workdir, batch size, step schedule, logging/evaluation cadence, and other run controls;io: canonical input/output structure plus optional metadata, scaling, and domain;bundle: bundle-export options;hub: deprecated and ignored (removed in 0.3.0); passrepo_id/revisiontofrom_pretrained(...)oraemu publishinstead.
A good default pattern is to start from a preset and then update the pieces
you need with with_updates(...). A section can be given as a dict of field
updates, which are merged into the existing section:
from astro_emulators_toolkit.config import IOTreeSpec
from astro_emulators_toolkit.presets import payne_flux_mlp
cfg0 = payne_flux_mlp(workdir="runs/demo", profile="cpu_recommended")
cfg = cfg0.with_updates(
training={"num_steps": 500, "batch_size": 64},
io={
"inputs": IOTreeSpec(
structure_tree={"parameters": None},
channel_names_tree={"parameters": ["teff", "logg", "feh"]},
)
},
)
Config files can be saved and loaded as JSON or YAML based on the filename suffix:
from astro_emulators_toolkit import load_config, save_config
save_config(cfg, "runs/demo/config.yaml")
cfg = load_config("runs/demo/config.yaml")
Stable model families and tasks
Stable model families
mlp: general dense regression model. This is the basis for the stable Payne-style flux example and the stable isochrone example.model.params.dtypeis the compute dtype andmodel.params.param_dtypethe parameter storage dtype (default: same asdtype);dtype="bfloat16"withparam_dtype="float32"is the usual mixed-precision setup.cannon: closed-form quadratic baseline. Useful as a simple reference model and regression baseline, with an optional intercept term that is left unregularized by default in the closed-form solver.transformer_payne: wavelength-explicit spectral/intensity model family with runtime helpers for explicit wavelength handling.
Stable task surface
regression
Experimental namespace
Prototype model families and tasks live under experimental/.... They are useful for research and development but are intentionally outside the stable public contract.
Transformer-specific notes
The transformer_payne family requires JAX_ENABLE_X64=1: wavelengths are always handled in float64 up to the embedding cast, and model construction fails without it. Enable it before building or loading these models:
export JAX_ENABLE_X64=1
Wavelength coordinate convention. The model is coordinate-agnostic: it never assumes Angstroms, nanometers, or log wavelengths. What matters is how the coordinate relates to the frequency-encoding periods:
- prefer an affine-scaled coordinate whose span is of order 1.0 (for
example
log10(wavelength)or a min-max scaled coordinate), because the library favors explicit affine scaling; - choose
max_periodat least as large as the coordinate span, so the encoding has a component smoother than the sampled interval; - choose
min_periodaroundspan / R_maxfor the highest resolution of interest — spectral resolutions up to ~1e6 mean periods down to ~1e-6 of the span.
make_device_batch_transform(...) warns when the wavelength grid and the
configured periods are inconsistent with this convention (span larger than
max_period, or min_period far coarser than the finest grid spacing).
Validation protocol. By default, evaluation broadcasts one shared
eval_wavelength_grid to every spectrum. For parity with per-example
random-wavelength validation protocols, pass eval_mode="passthrough" to
make_device_batch_transform(...): eval batches are then used exactly as the
validation dataset provides them (precomputed per-example query wavelengths
and matching targets), while training batches are still transformed with
random wavelength sampling.
See examples/basic/07_train_transformer_payne_flux.py and examples/advanced/03_train_transformer_payne_intensity.py.
Data flow
The intended pipeline is:
raw storage
-> dataset
-> host-side semantic mapping
-> loader / batching / valid_mask
-> device-side preprocessing
-> model
-> task / loss / metrics
Validation follows the same split:
validation raw storage
-> validation dataset
-> same host-side semantic mapping
-> deterministic loader
-> same device-side preprocessing, but train=False
-> model
-> task / metrics
The important boundary is:
- host side owns structure, naming, semantics, batching, and deterministic storage access;
- device side owns JAX-compatible numeric transforms that may be model-specific and optionally stochastic during training.
1. Batch contract
Every training or evaluation batch follows the same outer contract:
{
"x": ...,
"y": ...,
"sample_weight": ..., # optional
"valid_mask": ..., # optional; loader adds this for padded eval batches
}
What each field means:
x: model inputs in the semantic structure expected by the runtime/task;y: targets in the semantic structure expected by the task;sample_weight: optional per-sample weights;valid_mask: optional float mask for ignoring padded or invalid examples during evaluation.
Inside that batch, stable user-facing semantics are still canonical dict trees.
2. Raw datasets
Dataset responsibilities are intentionally narrow:
- deterministic indexed access;
- storage/decoding and sample fetching;
- assembling host batches with at least
xandy; - optional dataset-provided leaves such as
sample_weightorvalid_mask.
Loader responsibilities are separate:
- batching;
- shuffle and seed policy;
- deterministic evaluation ordering;
- adding
valid_maskfor padded eval batches.
Use the dataset type that matches your storage layer:
XYArrayDatasetfor in-memory raw arrays returning{"x": x_array, "y": y_array};NpyTableDatasetfor memmap-friendly loading from a single.npytable;TreeArrayDatasetfor in-memory data that is already organized as canonical semantic trees;- a custom
DatasetProtocolimplementation when your data lives in many files or another external format.
Examples:
from astro_emulators_toolkit.data import TreeArrayDataset, XYArrayDataset
raw_xy = XYArrayDataset(x=x_train, y=y_train)
tree_ds = TreeArrayDataset(
x={"parameters": x_train},
y={"flux": y_train},
)
from astro_emulators_toolkit.config import NpyTableConfig
from astro_emulators_toolkit.data import NpyTableDataset
cfg = NpyTableConfig(
path="data/isochrones.npy",
inputs=(0, 1, 2),
targets=(3, 4, 5),
memmap=True,
)
raw_table = NpyTableDataset.from_config(cfg)
For many-file storage, implement the dataset contract directly:
import numpy as np
class MyFileDataset:
def __init__(self, paths: np.ndarray) -> None:
self.paths = np.asarray(paths)
def __len__(self) -> int:
return len(self.paths)
def get_batch(self, idx: np.ndarray) -> dict[str, object]:
x = load_label_rows(self.paths[idx])
y = load_flux_rows(self.paths[idx])
return {"x": x, "y": y}
train_val_split(...) and SubsetDataset handle deterministic splitting/subsetting on top of any dataset that follows the contract.
3. Host-side semantic mapping
MappedDataset is the explicit host-side boundary where raw storage batches become the semantic batch consumed by the model and task. This step is:
- host-side;
- deterministic;
- solver-agnostic;
- the right place to rename leaves, attach extra host metadata, or preserve
sample_weight.
For the common case of raw x / y arrays that should become canonical trees:
from astro_emulators_toolkit.data import MappedDataset, XYArrayDataset, pack_xy_as_tree
raw = XYArrayDataset(x=x_train, y=y_train)
train = MappedDataset(
raw,
map_batch=pack_xy_as_tree(x_leaf="parameters", y_leaf="flux"),
)
map_batch is intentionally general. It can also attach metadata-derived leaves or reshape several fields together when your canonical batch is more complex than one x leaf and one y leaf.
4. Device-side preprocessing
After a host batch has been fetched and batched, device_batch_transform is the explicit place for model-specific JAX-side preprocessing. This is not a storage concern and not a replacement for MappedDataset.
Typical uses include:
- injecting wavelength query grids for explicit-wavelength models;
- interpolating or resampling targets on device;
- applying train-time stochastic transforms that require an RNG.
Concrete device transforms expose:
for_init(batch)for deterministic initialization-time shaping;__call__(batch, train=..., rng=...)for train/eval preprocessing.
For example, transformer_payne can provide a concrete device transform object through the runtime adapter:
device_batch_transform = emu.make_device_batch_transform(
wavelength_grid=wave,
n_wavelength=wave.shape[0],
)
When fit(...) lazily initializes a model from data, it uses device_batch_transform.for_init(...) so initialization happens against the actual preprocessed batch shape.
5. Validation flow
Validation is not a different data model. It follows the same semantic pipeline as training:
- the validation dataset produces the same host-side batch contract;
- the same
MappedDatasetlogic can be applied to both train and validation datasets; - evaluation uses deterministic loader ordering rather than shuffled batch sampling;
- the same
device_batch_transformruns withtrain=False; - the loader pads the final eval batch when needed and records the real examples through
valid_mask.
In other words, training and validation should differ in ordering and train/eval mode, not in the meaning of the batch itself.
6. Worked examples
Example A: in-memory raw arrays with one explicit semantic mapping step.
from astro_emulators_toolkit import Emulator
from astro_emulators_toolkit.data import MappedDataset, XYArrayDataset, pack_xy_as_tree
from astro_emulators_toolkit.presets import payne_flux_mlp
emu = Emulator.from_config(
payne_flux_mlp(workdir="runs/payne_flux_demo", profile="smoke")
)
train = MappedDataset(
XYArrayDataset(x=x_train, y=y_train),
map_batch=pack_xy_as_tree(x_leaf="parameters", y_leaf="flux"),
)
emu.fit(train)
Example B: a single .npy table with raw columns mapped into canonical trees.
from astro_emulators_toolkit import Emulator
from astro_emulators_toolkit.config import NpyTableConfig
from astro_emulators_toolkit.data import MappedDataset, NpyTableDataset, pack_xy_as_tree
from astro_emulators_toolkit.presets import payne_flux_mlp
raw = NpyTableDataset.from_config(
NpyTableConfig(
path="data/train_table.npy",
inputs=(0, 1, 2),
targets=tuple(range(3, 503)),
memmap=True,
)
)
train = MappedDataset(
raw,
map_batch=pack_xy_as_tree(x_leaf="parameters", y_leaf="flux"),
)
emu = Emulator.from_config(payne_flux_mlp(workdir="runs/table_demo", profile="smoke"))
emu.fit(train)
Example C: a custom many-file dataset plus transformer_payne device-side preprocessing.
import numpy as np
from astro_emulators_toolkit import Emulator
from astro_emulators_toolkit.data import MappedDataset
from astro_emulators_toolkit.presets import transformer_payne_flux
class MyFileDataset:
def __init__(self, paths: np.ndarray) -> None:
self.paths = np.asarray(paths)
def __len__(self) -> int:
return len(self.paths)
def get_batch(self, idx: np.ndarray) -> dict[str, object]:
return {
"x": load_parameter_rows(self.paths[idx]),
"y": load_flux_rows(self.paths[idx]),
}
def map_flux_batch(batch: dict[str, object]) -> dict[str, object]:
return {
"x": {"parameters": batch["x"]},
"y": {"flux": batch["y"]},
}
emu = Emulator.from_config(
transformer_payne_flux(workdir="runs/transformer_demo", profile="smoke")
)
train = MappedDataset(MyFileDataset(train_paths), map_batch=map_flux_batch)
val = MappedDataset(MyFileDataset(val_paths), map_batch=map_flux_batch)
device_batch_transform = emu.make_device_batch_transform(
wavelength_grid=wave,
n_wavelength=wave.shape[0],
)
emu.fit(
train,
validation_dataset=val,
device_batch_transform=device_batch_transform,
)
Canonical dict-tree I/O and metadata
Stable user-facing inference and bundle metadata use nested dictionaries with numeric leaves. This is intentional: the public I/O shape trades the flatness of one anonymous tensor for scientific clarity about what each leaf means. Examples should therefore keep trees shallow and use plain semantic keys, rather than exposing model-family-specific tensor layouts.
Examples:
{"parameters": x}
{"flux": y}
{"parameters": x, "wavelengths": wave}
{"flux": y_flux}
The I/O spec can also carry metadata trees parallel to the structure tree:
channel_names_treeleaf_units_treechannel_units_treeleaf_meanings_treechannel_meanings_tree
Important convention: channel metadata applies only to the last axis of a leaf.
Scaling and domain metadata
Three metadata blocks matter especially for responsible use.
reference_scaling_inputs
Describes the explicit affine transform between physical-space inputs and the canonical numeric representation used by the emulator. This block is optional and is only present when the author explicitly provided it in the config or bundle spec.
reference_scaling_outputs
Describes the explicit affine transform between canonical emulator outputs and physical-space output values. This block is optional and is only present when the author explicitly provided it in the config or bundle spec.
Typical use:
from astro_emulators_toolkit import normalize_tree, denormalize_tree
x_scaled = normalize_tree(x_physical, ref_inputs["min_tree"], ref_inputs["max_tree"])
y_physical = denormalize_tree(y_scaled, ref_outputs["min_tree"], ref_outputs["max_tree"])
input_domain
Describes the intended-use box in physical input space using the same public input tree shape accepted by predict(...). This is a statement about where the model is meant to be used, not a promise that all points inside are equally accurate.
Bundle structure and semantics
A saved bundle is the portable artifact intended for sharing. Typical contents are:
README.txtconfig.jsonmetadata.jsonweights/weights.safetensorsbundle_integrity.json- optional sidecars such as
reference_scaling_inputs.safetensors,reference_scaling_outputs.safetensors,input_domain.safetensors,extras/*.safetensors, andfingerprint_evaluation/*.safetensors
What the loader does:
- validates the bundle metadata structure;
- verifies the integrity manifest;
- materializes or hydrates sidecar-backed metadata;
- reconstructs the emulator from the saved config and runtime contract.
Common metadata fields exposed on load include:
- compatibility fields such as
bundle_format_version,config_schema_version,weights_layout, andmodel_family_id; speccontaining canonical I/O structure plus optional domain/scaling metadata;releaseidentity if the bundle has been prepared as a release;provenancesuch as toolkit version, Python version, creation time, and git commit;- optional
fingerprint_evaluationdescriptors.
Bundle compatibility and versioning
Bundles are meant to outlive toolkit versions. The compatibility contract is
defined in one place — src/astro_emulators_toolkit/bundle/versions.py — and
works as follows:
- Four version fields identify a bundle:
bundle_format_version(on-disk layout and metadata envelope),config_schema_version(savedconfig.jsonschema),spec.spec_version(I/O spec block semantics), andweights_layout(the parameter-tree contract inside the safetensors file, including the canonical-wrappercore_modelnesting). - Saving stamps the current versions; loading accepts every version listed
in the
SUPPORTED_*collections and rejects anything else with an error that names the supported versions. - Older-but-supported bundle formats are upgraded in memory at load time
through the migration registry (
BUNDLE_METADATA_MIGRATIONS); the on-disk bundle is never modified by loading. - Older config schemas are upgraded the same way
(
src/astro_emulators_toolkit/config/migrations.py), for bundles and forload_config(...). Config schema v1 was written by toolkit 0.1.x and v2 by 0.2.0+. (The 0.2.0 pre-releases,0.2.0.devN, still stamped v1 but wrote v2 meaning; bundles record the toolkit version, so they load as v2.) A v1 document keeps its v1 meaning: the removedtraining.val_fractionkey is dropped, absent keys get the v1 defaults (constant learning rate, no warmup), non-float32 MLP-style models keep float32 parameter storage, and settings that 0.1.x accepted but ignored (scale_embedding_lrwithoutlr_scaling,decay_stepswith the cosine schedule,solver.paramsfor the gradient solver,lr_scaling="si"/"standard"as aliases forNone) are replaced by the value that was in effect, listed in oneLegacyConfigWarning. The same settings in a v2 document are errors. Re-saving a loaded v1 bundle writes a v2 bundle. - Every version bump must either extend the supported window with a registered migration or be an explicit, CHANGELOG-documented hard break. Dropping a version from a supported window is itself a breaking change.
Bundles versus internal training state
These artifacts serve different purposes.
A bundle is the artifact you share with another astronomer. It is about portability, runtime meaning, provenance, and validation-oriented metadata.
Internal training state is for continuing a training run. It includes optimizer/run-state information and supports workflows such as resume=True during training. That is not the portability contract and should not be treated as the scientific release artifact.
In practical terms:
- collaborators should receive a bundle;
save_bundle(...)is the public export step;- run-continuation state is an internal training concern.
Examples and recommended reading order
Stable onboarding
Start here:
examples/basic/00_visualize_datasets.py: inspect the shipped example datasets;examples/basic/01_train_payne_flux_mlp.py: first end-to-end stable training workflow;examples/basic/02_load_bundle_predict.py: first bundle-consumer workflow;examples/basic/03_inspect_bundle_metadata.py: inspect what a bundle carries;examples/basic/04_use_bundle_in_map_fit.py: embed the emulator in a small JAX fitting loop.
Then continue with:
examples/basic/05_train_cannon_flux.pyexamples/basic/06_train_isochrone_mlp.pyexamples/basic/07_train_transformer_payne_flux.py
Advanced supported workflows
examples/advanced/01_use_bundle_in_blackjax.pyexamples/advanced/02_resume_training.pyexamples/advanced/03_train_transformer_payne_intensity.pyexamples/advanced/04_bundle_metadata_and_portability.pyexamples/advanced/05_training_internals.pyexamples/advanced/06_train_payne_flux_mlp_from_config.pyexamples/advanced/07_grid_search_payne_flux_mlp_lr.py
Maintainer and research surfaces
examples/development/: maintainer benchmarks, longer recipes, and bundle-building utilities;examples/experimental/: prototype models/tasks and research workflows outside the stable contract.
Development from source
For work from a source checkout, uv is the maintained path.
uv python install 3.12
uv sync
uv sync --extra blackjax
uv sync --extra viz
uv run pytest -q
Notes:
- the committed
uv.lockis the reproducible source of truth for source checkouts; - package support targets Python 3.11+;
- the package ships inline type hints and a
py.typedmarker; - published users can use either
pip install ...oruv add ..., while maintainers should preferuv sync.
Status
This is an alpha project. The stable public surface is intentionally small and the README is the primary documentation surface. The design emphasis is clear contracts, explicit preprocessing, portable sharing artifacts, and responsible downstream use.
Metadata
Release files for astro-emulators-toolkit 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astro_emulators_toolkit-0.2.1.tar.gz | 187.7 kB | Without provenance | Details for astro_emulators_toolkit-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astro_emulators_toolkit-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for astro_emulators_toolkit-0.2.1-py3-none-any.whl |
Total release size: 373.2 kB
Release files / astro_emulators_toolkit-0.2.1.tar.gz
| Download URL | astro_emulators_toolkit-0.2.1.tar.gz |
|---|---|
| Size | 187.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0c3cbf1a5772e6477f385f5666cca9401786ed058b4ddc04a9c940e2bc4d184
|
|
BLAKE2b-256 checksum How to use checksums |
8a3a128a7c3fb24028026dba91d320d2eea1ee77f4cdda8c933fd1299016acec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / astro_emulators_toolkit-0.2.1-py3-none-any.whl
| Download URL | astro_emulators_toolkit-0.2.1-py3-none-any.whl |
|---|---|
| Size | 185.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6039feaf29c4b9f95ffdd5dbea5ac6d5869c9266b018e4e76d36953c6825cd07
|
|
BLAKE2b-256 checksum How to use checksums |
b2a545a17fd9147703f181beffbf94d65108fd5394a08b65705226960bba3187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for astro-emulators-toolkit 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.