Instructions to use xing0916/DDB_Edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use xing0916/DDB_Edit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("xing0916/DDB_Edit", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download config.json from xing0916/DDB_Edit: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/xing0916/DDB_Edit/resolve/main/config.json
- Command line
-
hf download hf://xing0916/DDB_Edit/config.json
-
curl -L -o config.json https://huggingface.co/xing0916/DDB_Edit/resolve/main/config.json
1.48 kB
| { | |
| "_name_or_path": "/Alpha-VLLM/Lumina-DiMOO", | |
| "activation_type": "silu", | |
| "alibi": false, | |
| "alibi_bias_max": 8.0, | |
| "architectures": [ | |
| "LLaDAForMultiModalGeneration" | |
| ], | |
| "attention_dropout": 0.0, | |
| "attention_layer_norm": false, | |
| "attention_layer_norm_with_affine": true, | |
| "auto_map": { | |
| "AutoConfig": "configuration_llada.LLaDAConfig", | |
| "AutoModel": "modeling_llada.LLaDAModelLM", | |
| "AutoModelForCausalLM": "modeling_llada.LLaDAModelLM" | |
| }, | |
| "bias_for_layer_norm": false, | |
| "block_group_size": 1, | |
| "block_type": "llama", | |
| "d_model": 4096, | |
| "embedding_dropout": 0.0, | |
| "embedding_size": 134548, | |
| "eos_token_id": 126081, | |
| "flash_attention": false, | |
| "include_bias": false, | |
| "include_qkv_bias": false, | |
| "init_cutoff_factor": null, | |
| "init_device": "meta", | |
| "init_fn": "mitchell", | |
| "init_std": 0.02, | |
| "input_emb_norm": false, | |
| "layer_norm_type": "rms", | |
| "layer_norm_with_affine": true, | |
| "mask_token_id": 126336, | |
| "max_sequence_length": 4096, | |
| "mlp_hidden_size": 12288, | |
| "mlp_ratio": 4, | |
| "model_type": "llada", | |
| "multi_query_attention": null, | |
| "n_heads": 32, | |
| "n_kv_heads": 32, | |
| "n_layers": 32, | |
| "pad_token_id": 126081, | |
| "precision": "amp_bf16", | |
| "residual_dropout": 0.0, | |
| "rms_norm_eps": 1e-05, | |
| "rope": true, | |
| "rope_full_precision": true, | |
| "rope_theta": 500000.0, | |
| "scale_logits": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.46.2", | |
| "use_cache": false, | |
| "vocab_size": 134548, | |
| "weight_tying": false | |
| } | |