Instructions to use duongve/NetaYume-Lumina-Image-2.0-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use duongve/NetaYume-Lumina-Image-2.0-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("duongve/NetaYume-Lumina-Image-2.0-Diffusers", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download text_encoder/config.json from duongve/NetaYume-Lumina-Image-2.0-Diffusers: direct link, hf CLI and curl.
- Browser
- Download file 974 Bytes
-
https://huggingface.co/duongve/NetaYume-Lumina-Image-2.0-Diffusers/resolve/main/text_encoder/config.json
- Command line
-
hf download hf://duongve/NetaYume-Lumina-Image-2.0-Diffusers/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/duongve/NetaYume-Lumina-Image-2.0-Diffusers/resolve/main/text_encoder/config.json
974 Bytes
| { | |
| "_name_or_path": "/runpod-volume/.cache/huggingface/hub/models--Alpha-VLLM--Lumina-Image-2.0/snapshots/53504abd8178b30685b6c4c7a4cd181ff78b73e9/text_encoder", | |
| "architectures": [ | |
| "Gemma2Model" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_logit_softcapping": 50.0, | |
| "bos_token_id": 2, | |
| "cache_implementation": "hybrid", | |
| "eos_token_id": 1, | |
| "final_logit_softcapping": 30.0, | |
| "head_dim": 256, | |
| "hidden_act": "gelu_pytorch_tanh", | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "hidden_size": 2304, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 9216, | |
| "max_position_embeddings": 8192, | |
| "model_type": "gemma2", | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 26, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 0, | |
| "query_pre_attn_scalar": 256, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 10000.0, | |
| "sliding_window": 4096, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.49.0", | |
| "use_cache": true, | |
| "vocab_size": 256000 | |
| } | |