Feature Extraction
Transformers
Safetensors
udream_bi_encoder
udream
text-encoder
bidirectional
Mixture of Experts
mixture-of-experts
ukrainian
text-to-image
diffusion
multilingual
custom_code
Instructions to use UDream/UDream-1.0-Bi-Encode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UDream/UDream-1.0-Bi-Encode with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="UDream/UDream-1.0-Bi-Encode", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("UDream/UDream-1.0-Bi-Encode", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from UDream/UDream-1.0-Bi-Encode: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/UDream/UDream-1.0-Bi-Encode/resolve/main/config.json
- Command line
-
hf download hf://UDream/UDream-1.0-Bi-Encode/config.json
-
curl -L -o config.json https://huggingface.co/UDream/UDream-1.0-Bi-Encode/resolve/main/config.json
1.1 kB
| { | |
| "architectures": [ | |
| "UDreamBiEncoderModel" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_udream_bi.UDreamBiEncoderConfig", | |
| "AutoModel": "modeling_udream_bi.UDreamBiEncoderModel" | |
| }, | |
| "bidirectional": true, | |
| "bos_token_id": 1, | |
| "cond_dim": 256, | |
| "d_model": 2048, | |
| "default_t2i_layers": [ | |
| -4, | |
| -3, | |
| -2 | |
| ], | |
| "dense_d_ff": 5632, | |
| "doc_token_id": 4, | |
| "dropout": 0.0, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 2, | |
| "expert_d_ff": 768, | |
| "global_every": 6, | |
| "head_dim": 128, | |
| "hidden_size": 2048, | |
| "hormone_dropout": 0.1, | |
| "init_std": 0.02, | |
| "is_decoder": false, | |
| "max_position_embeddings": 4096, | |
| "model_type": "udream_bi_encoder", | |
| "moe_top_k": 6, | |
| "n_dense_first": 2, | |
| "n_dense_last": 2, | |
| "n_experts": 32, | |
| "n_heads": 16, | |
| "n_hormones": 8, | |
| "n_kv_heads": 4, | |
| "n_layers": 26, | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 26, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 0, | |
| "rms_eps": 1e-05, | |
| "rope_theta": 10000.0, | |
| "shared_d_ff": 2048, | |
| "transformers_version": "5.24.1", | |
| "unk_token_id": 3, | |
| "vocab_size": 64128, | |
| "window": 512 | |
| } | |