Instructions to use furusu/framepack_f1_transformer_nf4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use furusu/framepack_f1_transformer_nf4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("furusu/framepack_f1_transformer_nf4", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download config.json from furusu/framepack_f1_transformer_nf4: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/furusu/framepack_f1_transformer_nf4/resolve/main/config.json
- Command line
-
hf download hf://furusu/framepack_f1_transformer_nf4/config.json
-
curl -L -o config.json https://huggingface.co/furusu/framepack_f1_transformer_nf4/resolve/main/config.json
1.14 kB
| { | |
| "_class_name": "HunyuanVideoTransformer3DModelPacked", | |
| "_diffusers_version": "0.33.1", | |
| "_name_or_path": "lllyasviel/FramePack_F1_I2V_HY_20250503", | |
| "attention_head_dim": 128, | |
| "guidance_embeds": true, | |
| "has_clean_x_embedder": true, | |
| "has_image_proj": true, | |
| "image_proj_dim": 1152, | |
| "in_channels": 16, | |
| "mlp_ratio": 4.0, | |
| "num_attention_heads": 24, | |
| "num_layers": 20, | |
| "num_refiner_layers": 2, | |
| "num_single_layers": 40, | |
| "out_channels": 16, | |
| "patch_size": 2, | |
| "patch_size_t": 1, | |
| "pooled_projection_dim": 768, | |
| "qk_norm": "rms_norm", | |
| "quantization_config": { | |
| "_load_in_4bit": true, | |
| "_load_in_8bit": false, | |
| "bnb_4bit_compute_dtype": "bfloat16", | |
| "bnb_4bit_quant_storage": "uint8", | |
| "bnb_4bit_quant_type": "nf4", | |
| "bnb_4bit_use_double_quant": false, | |
| "llm_int8_enable_fp32_cpu_offload": false, | |
| "llm_int8_has_fp16_weight": false, | |
| "llm_int8_skip_modules": null, | |
| "llm_int8_threshold": 6.0, | |
| "load_in_4bit": true, | |
| "load_in_8bit": false, | |
| "quant_method": "bitsandbytes" | |
| }, | |
| "rope_axes_dim": [ | |
| 16, | |
| 56, | |
| 56 | |
| ], | |
| "rope_theta": 256.0, | |
| "text_embed_dim": 4096 | |
| } | |