Rewrite model card for reader-facing clarity
Browse files16 unmodified lines171819202120212223248 unmodified lines33343536373637383940414 unmodified lines4647484849495051527 unmodified lines60616263646563646566675 unmodified lines737475777879767778798014 unmodified lines959697100989910010121 unmodified lines1231241251281261271281295 unmodified lines1351361371401381391401413 unmodified lines1451461471501511521481491501511525 unmodified lines1581591601641611621631641 unmodified line1661671681721731741751761771691701711721731741751761779 unmodified lines1871881891931941951901911921931945 unmodified lines20020120220720320420520620720820921421521621021121221321421522022121621721822322421922022122222322822923023122422522622723323423523622822923023123823924024123223323416 unmodified lines
This repository contains an experimental, stock-shaped replacement for the Qwen3-VL 8B text encoderused by Ideogram 4, plus the matching training LoRA. It is intended to make Ideogram 4 respond toordinary natural-language prompts more like the stock model responds to structured Magic-Prompt JSON,without a runtime prompt rewriter, custom node, companion language model, or patched ComfyUI.ordinary natural-language prompts more like the stock model responds to structured Magic-Prompt JSON.It operates as a direct checkpoint replacement through the stock ComfyUI loader.
This release is the first strength-0.2 milestone. The nominal 500-step milestone resolved to the firstcomplete checkpoint in that checkpoint band, **optimizer step 510**.8 unmodified lines| `manifests/merge_step_00000510.json` | Merge inputs, output hash, and per-projection quantization metrics | — | See `SHA256SUMS` || `COMPATIBILITY.md` | Component boundary, provenance, and third-party compatibility notice | — | See `SHA256SUMS` |
The LoRA uses this project's native tensor names (`layers.N.<projection>.lora_a` and `lora_b`) and isnot advertised as a PEFT or generic ComfyUI LoRA. Most users should use the merged text encoder.The LoRA uses this project's native tensor names (`layers.N.<projection>.lora_a` and `lora_b`). Themerged text encoder is the recommended artifact for inference; the LoRA is provided for research,inspection, and reproducibility.
## Installation
4 unmodified lines```
Select it in the same Ideogram 4 text-encoder loader used for the stock`qwen3vl_8b_fp8_scaled.safetensors`. No inference-time LoRA loader or source-code modification isrequired.`qwen3vl_8b_fp8_scaled.safetensors`.
## What was trained
7 unmodified linesstructured Magic-Prompt JSON -> functional stock conditioning```
Each natural-language prompt therefore has a structured teacher target. The adapted text encoder isnot trained to reproduce the teacher's token sequence or Qwen activations. Natural-language and JSONsequences differ in length, so the student is instead optimized at Ideogram's image-side response:Each natural-language prompt therefore has a structured teacher target. Because the natural-languageand JSON sequences differ in length, training matches their effect at Ideogram's image-side response:
```textc_T = stock_text_encoder(teacher_json)5 unmodified linesloss = mean((v_S - v_T) ** 2)```
Ideogram parameters are frozen, but gradients remain enabled through the student conditional forwardso the velocity loss can update the text-encoder adapters. There is no stock-natural-language retentionterm: preserving stock NL behavior would preserve the behavior this project is replacing.Ideogram parameters remain frozen while gradients pass through the student conditional forward to thetext-encoder adapters. The objective is entirely focused on matching the structured teacher response.
### Stock text-encoder path
14 unmodified lines- Teacher conditioning encoded through the exact stock Comfy tokenizer, Qwen taps, and Ideogram ingress projection, stored as float16.
The source prompts, teacher JSON, and adult-content corpus are not distributed in this model repository.This release contains the trained weights, configuration, checkpoint metadata, and merge provenance.
### Eight-state trajectory supervision
21 unmodified lines- image tokens only;- subtract the nearest-neighbor-resized 8×8 spatial direction, then restore each image token's original L2 norm;- unconditional model unchanged.- the correction is confined to the positive conditional pass.
Only the first cached target velocity is directly corrected. The later seven target velocities areuncorrected but evaluated on the trajectory produced by the corrected first update. The student always5 unmodified lines
## Adapter geometry
The geometry is fixed and was not reduced for this checkpoint:This checkpoint uses the following adapter geometry:
- rank: 64;- alpha: 64;3 unmodified lines- trainable parameters: 174,587,904;- LoRA tensors: 504.
Per block, the adapter contains 4,849,664 parameters. The all-block topology is intentional: the task isa distributed change in how the 13 tapped Qwen layers express conditioning, not memorization in a smallupper-block adapter.Per block, the adapter contains 4,849,664 parameters. Adapting all 36 blocks gives every tapped depth atrainable path for reshaping the conditioning features consumed by Ideogram.
## Optimization and numerics
5 unmodified lines- Adaptive packing: batch 2 through 1,017 student tokens; longer examples use singleton microbatches.- Gradient clipping: global norm `1.0`.- Optimizer state is held on CPU between updates.- Unused multimodal Qwen components are pruned from the training graph; all 36 text blocks remain.- The training graph contains the Qwen text transformer with all 36 text blocks.- Initial learning rate: `3.2e-4`.
Training is quantization-aware for the final deployment format. For each adapted projection, the forward1 unmodified linescale to `float8_e4m3fn`. A straight-through estimator supplies LoRA gradients without constructing adense base-weight gradient.
Learning rate is not tied to a fixed step horizon. A transactional controller evaluates fixed 50-stepwindows every 10 steps, estimates log-loss descent relative to robust residual noise, confirms a failedwindow for 20 additional steps, locates the elbow, restores the complete optimizer/sampler/RNG state atthe rollback boundary, and continues at half the LR. A rollback is issued only when both deterministicheld-out loss and interval-averaged training loss fail their descent tests. The LR floor is positive anddoes not terminate training.Learning rate is managed by a transactional loss-curve controller. It evaluates fixed 50-step windowsevery 10 steps, estimates log-loss descent relative to robust residual noise, confirms a failed windowfor 20 additional steps, locates the elbow, restores the complete optimizer/sampler/RNG state at therollback boundary, and continues at half the LR. A rollback requires both deterministic held-out lossand interval-averaged training loss to fail their descent tests. Reaching the positive LR floor allowstraining to continue.
## Step-510 checkpoint metrics
9 unmodified lines| Peak reserved VRAM | 24.463 GiB || Behavior microbatches | 8 batch-2, 0 singleton |
Velocity MSE is a training/health proxy, not a complete image-quality metric. The release decision wasmade from fixed-seed stock/teacher/checkpoint image comparisons and owner visual review. No standardizedperceptual benchmark, OCR benchmark, or broad safety evaluation is claimed for this checkpoint.Evaluation combines velocity MSE with fixed-seed stock/teacher/checkpoint image comparisons and ownervisual review. Standardized perceptual, OCR, and broad safety benchmarking remain future work.
## Merge and deployment format
5 unmodified lines- output tensors: 1,254;- merged projections: 252;- stock per-tensor FP8 scales preserved;- no training-only adapter keys added to the merged file.- tensor inventory remains compatible with the stock text-encoder checkpoint layout.
The base file is byte-identical to the text encoder published in `Comfy-Org/Qwen3-VL` and`Comfy-Org/Ideogram-4` under the base SHA above.
## Limitations
- This is an early step-510 research checkpoint, not the end of the longer training lineage.- The learned conditioning is specific to Ideogram 4's frozen conditional model and Comfy text-encoder ingress path. It is not a general-purpose Qwen3-VL chat model.- Step 510 is the first public research milestone from a longer training lineage.- The learned conditioning targets Ideogram 4's frozen conditional model and Comfy text-encoder ingress path; its intended use is image-conditioning inference through that interface.- Training and validation use cached 512×512 trajectories from one fixed sampler contract. Behavior at other resolutions, schedules, samplers, and seeds requires independent evaluation.- Teacher targets can be imperfect or semantically inconsistent despite validation.- The corpus deliberately spans adult source-rating groups. The model has not been safety-aligned or certified for unrestricted deployment.- The corpus deliberately spans adult source-rating groups. Deployment requires an application-level safety policy appropriate to the intended use.- Static text conditioning may only approximate a first-step, latent-dependent spatial intervention.- FP8 requantization does not retain every low-magnitude LoRA delta exactly; per-projection retention metrics are included in the merge manifest.- FP8 requantization rounds low-magnitude LoRA deltas to the available scaled-FP8 grid; per-projection retention metrics are included in the merge manifest.
## Component and licensing boundary
The files in this repository contain only modified Qwen3-VL text-encoder parameters. They start fromthe independently published `Comfy-Org/Qwen3-VL` scaled-FP8 checkpoint and are released under itsApache-2.0 license. They contain no Ideogram DiT, VAE, sampler, tokenizer implementation, source code,or other Ideogram model parameters.The release artifacts consist exclusively of modified Qwen3-VL text-encoder parameters. They startfrom the independently published `Comfy-Org/Qwen3-VL` scaled-FP8 checkpoint and are released under itsApache-2.0 license.
During training, a separately obtained, frozen Ideogram 4 model was used as a differentiable downstreamevaluator of the conditioning interface. Its weights were never trainable, copied into the adapter, orincluded in either release file. The released text encoder cannot generate images or substitute forIdeogram by itself.During training, a separately obtained, frozen Ideogram 4 model served as a differentiable downstreamevaluator of the conditioning interface. Optimization updated the Qwen adapter parameters, and therelease files contain the resulting Qwen text-encoder weights.
Ideogram 4 is third-party software/modeling infrastructure and is not distributed here. Anyone choosingto use these Qwen weights with Ideogram must obtain Ideogram separately and is independently responsiblefor reviewing and complying with Ideogram's license and usage policy. This repository is not affiliatedwith or endorsed by Ideogram, Inc.Ideogram 4 is acquired separately under its own license and usage policy. Users combining the twocomponents are responsible for the terms applicable to each. This repository is independently producedand has no affiliation with Ideogram, Inc.README.md+41-48