Rewrite model card for reader-facing clarity
Browse files16 unmodified lines17181920212223248 unmodified lines33343536373839404 unmodified lines45464748495051527 unmodified lines6061626364656667685 unmodified lines74757677787980818214 unmodified lines97989910010110210321 unmodified lines1251261271281291301315 unmodified lines1371381391401411421433 unmodified lines1471481491501511521531541555 unmodified lines1611621631641651661671 unmodified line1691701711721731741751761771781791809 unmodified lines1901911921931941951961971985 unmodified lines20420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024116 unmodified linesThis 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.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.## Installation4 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.## What was trained7 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:```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.### Stock text-encoder path14 unmodified lines- Teacher conditioning encoded through the exact stock Comfy tokenizer, Qwen taps, and Ideogram ingressprojection, stored as float16.The source prompts, teacher JSON, and adult-content corpus are not distributed in this model repository.### Eight-state trajectory supervision21 unmodified lines- image tokens only;- subtract the nearest-neighbor-resized 8×8 spatial direction, then restore each image token'soriginal L2 norm;- unconditional model unchanged.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 geometryThe geometry is fixed and was not reduced for this checkpoint:- 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.## Optimization and numerics5 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.- 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.## Step-510 checkpoint metrics9 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.## Merge and deployment format5 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.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-encoderingress path. It is not a general-purpose Qwen3-VL chat model.- Training and validation use cached 512×512 trajectories from one fixed sampler contract. Behavior atother 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 orcertified for unrestricted deployment.- 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 retentionmetrics are included in the merge manifest.## Component and licensing boundaryThe 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.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.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.16 unmodified lines17181920212223248 unmodified lines3334353637383940414 unmodified lines464748495051527 unmodified lines60616263646566675 unmodified lines737475767778798014 unmodified lines959697989910010121 unmodified lines1231241251261271281295 unmodified lines1351361371381391401413 unmodified lines1451461471481491501511525 unmodified lines1581591601611621631641 unmodified line1661671681691701711721731741751761779 unmodified lines1871881891901911921931945 unmodified lines20020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323416 unmodified linesThis 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.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`). Themerged text encoder is the recommended artifact for inference; the LoRA is provided for research,inspection, and reproducibility.## Installation4 unmodified lines```Select it in the same Ideogram 4 text-encoder loader used for the stock`qwen3vl_8b_fp8_scaled.safetensors`.## What was trained7 unmodified linesstructured Magic-Prompt JSON -> functional stock conditioning```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 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 path14 unmodified lines- Teacher conditioning encoded through the exact stock Comfy tokenizer, Qwen taps, and Ideogram ingressprojection, stored as float16.This release contains the trained weights, configuration, checkpoint metadata, and merge provenance.### Eight-state trajectory supervision21 unmodified lines- image tokens only;- subtract the nearest-neighbor-resized 8×8 spatial direction, then restore each image token'soriginal L2 norm;- 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 geometryThis 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. Adapting all 36 blocks gives every tapped depth atrainable path for reshaping the conditioning features consumed by Ideogram.## Optimization and numerics5 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.- 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 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 metrics9 unmodified lines| Peak reserved VRAM | 24.463 GiB || Behavior microbatches | 8 batch-2, 0 singleton |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 format5 unmodified lines- output tensors: 1,254;- merged projections: 252;- stock per-tensor FP8 scales preserved;- 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- 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 ingresspath; its intended use is image-conditioning inference through that interface.- Training and validation use cached 512×512 trajectories from one fixed sampler contract. Behavior atother 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. Deployment requires an application-levelsafety policy appropriate to the intended use.- Static text conditioning may only approximate a first-step, latent-dependent spatial intervention.- FP8 requantization rounds low-magnitude LoRA deltas to the available scaled-FP8 grid; per-projectionretention metrics are included in the merge manifest.## Component and licensing boundaryThe 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 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 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