Stellar Spectra Fitting with Amortized Neural Posterior Estimation and nbi