Skip to content

Example of loading from_single_file with local_files_only=True #6836

Answered by asomoza
alexisrolland asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you don't have to pass the text_encoders or the tokenizers, those are managed inside but you'll need to save the config files in same paths inside the root directory from where you're running your code, so you'll need this file structure:

project_root/laion/CLIP-ViT-bigG-14-laion2B-39B-b160k
project_root/openai/clip-vit-large-patch14

Also if you don't have internet access, you'll need to provide the original_config_file file for the model, so it would be something like this:

pipeline = StableDiffusionXLPipeline.from_single_file(
    '/models/albedobond/albedobase-xl-v2.0.safetensors',
    original_config_file='path/to/sdxl/config/sd_xl_base.yaml',
    torch_dtype=torch.float16,
    lo…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@alexisrolland
Comment options

@alexisrolland
Comment options

@asomoza
Comment options

Answer selected by alexisrolland
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@alexisrolland
Comment options

@SSLemon
Comment options

@asomoza
Comment options

@SSLemon
Comment options

@SSLemon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants