Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat: pin LTX-specific conditioner candidate (#4470)

Adam Eivyfdc87070705b
diff --git a/docs/features/video-text-encoders.md b/docs/features/video-text-encoders.md
index 3a8372e7d2..60d83c8ced 100644
--- a/docs/features/video-text-encoders.md
+++ b/docs/features/video-text-encoders.md
@@ -240,14 +240,13 @@ abliterated Gemma 4 12B a plausible drop-in. A different Gemma generation is not
Gemma 3's tokenizer, vocabulary and layer count have no mapping onto the module
tree mlx-lm's `gemma4` builds.
-### Status: initial substitutes failed; stock only
+### Status: initial substitutes failed; LTX-specific follow-up gated
-Two substitutes are declared in the registry (`ltx25-abliterated-4bit`,
-`ltx25-heretic-8bit`) and both carry `verified: false`, which keeps them out of
-the picker **and** out of the download lane — an unverified id is rejected by
-route validation and its weights cannot be pulled. The LTX-2.5 picker therefore
-hides itself today, exactly as it does for a runtime with no substitutes at all.
-The entries remain declared only as pinned failure records.
+The two initial substitutes (`ltx25-abliterated-4bit`,
+`ltx25-heretic-8bit`) carry `verified: false`, which keeps them out of the
+picker **and** out of the download lane — an unverified id is rejected by route
+validation and its weights cannot be pulled. The entries remain declared only
+as pinned failure records.
The gate ran on the pinned production runtime with the same seed within each A/B,
at 512x320, 33 frames, 24 fps, 8 guided steps plus 3 stage-two steps, and CFG 3.
@@ -265,6 +264,22 @@ benign structure **and** visibly improve at least one controlled challenge befor
its `verified` flag can be enabled. The repeated-seed candidate search is tracked
in #4470.
+That search identified `nightmedia/gemma-4-12B-it-uncensored-heretic-mxfp8-mlx`
+at revision `20c9f4b167e56f3f749ea3e428188a5e7a35318a`. It is an exact MLX
+quantization of the Heretic language backbone named by DeepNeuralNerd's
+LTX-2.5-specific ComfyUI conversion. The ComfyUI artifact combines that
+backbone with LTX's own projections; PortOS already loads those projections and
+the connector from the pinned model pack, so the MLX candidate preserves the
+same separation rather than duplicating them inside the substitute.
+
+The candidate is pinned as `ltx25-ltx-heretic-mxfp8` with all three weight
+shards and support files (12,375,013,657 published bytes). Its index contains
+all 48 language layers, the embedding and final norm at the required 3840-wide /
+262144-vocabulary geometry, and eleven residual visual-only tensors handled by
+the existing exact-prefix sanitizer; MXFP8 metadata remains untouched. It stays
+`verified: false` until the production matrix confirms the behavioral gate, so
+LTX-2.5 remains stock-only while that evidence is incomplete.
+
## Related
- `server/lib/videoTextEncoders.js` — the registry, and the one place a new entry goes
diff --git a/server/lib/videoTextEncoders.js b/server/lib/videoTextEncoders.js
index ee521cf3cd..1bf6da78ac 100644
--- a/server/lib/videoTextEncoders.js
+++ b/server/lib/videoTextEncoders.js
@@ -89,7 +89,7 @@
* vocabulary and layer count have no mapping onto the module tree mlx-lm's
* `gemma4` builds.
*
- * `verified` — COHERENCE GATE COMPLETED 2026-08-16 (#4320). Both candidates
+ * `verified` — COHERENCE GATE COMPLETED 2026-08-16 (#4320). Both initial candidates
* strict-loaded and produced finite connector inputs on the pinned runtime,
* then rendered a fixed-seed matrix at 512x320 / 33 frames / 24 fps / 8+3
* steps / CFG 3: one benign motion prompt plus staged-bite, explicit-gesture
@@ -103,9 +103,19 @@
* Both therefore remain `verified: false`, hidden from
* `videoTextEncoderOptions` and the download lane (see
* `isOfferedTextEncoder`). They stay declared as pinned failure records so a
- * later candidate search does not repeat either download or gate. LTX-2.5 is
- * stock-only until a substitute passes BOTH benign structural coherence and a
- * repeatable target-behavior improvement; that search continues in #4470.
+ * later candidate search does not repeat either download or gate.
+ *
+ * #4470 adds a third, still-gated candidate from the exact Heretic language
+ * backbone used by DeepNeuralNerd's LTX-2.5-specific ComfyUI conversion. That
+ * conversion keeps LTX's projection weights; PortOS already loads the pinned
+ * pack's connector separately, so the equivalent MLX artifact is the same
+ * language tower paired with that stock connector. Its three-shard MXFP8 export
+ * preserves all 48 language layers and the checkpoint's quantization metadata,
+ * while the existing narrow unified-checkpoint sanitizer removes only the
+ * eleven residual `vision_embedder.*` tensors. It remains unreachable until the
+ * repeated-seed render matrix passes. LTX-2.5 is stock-only until a substitute
+ * passes BOTH benign structural coherence and a repeatable target-behavior
+ * improvement.
*/
import { ServerError } from './errorHandler.js';
@@ -219,9 +229,10 @@ const TEXT_ENCODERS_BY_RUNTIME = Object.freeze({
// themselves. All of them are inputs to the shim the runner builds, and
// `sizeBytes` is their exact published total.
//
- // Both substitutes failed the 2026-08-16 coherence/behavior gate described
- // in the docblock. They remain declared as pinned provenance records, but
- // `verified: false` keeps them out of the picker and download lane.
+ // The first two substitutes failed the 2026-08-16 coherence/behavior gate
+ // described in the docblock. The third is the LTX-specific follow-up being
+ // evaluated in #4470. All remain pinned provenance records, while
+ // `verified: false` keeps every non-passing entry out of both public lanes.
ltx25: Object.freeze([
STOCK_LTX25,
Object.freeze({
@@ -296,6 +307,41 @@ const TEXT_ENCODERS_BY_RUNTIME = Object.freeze({
reviewedAt: '2026-08-15',
}),
}),
+ Object.freeze({
+ id: 'ltx25-ltx-heretic-mxfp8',
+ label: 'LTX Heretic uncensored — Gemma 4 12B MXFP8',
+ description:
+ 'The Heretic language backbone used by an LTX-2.5-specific conditioner conversion, '
+ + 'paired with the model pack\'s original LTX connector. Gated pending the repeated-seed render matrix.',
+ // #4470: the static gate passes (48 complete language layers, exact
+ // geometry, immutable MXFP8 metadata). Keep this false until the
+ // production render matrix proves benign coherence and repeatable gains.
+ verified: false,
+ repo: 'nightmedia/gemma-4-12B-it-uncensored-heretic-mxfp8-mlx',
+ revision: '20c9f4b167e56f3f749ea3e428188a5e7a35318a',
+ // Exact MLX quantization of llmfan46's Heretic backbone — the same source
+ // named by DeepNeuralNerd's LTX-2.5 conversion. The unified checkpoint
+ // carries eleven visual-only `vision_embedder.*` tensors; the runner's
+ // narrow sanitizer drops those while strict-loading every language key.
+ configOverrides: Object.freeze({ model_type: 'gemma4' }),
+ files: Object.freeze([
+ 'config.json',
+ 'generation_config.json',
+ 'chat_template.jinja',
+ 'model-00001-of-00003.safetensors',
+ 'model-00002-of-00003.safetensors',
+ 'model-00003-of-00003.safetensors',
+ 'model.safetensors.index.json',
+ 'tokenizer.json',
+ 'tokenizer_config.json',
+ ]),
+ sizeBytes: 12375013657,
+ disclosure: Object.freeze({
+ modelCardUrl: 'https://huggingface.co/nightmedia/gemma-4-12B-it-uncensored-heretic-mxfp8-mlx',
+ weightsLicense: GEMMA_TERMS,
+ reviewedAt: '2026-08-17',
+ }),
+ }),
]),
});
diff --git a/server/lib/videoTextEncoders.test.js b/server/lib/videoTextEncoders.test.js
index e695086d20..b87c32f7c3 100644
--- a/server/lib/videoTextEncoders.test.js
+++ b/server/lib/videoTextEncoders.test.js
@@ -112,7 +112,11 @@ describe('videoTextEncoders', () => {
// the picker, not accepted by route validation, and not downloadable — an
// 11-13 GB pull for something no render can select is pure waste.
describe('unverified substitutes', () => {
- const UNVERIFIED = ['ltx25-abliterated-4bit', 'ltx25-heretic-8bit'];
+ const UNVERIFIED = [
+ 'ltx25-abliterated-4bit',
+ 'ltx25-heretic-8bit',
+ 'ltx25-ltx-heretic-mxfp8',
+ ];
it('offers ltx25 only its built-in conditioner', () => {
expect(videoTextEncoderOptions(LTX25).map((option) => option.id)).toEqual([STOCK_TEXT_ENCODER_ID]);
@@ -187,6 +191,9 @@ describe('videoTextEncoders', () => {
expect(declaredVideoTextEncoders()
.find((entry) => entry.id === 'ltx25-heretic-8bit').configOverrides)
.toEqual({ model_type: 'gemma4' });
+ expect(declaredVideoTextEncoders()
+ .find((entry) => entry.id === 'ltx25-ltx-heretic-mxfp8').configOverrides)
+ .toEqual({ model_type: 'gemma4' });
});
});
diff --git a/server/services/videoGen/local.test.js b/server/services/videoGen/local.test.js
index d092b070fd..d19fe30804 100644
--- a/server/services/videoGen/local.test.js
+++ b/server/services/videoGen/local.test.js
@@ -1110,7 +1110,11 @@ describe('generateVideo — LTX-2.5 sibling runtime spawn', () => {
// Every ltx25 substitute is still gated behind the coherence check, so the
// route/service path must reject its id rather than half-wire a render.
- it.each(['ltx25-abliterated-4bit', 'ltx25-heretic-8bit'])('rejects the unverified %s', async (textEncoderId) => {
+ it.each([
+ 'ltx25-abliterated-4bit',
+ 'ltx25-heretic-8bit',
+ 'ltx25-ltx-heretic-mxfp8',
+ ])('rejects the unverified %s', async (textEncoderId) => {
await expect(generateVideo({
jobId: `ltx25-unverified-${textEncoderId}`,
pythonPath: '/usr/bin/python3',