Custom pipeline Integration for Stable Diffusion

I’m trying to incorporate a custom pipeline named lpw-stable-diffusion_xl into my application. I’ve noticed that the following snippet does not produce the desired outcome:
StableDiffusionPipeline.from_single_file(_path_to_my_safetensor, torch_dtype=torch.float16, custom_pipeline='lpw-stable-diffusion_xl')

In my search for a workaround, I stumbled upon a method that seems promising. However, I’m facing a challenge with specifying the correct argument for the first parameter in the from_pretrained function. Given that all my models are stored locally in safetensor format, attempting to use a path directly to the safetensor leads to a ValueError, indicating the path is incorrect. Could anyone offer advice or a more effective approach for this?
StableDiffusionXLPipeline.from_pretrained(_repo_id_, torch_dtype=torch.float16, use_safetensors=True, variant="fp16", custom_pipeline="lpw_stable_diffusion_xl")