A multimodal sleep foundation model based on polysomnography data can predict the risk for multiple conditions.