Instructions to use wuqing157/tiny-pan2-modular-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wuqing157/tiny-pan2-modular-pipe with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("wuqing157/tiny-pan2-modular-pipe", 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 text_encoder/config.json from wuqing157/tiny-pan2-modular-pipe: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/wuqing157/tiny-pan2-modular-pipe/resolve/main/text_encoder/config.json
- Command line
-
hf download hf://wuqing157/tiny-pan2-modular-pipe/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/wuqing157/tiny-pan2-modular-pipe/resolve/main/text_encoder/config.json
1.02 kB
| { | |
| "architectures": [ | |
| "Qwen3_5TextModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": null, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "head_dim": 16, | |
| "hidden_act": "silu", | |
| "hidden_size": 32, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 64, | |
| "layer_types": [ | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention" | |
| ], | |
| "linear_conv_kernel_dim": 4, | |
| "linear_key_head_dim": 8, | |
| "linear_num_key_heads": 2, | |
| "linear_num_value_heads": 2, | |
| "linear_value_head_dim": 8, | |
| "max_position_embeddings": 32768, | |
| "model_type": "qwen3_5_text", | |
| "num_attention_heads": 2, | |
| "num_hidden_layers": 4, | |
| "num_key_value_heads": 1, | |
| "pad_token_id": null, | |
| "partial_rotary_factor": 0.25, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "partial_rotary_factor": 0.25, | |
| "rope_theta": 10000.0, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.13.0", | |
| "use_cache": true, | |
| "vocab_size": 248320 | |
| } | |