def ln_to_fp32(module):
    """
    Convert all parameters in LayerNorm of model to float32.
    """
    for child in module.children():
        if isinstance(child, LayerNorm):
            child.weight.data = child.weight.data.float()
            if child.bias is not None:
                child.bias.data = child.bias.data.float()
        else:
            ln_to_fp32(child)

    Convert all parameters in LayerNorm of model to float32.
    
stable_whisper/whisper_compatibility.py