def METHOD_NAME():
    if shared.args.xformers:
        transformers.models.llama.modeling_llama.LlamaAttention.forward = xformers_forward
        logger.info("Replaced attention with xformers_attention")
    elif shared.args.sdp_attention:
        transformers.models.llama.modeling_llama.LlamaAttention.forward = sdp_attention_forward
        logger.info("Replaced attention with sdp_attention")