ariG23498 HF staff commited on
Commit
fc72d85
1 Parent(s): d4fec5a

adding login details

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -61,12 +61,16 @@ The merged model retains the detail of the Large version and the speed of the Tu
61
 
62
  ### Code to Merge Models
63
 
 
 
 
64
  ```python
65
  from diffusers import SD3Transformer2DModel
66
  from huggingface_hub import snapshot_download
67
  from accelerate import init_empty_weights
68
  from diffusers.models.model_loading_utils import load_model_dict_into_meta
69
  import safetensors.torch
 
70
  import glob
71
  import torch
72
 
@@ -107,8 +111,6 @@ load_model_dict_into_meta(model, merged_state_dict)
107
 
108
  model.to(torch.bfloat16).save_pretrained("transformer")
109
 
110
- from huggingface_hub import upload_folder
111
-
112
  upload_folder(
113
  repo_id="ariG23498/sd-3.5-merged",
114
  folder_path="transformer",
 
61
 
62
  ### Code to Merge Models
63
 
64
+ To access the Stable Diffusion 3.5 models, one needs to fill the forms in the corresponding repositories, and then `huggingface_cli login` to let your system know
65
+ who you are and whether you have access to the models!
66
+
67
  ```python
68
  from diffusers import SD3Transformer2DModel
69
  from huggingface_hub import snapshot_download
70
  from accelerate import init_empty_weights
71
  from diffusers.models.model_loading_utils import load_model_dict_into_meta
72
  import safetensors.torch
73
+ from huggingface_hub import upload_folder
74
  import glob
75
  import torch
76
 
 
111
 
112
  model.to(torch.bfloat16).save_pretrained("transformer")
113
 
 
 
114
  upload_folder(
115
  repo_id="ariG23498/sd-3.5-merged",
116
  folder_path="transformer",