Instructions to use techmonsterwang/LINA-t2i-d48w1536-sdxl512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use techmonsterwang/LINA-t2i-d48w1536-sdxl512 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("techmonsterwang/LINA-t2i-d48w1536-sdxl512", 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
| { | |
| "architectures": [ | |
| "PhiEncoderModel" | |
| ], | |
| "bos_token_id": 50256, | |
| "eos_token_id": 50256, | |
| "pad_token_id": 50256, | |
| "hidden_act": "gelu_pytorch_tanh", | |
| "hidden_size": 2560, | |
| "intermediate_size": 10240, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 2048, | |
| "model_type": "phi", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 32, | |
| "partial_rotary_factor": 0.4, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "torch_dtype": "float16", | |
| "use_cache": true, | |
| "vocab_size": 51200 | |
| } | |