# Inference and generation components