Download code/models/tt_dit/reference/ideogram4/constants.py from sunandbean/flux2-klein-p100a: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/sunandbean/flux2-klein-p100a/resolve/main/code/models/tt_dit/reference/ideogram4/constants.py
- Command line
-
hf download hf://sunandbean/flux2-klein-p100a/code/models/tt_dit/reference/ideogram4/constants.py
-
curl -L -o constants.py https://huggingface.co/sunandbean/flux2-klein-p100a/resolve/main/code/models/tt_dit/reference/ideogram4/constants.py
737 Bytes
| # SPDX-FileCopyrightText: © 2026 Ideogram AI | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # Adapted from https://github.com/ideogram-oss/ideogram4 (src/ideogram4/constants.py), | |
| # licensed under Apache-2.0. Modified by Tenstorrent as the PyTorch reference for the tt-metal port. | |
| SEQUENCE_PADDING_INDICATOR = -1 | |
| OUTPUT_IMAGE_INDICATOR = 2 | |
| LLM_TOKEN_INDICATOR = 3 | |
| # Image grid coordinates start at this offset so they never collide with text token indices | |
| # (text positions start at 0 and never exceed max_text_tokens, which is well below this). | |
| IMAGE_POSITION_OFFSET = 65536 | |
| # Layers of Qwen3-VL whose hidden states are concatenated and fed to the transformer. | |
| QWEN3_VL_ACTIVATION_LAYERS = (0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 35) | |