Update README.md
Browse files
README.md
CHANGED
|
@@ -31,6 +31,11 @@ def get_dummy_components(num_layers: int = 1, num_single_layers: int = 1):
|
|
| 31 |
pooled_projection_dim=32,
|
| 32 |
axes_dims_rope=[4, 4, 8],
|
| 33 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
clip_text_encoder_config = CLIPTextConfig(
|
| 35 |
bos_token_id=0,
|
| 36 |
eos_token_id=2,
|
|
@@ -107,5 +112,4 @@ if __name__ == "__main__":
|
|
| 107 |
components = get_dummy_components()
|
| 108 |
pipeline = FluxKontextPipeline(**components)
|
| 109 |
pipeline.push_to_hub("hf-internal-testing/tiny-flux-kontext-pipe-gated-silu")
|
| 110 |
-
|
| 111 |
```
|
|
|
|
| 31 |
pooled_projection_dim=32,
|
| 32 |
axes_dims_rope=[4, 4, 8],
|
| 33 |
)
|
| 34 |
+
transformer.save_pretrained(
|
| 35 |
+
"dummy_flux_sharded_transformer/",
|
| 36 |
+
safe_serialization=True,
|
| 37 |
+
max_shard_size="200KB"
|
| 38 |
+
)
|
| 39 |
clip_text_encoder_config = CLIPTextConfig(
|
| 40 |
bos_token_id=0,
|
| 41 |
eos_token_id=2,
|
|
|
|
| 112 |
components = get_dummy_components()
|
| 113 |
pipeline = FluxKontextPipeline(**components)
|
| 114 |
pipeline.push_to_hub("hf-internal-testing/tiny-flux-kontext-pipe-gated-silu")
|
|
|
|
| 115 |
```
|