Any-to-Any
Transformers
Diffusers
Safetensors
text-to-image
image-editing
image-understanding
vision-language
multimodal
autoregressive
unified-model
Instructions to use Skywork/UniPic2-SD3.5M-Kontext-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywork/UniPic2-SD3.5M-Kontext-2B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Skywork/UniPic2-SD3.5M-Kontext-2B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download text_encoder/config.json from Skywork/UniPic2-SD3.5M-Kontext-2B: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/Skywork/UniPic2-SD3.5M-Kontext-2B/resolve/main/text_encoder/config.json
- Command line
-
hf download hf://Skywork/UniPic2-SD3.5M-Kontext-2B/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/Skywork/UniPic2-SD3.5M-Kontext-2B/resolve/main/text_encoder/config.json
574 Bytes
| { | |
| "architectures": [ | |
| "CLIPTextModelWithProjection" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 0, | |
| "dropout": 0.0, | |
| "eos_token_id": 2, | |
| "hidden_act": "quick_gelu", | |
| "hidden_size": 768, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 77, | |
| "model_type": "clip_text_model", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "projection_dim": 768, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.55.0", | |
| "vocab_size": 49408 | |
| } | |