Spaces:
Running
on
Zero
Running
on
Zero
bo.l
commited on
Commit
·
e552c64
1
Parent(s):
3f81f77
update rl model
Browse files
app.py
CHANGED
|
@@ -55,8 +55,10 @@ flux_pipeline.text_encoder.to(device).to(torch.bfloat16)
|
|
| 55 |
flux_pipeline.text_encoder_2.to(device).to(torch.bfloat16)
|
| 56 |
|
| 57 |
# 替换 transformer 权重
|
| 58 |
-
ckpt_path = hf_hub_download("NoobDoge/Multi_Ref_Model", "
|
| 59 |
-
|
|
|
|
|
|
|
| 60 |
flux_pipeline.transformer.to(device).to(torch.bfloat16)
|
| 61 |
|
| 62 |
# ---------------------------
|
|
|
|
| 55 |
flux_pipeline.text_encoder_2.to(device).to(torch.bfloat16)
|
| 56 |
|
| 57 |
# 替换 transformer 权重
|
| 58 |
+
ckpt_path = hf_hub_download("NoobDoge/Multi_Ref_Model", "full_model.safetensors")
|
| 59 |
+
new_weight = load_file(ckpt_path)
|
| 60 |
+
flux_pipeline.transformer.load_state_dict(new_weight)
|
| 61 |
+
# flux_pipeline.transformer = FluxTransformer2DModel.from_single_file(ckpt_path, torch_dtype=torch.bfloat16)
|
| 62 |
flux_pipeline.transformer.to(device).to(torch.bfloat16)
|
| 63 |
|
| 64 |
# ---------------------------
|
gpt.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:283b66020859309e45de2dfdd27da59e0eda8fa3f4d65ea6e1cf5a514b7978ce
|
| 3 |
+
size 94721913
|