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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Add upgradeable Apple video options and fix FastMetal 5B rendering (#7735)
[._.]/6ec8049ba033
diff --git a/data.reference/media-models.json b/data.reference/media-models.jsonindex 4fb9002c37..c1b0a7e3f7 100644--- a/data.reference/media-models.json+++ b/data.reference/media-models.json@@ -122,10 +122,6 @@]},{- "id": "minimax_h3_8bit",- "name": "MiniMax H3 MLX 8-bit (joint video + audio, ~103 GB download, 128 GB RAM)",- "repo": "pipenetwork/MiniMax-H3-MLX-8bit",- "revision": "3ac52081470b0488921c3ec3ba84a39097bf2361","runtime": "minimax_h3","supportedModes": ["text",@@ -238,6 +234,10 @@]}],+ "id": "minimax_h3_8bit",+ "name": "MiniMax H3 MLX 8-bit (reference quality, very slow, 128 GB RAM)",+ "repo": "pipenetwork/MiniMax-H3-MLX-8bit",+ "revision": "3ac52081470b0488921c3ec3ba84a39097bf2361","disclosure": {"modelCardUrl": "https://huggingface.co/pipenetwork/MiniMax-H3-MLX-8bit","weightsLicense": {@@ -275,6 +275,312 @@}]},+ {+ "runtime": "minimax_h3",+ "supportedModes": [+ "text",+ "image",+ "fflf"+ ],+ "defaultFrames": 124,+ "frameOptions": [+ 107,+ 124,+ 141,+ 158,+ 175,+ 192,+ 209,+ 226,+ 243,+ 260,+ 277,+ 294,+ 311,+ 328,+ 345,+ 362+ ],+ "fpsOptions": [+ 24+ ],+ "defaultWidth": 1344,+ "defaultHeight": 768,+ "resolutionStep": 32,+ "resolutionOptions": [+ {+ "label": "1536x672 (21:9 H3 native)",+ "w": 1536,+ "h": 672+ },+ {+ "label": "1344x768 (16:9 H3 default)",+ "w": 1344,+ "h": 768+ },+ {+ "label": "1024x768 (4:3 H3 native)",+ "w": 1024,+ "h": 768+ },+ {+ "label": "768x768 (1:1 H3 native)",+ "w": 768,+ "h": 768+ },+ {+ "label": "768x1024 (3:4 H3 native)",+ "w": 768,+ "h": 1024+ },+ {+ "label": "768x1344 (9:16 H3 native)",+ "w": 768,+ "h": 1344+ }+ ],+ "memoryGb": 128,+ "steps": 9,+ "guidance": 0,+ "samplerLocked": true,+ "samplerNote": "MiniMax H3 is CFG-distilled; this profile locks the MLX reference 9-point sigma schedule (8 DiT forwards) and does not use CFG.",+ "supportsNegativePrompt": false,+ "supportsTiling": false,+ "supportsDisableAudio": false,+ "requiredWeights": [+ {+ "repo": "MiniMaxAI/MiniMax-H3",+ "revision": "6818f6c32d12b210915e44ad56a4228c2608f160",+ "files": [+ "LICENSE",+ "FL2VA/model_index.json",+ "FL2VA/audio_vae/config.json",+ "FL2VA/audio_vae/metadata.json",+ "FL2VA/audio_vae/model.safetensors",+ "FL2VA/text_encoder/config.json",+ "FL2VA/text_encoder/model-00001-of-00014.safetensors",+ "FL2VA/text_encoder/model-00002-of-00014.safetensors",+ "FL2VA/text_encoder/model-00003-of-00014.safetensors",+ "FL2VA/text_encoder/model-00004-of-00014.safetensors",+ "FL2VA/text_encoder/model-00005-of-00014.safetensors",+ "FL2VA/text_encoder/model-00006-of-00014.safetensors",+ "FL2VA/text_encoder/model-00007-of-00014.safetensors",+ "FL2VA/text_encoder/model-00008-of-00014.safetensors",+ "FL2VA/text_encoder/model-00009-of-00014.safetensors",+ "FL2VA/text_encoder/model-00010-of-00014.safetensors",+ "FL2VA/text_encoder/model-00011-of-00014.safetensors",+ "FL2VA/text_encoder/model-00014-of-00014.safetensors",+ "FL2VA/text_encoder/model.safetensors.index.json",+ "FL2VA/processor/chat_template.json",+ "FL2VA/processor/merges.txt",+ "FL2VA/processor/preprocessor_config.json",+ "FL2VA/processor/tokenizer.json",+ "FL2VA/processor/tokenizer_config.json",+ "FL2VA/processor/video_preprocessor_config.json",+ "FL2VA/processor/vocab.json",+ "FL2VA/tokenizer/merges.txt",+ "FL2VA/tokenizer/tokenizer.json",+ "FL2VA/tokenizer/tokenizer_config.json",+ "FL2VA/tokenizer/vocab.json",+ "FL2VA/video_vae/config.json",+ "FL2VA/video_vae/source/config.json",+ "FL2VA/video_vae/source/model.safetensors"+ ]+ }+ ],+ "id": "minimax_h3_6bit",+ "name": "MiniMax H3 MLX 6-bit (reference quality, very slow, 128 GB RAM)",+ "repo": "pipenetwork/MiniMax-H3-MLX-6bit",+ "revision": "58ea790a856734132293164b8305c8bb80bee6fe",+ "disclosure": {+ "modelCardUrl": "https://huggingface.co/pipenetwork/MiniMax-H3-MLX-6bit",+ "weightsLicense": {+ "name": "MiniMax H3 Community License",+ "url": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE"+ },+ "runtimeLicense": {+ "name": "Apache-2.0",+ "url": "https://github.com/PipeNetwork/minimax-h3-mlx/blob/fcd9e9b79a1d6018d91ac477c0968de1fa067e49/LICENSE"+ },+ "reviewedAt": "2026-09-19"+ },+ "termsGate": {+ "id": "minimax-h3-community-license-2026-08-02",+ "title": "MiniMax H3 eligibility and terms",+ "summary": "MiniMax grants use only in its Applicable Territory. The license excludes the European Union, United Kingdom, Republic of Korea, and United States of America.",+ "acknowledgement": "I confirm I am in the Applicable Territory and agree to the MiniMax H3 Community License and its Acceptable Use Policy.",+ "licenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE",+ "excludedTerritories": [+ "European Union",+ "United Kingdom",+ "Republic of Korea",+ "United States of America"+ ]+ },+ "memoryProfiles": [+ {+ "id": "unified-6bit",+ "name": "Unified 6-bit",+ "description": "Quantized DiT with the shared bf16 conditioner. Conservative memory floor pending end-to-end measurements.",+ "minMemoryGb": 128,+ "minVramGb": null,+ "unified": true+ }+ ]+ },+ {+ "runtime": "minimax_h3",+ "supportedModes": [+ "text",+ "image",+ "fflf"+ ],+ "defaultFrames": 124,+ "frameOptions": [+ 107,+ 124,+ 141,+ 158,+ 175,+ 192,+ 209,+ 226,+ 243,+ 260,+ 277,+ 294,+ 311,+ 328,+ 345,+ 362+ ],+ "fpsOptions": [+ 24+ ],+ "defaultWidth": 1344,+ "defaultHeight": 768,+ "resolutionStep": 32,+ "resolutionOptions": [+ {+ "label": "1536x672 (21:9 H3 native)",+ "w": 1536,+ "h": 672+ },+ {+ "label": "1344x768 (16:9 H3 default)",+ "w": 1344,+ "h": 768+ },+ {+ "label": "1024x768 (4:3 H3 native)",+ "w": 1024,+ "h": 768+ },+ {+ "label": "768x768 (1:1 H3 native)",+ "w": 768,+ "h": 768+ },+ {+ "label": "768x1024 (3:4 H3 native)",+ "w": 768,+ "h": 1024+ },+ {+ "label": "768x1344 (9:16 H3 native)",+ "w": 768,+ "h": 1344+ }+ ],+ "memoryGb": 128,+ "steps": 9,+ "guidance": 0,+ "samplerLocked": true,+ "samplerNote": "MiniMax H3 is CFG-distilled; this profile locks the MLX reference 9-point sigma schedule (8 DiT forwards) and does not use CFG.",+ "supportsNegativePrompt": false,+ "supportsTiling": false,+ "supportsDisableAudio": false,+ "requiredWeights": [+ {+ "repo": "MiniMaxAI/MiniMax-H3",+ "revision": "6818f6c32d12b210915e44ad56a4228c2608f160",+ "files": [+ "LICENSE",+ "FL2VA/model_index.json",+ "FL2VA/audio_vae/config.json",+ "FL2VA/audio_vae/metadata.json",+ "FL2VA/audio_vae/model.safetensors",+ "FL2VA/text_encoder/config.json",+ "FL2VA/text_encoder/model-00001-of-00014.safetensors",+ "FL2VA/text_encoder/model-00002-of-00014.safetensors",+ "FL2VA/text_encoder/model-00003-of-00014.safetensors",+ "FL2VA/text_encoder/model-00004-of-00014.safetensors",+ "FL2VA/text_encoder/model-00005-of-00014.safetensors",+ "FL2VA/text_encoder/model-00006-of-00014.safetensors",+ "FL2VA/text_encoder/model-00007-of-00014.safetensors",+ "FL2VA/text_encoder/model-00008-of-00014.safetensors",+ "FL2VA/text_encoder/model-00009-of-00014.safetensors",+ "FL2VA/text_encoder/model-00010-of-00014.safetensors",+ "FL2VA/text_encoder/model-00011-of-00014.safetensors",+ "FL2VA/text_encoder/model-00014-of-00014.safetensors",+ "FL2VA/text_encoder/model.safetensors.index.json",+ "FL2VA/processor/chat_template.json",+ "FL2VA/processor/merges.txt",+ "FL2VA/processor/preprocessor_config.json",+ "FL2VA/processor/tokenizer.json",+ "FL2VA/processor/tokenizer_config.json",+ "FL2VA/processor/video_preprocessor_config.json",+ "FL2VA/processor/vocab.json",+ "FL2VA/tokenizer/merges.txt",+ "FL2VA/tokenizer/tokenizer.json",+ "FL2VA/tokenizer/tokenizer_config.json",+ "FL2VA/tokenizer/vocab.json",+ "FL2VA/video_vae/config.json",+ "FL2VA/video_vae/source/config.json",+ "FL2VA/video_vae/source/model.safetensors"+ ]+ }+ ],+ "id": "minimax_h3_4bit",+ "name": "MiniMax H3 MLX 4-bit (reference quality, very slow, 128 GB RAM)",+ "repo": "pipenetwork/MiniMax-H3-MLX-4bit",+ "revision": "95a0e7d97f23f8b0029afea9411f13535262d935",+ "disclosure": {+ "modelCardUrl": "https://huggingface.co/pipenetwork/MiniMax-H3-MLX-4bit",+ "weightsLicense": {+ "name": "MiniMax H3 Community License",+ "url": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE"+ },+ "runtimeLicense": {+ "name": "Apache-2.0",+ "url": "https://github.com/PipeNetwork/minimax-h3-mlx/blob/fcd9e9b79a1d6018d91ac477c0968de1fa067e49/LICENSE"+ },+ "reviewedAt": "2026-09-19"+ },+ "termsGate": {+ "id": "minimax-h3-community-license-2026-08-02",+ "title": "MiniMax H3 eligibility and terms",+ "summary": "MiniMax grants use only in its Applicable Territory. The license excludes the European Union, United Kingdom, Republic of Korea, and United States of America.",+ "acknowledgement": "I confirm I am in the Applicable Territory and agree to the MiniMax H3 Community License and its Acceptable Use Policy.",+ "licenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE",+ "excludedTerritories": [+ "European Union",+ "United Kingdom",+ "Republic of Korea",+ "United States of America"+ ]+ },+ "memoryProfiles": [+ {+ "id": "unified-4bit",+ "name": "Unified 4-bit",+ "description": "Quantized DiT with the shared bf16 conditioner. Conservative memory floor pending end-to-end measurements.",+ "minMemoryGb": 128,+ "minVramGb": null,+ "unified": true+ }+ ]+ },{"id": "minimax_h3_ref2va_8bit","name": "MiniMax H3 Ref2VA MLX 8-bit (image + arbitrary-length audio, ~71 GB, 128 GB RAM)",@@ -938,6 +1244,170 @@]}},+ {+ "id": "fasth3_v2_int8",+ "name": "FastH3 8-Step V2 — MLX INT8 + VSA (quality, local conversion)",+ "repo": "FastVideo/FastVideo-FastH3-8-Step-V2",+ "revision": "3da2ddfe1954d9cda4c05b643dc0f26007a655c5",+ "runtime": "fastvideo",+ "fastvideoFamily": "fasth3",+ "fastvideoMlxFormat": "int8",+ "supportedModes": [+ "text"+ ],+ "defaultWidth": 832,+ "defaultHeight": 480,+ "defaultFrames": 124,+ "frameOptions": [+ 124,+ 141,+ 158,+ 175,+ 192,+ 209,+ 226,+ 243,+ 260,+ 277,+ 294,+ 311,+ 328,+ 345+ ],+ "fpsOptions": [+ 24+ ],+ "resolutionStep": 32,+ "resolutionOptions": [+ {+ "label": "832x480 (16:9 FastH3 default)",+ "w": 832,+ "h": 480+ },+ {+ "label": "1280x720 (16:9 HD)",+ "w": 1280,+ "h": 720+ }+ ],+ "memoryGb": 48,+ "steps": 8,+ "guidance": 1,+ "samplerLocked": true,+ "samplerNote": "Quality option: 8 steps with 80% sparse attention, reference implementation. Requires an updated FastVideo runtime with VSA support. INT6 and INT8 share one ~147.9 GB source download; first use converts the DiT locally with routing weights retained. Not a real-time model.",+ "supportsNegativePrompt": false,+ "supportsTiling": false,+ "supportsDisableAudio": false,+ "fastvideoVsa": true,+ "disclosure": {+ "modelCardUrl": "https://huggingface.co/FastVideo/FastVideo-FastH3-8-Step-V2",+ "weightsLicense": {+ "name": "MiniMax H3 Community License",+ "url": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE"+ },+ "runtimeLicense": {+ "name": "Apache-2.0",+ "url": "https://github.com/hao-ai-lab/FastVideo/blob/main/LICENSE"+ },+ "estimatedDownloadGb": 147.9,+ "reviewedAt": "2026-09-19"+ },+ "termsGate": {+ "id": "minimax-h3-community-license-2026-08-02",+ "title": "MiniMax H3 eligibility and terms",+ "summary": "MiniMax grants use only in its Applicable Territory. The license excludes the European Union, United Kingdom, Republic of Korea, and United States of America.",+ "acknowledgement": "I confirm I am in the Applicable Territory and agree to the MiniMax H3 Community License and its Acceptable Use Policy.",+ "licenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE",+ "excludedTerritories": [+ "European Union",+ "United Kingdom",+ "Republic of Korea",+ "United States of America"+ ]+ }+ },+ {+ "id": "fasth3_v2_int6",+ "name": "FastH3 8-Step V2 — MLX INT6 + VSA (quality, local conversion)",+ "repo": "FastVideo/FastVideo-FastH3-8-Step-V2",+ "revision": "3da2ddfe1954d9cda4c05b643dc0f26007a655c5",+ "runtime": "fastvideo",+ "fastvideoFamily": "fasth3",+ "fastvideoMlxFormat": "int6",+ "supportedModes": [+ "text"+ ],+ "defaultWidth": 832,+ "defaultHeight": 480,+ "defaultFrames": 124,+ "frameOptions": [+ 124,+ 141,+ 158,+ 175,+ 192,+ 209,+ 226,+ 243,+ 260,+ 277,+ 294,+ 311,+ 328,+ 345+ ],+ "fpsOptions": [+ 24+ ],+ "resolutionStep": 32,+ "resolutionOptions": [+ {+ "label": "832x480 (16:9 FastH3 default)",+ "w": 832,+ "h": 480+ },+ {+ "label": "1280x720 (16:9 HD)",+ "w": 1280,+ "h": 720+ }+ ],+ "memoryGb": 42,+ "steps": 8,+ "guidance": 1,+ "samplerLocked": true,+ "samplerNote": "Quality option: 8 steps with 80% sparse attention, reference implementation. Requires an updated FastVideo runtime with VSA support. INT6 and INT8 share one ~147.9 GB source download; first use converts the DiT locally with routing weights retained. Not a real-time model.",+ "supportsNegativePrompt": false,+ "supportsTiling": false,+ "supportsDisableAudio": false,+ "fastvideoVsa": true,+ "disclosure": {+ "modelCardUrl": "https://huggingface.co/FastVideo/FastVideo-FastH3-8-Step-V2",+ "weightsLicense": {+ "name": "MiniMax H3 Community License",+ "url": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE"+ },+ "runtimeLicense": {+ "name": "Apache-2.0",+ "url": "https://github.com/hao-ai-lab/FastVideo/blob/main/LICENSE"+ },+ "estimatedDownloadGb": 147.9,+ "reviewedAt": "2026-09-19"+ },+ "termsGate": {+ "id": "minimax-h3-community-license-2026-08-02",+ "title": "MiniMax H3 eligibility and terms",+ "summary": "MiniMax grants use only in its Applicable Territory. The license excludes the European Union, United Kingdom, Republic of Korea, and United States of America.",+ "acknowledgement": "I confirm I am in the Applicable Territory and agree to the MiniMax H3 Community License and its Acceptable Use Policy.",+ "licenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/6818f6c32d12b210915e44ad56a4228c2608f160/LICENSE",+ "excludedTerritories": [+ "European Union",+ "United Kingdom",+ "Republic of Korea",+ "United States of America"+ ]+ }+ },{"id": "fasth3_dense_datafree_mlx_int4","name": "FastH3 Preview v1 Dense Data-Free MLX INT4 (video + audio, ~89 GB download, 36+ GB RAM, 4-step)",diff --git a/docs/features/apple-video-options.md b/docs/features/apple-video-options.mdnew file mode 100644index 0000000000..0a4dd75a6b--- /dev/null+++ b/docs/features/apple-video-options.md@@ -0,0 +1,57 @@+# Apple Silicon video choices++Video Gen offers these complementary paths:++| Choice | Purpose | Important distinction |+| --- | --- | --- |+| FastMetal 1.3B | Small previews | Wan 2.1 sampler |+| FastMetal 5B | Balanced drafts | Dedicated Wan 2.2 sampler, trained three-step schedule |+| FastMetal 14B | Larger FastMetal model | Wan 2.1 sampler |+| FastH3 Preview INT4/INT6/INT8 | Four-step joint video and audio | Dense attention; official source is converted locally |+| FastH3 V2 INT6/INT8 | Eight-step joint video and audio | 80% VSA with reference attention; requires updated FastVideo |+| MiniMax H3 MLX 4/6/8-bit | Original H3 reference | Dense attention, very slow; smaller quantization is not a speed guarantee |++The V2 choices share the official source snapshot at+`3da2ddfe1954d9cda4c05b643dc0f26007a655c5`, approximately 147.9 GB total.+INT6/INT8 describe the locally converted transformer, not the total download.+Conversion retains routing weights with `--include-vsa` and uses a separate+cache from dense conversions. An older runtime fails with an update instruction+before conversion. FastVideo is pinned to commit+`430e52154e76b902c3cc17a16b3edc1fad790012`; older checkouts appear as needing+upgrade in Media Gen Settings. Repair / Upgrade checks out that revision and+prepares the small FastMetal preview decoders, without downloading the large+model snapshots or calling an AI provider. Update FastVideo there before using V2.+A process-local adapter reads video and audio scheduler shifts from the+checkpoint before inference, including V2’s video shift of 10; the denoising+ladder and converted AdaLN cache use the same shifts and eight-step schedule.+The adapter corrects the upstream converter’s four-step cache default before+it strips the original projections. Conversion caches include the schedule+version, step count and scheduler-config digest.+SIMD attention remains opt-in upstream; these choices use the reference path.++The Preview INT4 community repack is a preconverted package from MrMofer;+the official Preview INT4 choice converts the source checkpoint on first use.+Their repository links identify the provenance. Existing model IDs and custom+registry choices are preserved. New choices use the registry's existing+`_shippedDefaults` append mechanism; migration 398 also handles older registries+that predate that marker. Deliberately removed choices stay removed.++The original H3 quantizations share the same conditioner and VAE downloads.+They retain the conservative 128 GB memory requirement until end-to-end+measurements justify a lower floor. Transformer file size is not peak RAM.++Animation presets now include **Rotoscope cinematic** and **Unreal stylized+cinema**. These describe a visual treatment in the generation prompt; they do+not run an Unreal renderer or perform literal tracing of source footage.++## Sources++- [FastVideo upstream](https://github.com/hao-ai-lab/FastVideo)+- [Official FastH3 V2 checkpoint](https://huggingface.co/FastVideo/FastVideo-FastH3-8-Step-V2)+- [Community V2 MLX INT8 example](https://huggingface.co/vanch007/FastVideo-FastH3-8-Step-V2-MLX-INT8)+- [FastMetal 5B](https://huggingface.co/FastVideo/FastMetal-5B-QAD)+- [PipeNetwork H3 MLX runtime and quantizations](https://github.com/PipeNetwork/minimax-h3-mlx)++Upstream timings vary with resolution, frame count, decoder and hardware.+PortOS does not treat a published benchmark as a local ETA or promise real-time+generation.diff --git a/scripts/fastvideo_h3_entry.py b/scripts/fastvideo_h3_entry.pynew file mode 100644index 0000000000..a3a76609b3--- /dev/null+++ b/scripts/fastvideo_h3_entry.py@@ -0,0 +1,52 @@+#!/usr/bin/env python3+"""Use one checkpoint-defined ladder for FastH3 conversion and inference.++The pinned upstream converter defaults to four steps and strips the original+AdaLN projections. Build the correct fixed tables before they are stripped;+the inference pipeline must then use exactly the same shifts and steps.+All adaptation is process-local, leaving the upstream checkout untouched.+"""+import argparse+import importlib.util+import json+import math+import runpy+import sys+from pathlib import Path+++def main():+ parser = argparse.ArgumentParser(add_help=False)+ parser.add_argument('--entry-script', required=True)+ parser.add_argument('--scheduler-root', required=True)+ parser.add_argument('--schedule-steps', type=int, required=True)+ parser.add_argument('--convert', action='store_true')+ args, remaining = parser.parse_known_args()+ if args.schedule_steps <= 0:+ raise ValueError('FastH3 schedule steps must be positive')+ shifts = []+ for name in ('scheduler', 'audio_scheduler'):+ config = json.loads((Path(args.scheduler_root) / name / 'scheduler_config.json').read_text())+ shift = config.get('shift')+ if (config.get('_class_name') != 'MiniMaxH3Scheduler'+ or isinstance(shift, bool) or not isinstance(shift, (int, float))+ or not math.isfinite(shift) or shift <= 0):+ raise ValueError(f'Unsupported FastH3 {name} configuration')+ shifts.append(shift)+ from fastvideo.mlx_runtime import minimax_h3_pipeline as pipeline+ pipeline.MINIMAX_H3_VIDEO_SHIFT, pipeline.MINIMAX_H3_AUDIO_SHIFT = shifts+ sys.argv = [args.entry_script, *remaining]+ if args.convert:+ spec = importlib.util.spec_from_file_location('portos_h3_converter', args.entry_script)+ converter = importlib.util.module_from_spec(spec)+ spec.loader.exec_module(converter)+ if not callable(getattr(converter, '_adaln_cache_timesteps', None)):+ raise RuntimeError('FastH3 converter schedule contract changed; update PortOS')+ converter._adaln_cache_timesteps = lambda: pipeline._adaln_schedule_union(args.schedule_steps)+ converter.main()+ else:+ runpy.run_path(args.entry_script, run_name='__main__')+++if __name__ == '__main__':+ main()diff --git a/scripts/generate_fastvideo.py b/scripts/generate_fastvideo.pyindex 8dff45c95a..bf09909f5b 100755--- a/scripts/generate_fastvideo.py+++ b/scripts/generate_fastvideo.py@@ -5,12 +5,13 @@ Spawns the pinned FastVideo inference script from the ~/.portos/fastvideocheckout. Generation is cache-only: PortOS downloads model weights throughthe Video Gen UI before launching this helper.-Two model families share this helper because they share one venv, one repo+Three model families share this helper because they share one venv, one repocheckout and one progress protocol -- but NOT one entry script or one argvshape:fastmetal - the DMD2-distilled Wan exports, via mlx_wan_prompt_to_video.py.- fasth3 - FastH3 Preview v1 Dense/Data-Free, via mlx_fasth3.py, which+ fastmetal5b - Wan 2.2 through mlx_wan22_generate.py.+ fasth3 - FastH3 Preview and V2, via mlx_fasth3.py, whichtakes a pre-quantized MLX DiT and emits muxed video+audio.`--family` is what selects between them. It is explicit rather than sniffed@@ -84,6 +85,10 @@ INITIAL_PHASE = _PHASE_ORDER[0]# a line upstream logs at the END of the work it names, so it opens the NEXT# phase rather than the one it describes._PHASE_MARKERS = (+ # Wan 2.2 reports completed milestones instead of per-step progress.+ ("[5b] latent", "conditioning"),+ ("[5b] dit loaded", "sampling"),+ ("[5b] denoise", "mux"),# `Geometry: output=...` is the first line generate() logs, i.e. the# pipeline object is constructed and the long conditioning leg starts here.("geometry:", "conditioning"),@@ -142,7 +147,7 @@ def translate_line(line: str, *, conversion: bool = False) -> str:def parse_args() -> argparse.Namespace:p = argparse.ArgumentParser(description="PortOS FastVideo MLX helper")p.add_argument("--repo-dir", default=None, help="Path to cloned FastVideo repo")- p.add_argument("--family", choices=("fastmetal", "fasth3"), default="fastmetal",+ p.add_argument("--family", choices=("fastmetal", "fastmetal5b", "fasth3"), default="fastmetal",help="Which FastVideo entry script and argv shape to use")p.add_argument("--model-root", required=True, help="HF model snapshot path")p.add_argument("--mlx-checkpoint", default=None, help="MLX checkpoint path (defaults to model-root)")@@ -166,12 +171,17 @@ def parse_args() -> argparse.Namespace:p.add_argument("--fast", action="store_true", help="Enable fast mode (fewer steps + frame interpolation)")p.add_argument("--enhance-prompt", action="store_true", help="Enable prompt enhancer")p.add_argument("--refine", action="store_true", help="Enable second-pass refinement")+ p.add_argument("--vsa", action="store_true", help="FastH3 V2: retain routing weights and use 80% sparse attention")return p.parse_args()# Per-family entry-script candidates, most-preferred first. The trailing glob# name is the fallback when a checkout moves the examples tree._ENTRY_SCRIPTS = {+ "fastmetal5b": (+ [("examples", "inference", "basic", "mlx_wan22_generate.py")],+ "mlx_wan22_generate.py",+ ),"fastmetal": ([("examples", "inference", "basic", "mlx_wan_prompt_to_video.py"),@@ -242,9 +252,15 @@ def is_converted(checkpoint_dir: Path) -> bool:def ensure_mlx_checkpoint(repo_dir: Path, model_root: Path, fmt: str, env: dict,- base: Path | None = None) -> Path:+ base: Path | None = None, *, vsa: bool = False, steps: int = 4) -> Path:"""Return the converted MLX DiT for `fmt`, converting it if it is missing."""out_base = mlx_checkpoint_root(model_root, base)+ # Dense conversions drop routing tensors; never reuse one for VSA.+ if vsa:+ schedule = b"".join((model_root / name / "scheduler_config.json").read_bytes()+ for name in ("scheduler", "audio_scheduler"))+ schedule_key = hashlib.sha256(schedule).hexdigest()[:12]+ out_base = out_base / f"vsa-schedule-v1-{steps}-{schedule_key}"out_dir = out_base / fmtif is_converted(out_dir):return out_dir@@ -259,13 +275,13 @@ def ensure_mlx_checkpoint(repo_dir: Path, model_root: Path, fmt: str, env: dict,print(f"STATUS:converting the FastH3 DiT to MLX {fmt} — one time, into {out_dir}",file=sys.stderr, flush=True)out_base.mkdir(parents=True, exist_ok=True)- code = run_child(- [sys.executable, str(converter),- "--model-root", str(transformer),- "--out", str(out_base),- "--formats", fmt],- env, repo_dir, lambda line: translate_line(line, conversion=True),- )+ command = [sys.executable, str(converter),+ "--model-root", str(transformer), "--out", str(out_base), "--formats", fmt]+ if vsa:+ command = [sys.executable, str(Path(__file__).with_name("fastvideo_h3_entry.py")),+ "--entry-script", str(converter), "--scheduler-root", str(model_root),+ "--schedule-steps", str(steps), "--convert"] + command[2:] + ["--include-vsa"]+ code = run_child(command, env, repo_dir, lambda line: translate_line(line, conversion=True))if code != 0:raise RuntimeError(f"FastH3 MLX conversion exited with code {code}")if not is_converted(out_dir):@@ -350,6 +366,22 @@ def build_command(args, entry_script: Path, model_root: Path, mlx_checkpoint: Pa"--num-frames", str(args.num_frames),]tail = ["--seed", str(args.seed), "--output-path", str(args.output)]+ if args.family == "fastmetal5b":+ if args.steps != 3 or args.image:+ raise ValueError("FastMetal 5B requires its trained 3-step text-to-video schedule")+ cmd = [sys.executable, str(entry_script),+ "--text-encoder-root", str(model_root),+ "--vae-root", str(model_root / "vae"),+ "--mlx-checkpoint", str(mlx_checkpoint),+ "--prompt", args.prompt,+ "--width", str(args.width), "--height", str(args.height),+ "--num-frames", str(args.num_frames), "--fps", str(args.fps),+ "--dmd-denoising-steps", "1000,757,522"] + tail+ for enabled, flag in ((args.fast, "--fast"), (args.refine, "--refine"),+ (args.enhance_prompt, "--enhance-prompt")):+ if enabled:+ cmd.append(flag)+ return cmdif args.family != "fasth3":cmd = common + ["--num-inference-steps", str(args.steps),@@ -383,6 +415,11 @@ def build_command(args, entry_script: Path, model_root: Path, mlx_checkpoint: Pafile=sys.stderr, flush=True)cmd = common + ["--steps", str(args.steps),"--prompt-cache-dir", str(resolve_prompt_cache_dir(args))] + tail+ if getattr(args, "vsa", False):+ cmd = [sys.executable, str(Path(__file__).with_name("fastvideo_h3_entry.py")),+ "--entry-script", str(entry_script), "--scheduler-root", str(model_root),+ "--schedule-steps", str(args.steps)] + cmd[2:]+ cmd.extend(["--vsa", "--vsa-sparsity", "0.8", "--vsa-tile-size", "64", "--vsa-impl", "reference"])if args.fast:cmd.append("--fast")return cmd@@ -409,6 +446,19 @@ def main() -> int:return 1model_root = Path(args.model_root).resolve()+ if args.family == "fastmetal5b":+ decoder = Path.home() / ".cache" / "fastvideo" / "taehv" / "taew2_2.pth"+ if not decoder.is_file():+ print("RuntimeError: FastMetal 5B preview decoder is missing. Repair FastVideo in Media Gen Settings before rendering.", file=sys.stderr)+ return 1+ if args.vsa:+ converter = repo_dir.joinpath(*_CONVERTER_SCRIPT)+ if (args.family != "fasth3"+ or '"--vsa"' not in entry_script.read_text()+ or (args.mlx_format and (not converter.is_file()+ or "--include-vsa" not in converter.read_text()))):+ print("RuntimeError: FastH3 V2 requires an updated FastVideo runtime with VSA inference and conversion support. Update FastVideo in Media Gen Settings.", file=sys.stderr)+ return 1env = build_child_env(repo_dir)# Precedence: an explicit path always wins, so a row that ships a# pre-quantized DiT never triggers a conversion it does not need.@@ -418,7 +468,8 @@ def main() -> int:try:mlx_checkpoint = ensure_mlx_checkpoint(repo_dir, model_root, args.mlx_format, env,- Path(args.mlx_checkpoint_cache_dir) if args.mlx_checkpoint_cache_dir else None)+ Path(args.mlx_checkpoint_cache_dir) if args.mlx_checkpoint_cache_dir else None,+ vsa=args.vsa, steps=args.steps)except (FileNotFoundError, RuntimeError) as err:print(f"❌ {err}", file=sys.stderr)return 1diff --git a/scripts/generate_fastvideo.test.js b/scripts/generate_fastvideo.test.jsindex f75914566a..2ad265093d 100644--- a/scripts/generate_fastvideo.test.js+++ b/scripts/generate_fastvideo.test.js@@ -99,6 +99,16 @@ describe.skipIf(!pyBin)('generate_fastvideo.py phase reporting', () => {expect(lines(output)).toEqual(['conditioning', 'sampling', 'sampling', 'mux']);});+ it('reports Wan 2.2 conditioning, sampling and decode from its milestone output', () => {+ const output = runPython(`${importRunner}\n${[+ 'phase = runner.INITIAL_PHASE',+ 'for line in ["[5B] latent 48x19x16x24", "[5B] DiT loaded in 1.0s", "[5B] denoise 3 steps in 19.0s, peak 7.3 GiB"]:',+ ' phase = runner.advance_phase(line, phase)',+ ' print(phase)',+ ].join('\n')}`);+ expect(lines(output)).toEqual(['conditioning', 'sampling', 'mux']);+ });+it('never moves the phase backwards when a milestone line repeats', () => {const output = runPython(`${importRunner}\n${['print(runner.advance_phase("INFO Geometry: output=832x480x124", "sampling"))',@@ -127,3 +137,34 @@ describe.skipIf(!pyBin)('generate_fastvideo.py phase reporting', () => {expect(lines(output)).toEqual(['True']);});});++// Exercise the subprocess boundary without requiring MLX or model weights.+describe.skipIf(!pyBin)('FastH3 checkpoint schedule adapter', () => {+ it('uses the same checkpoint shifts and eight-step ladder for conversion and inference', () => {+ const output = runPython(`${importRunner}\n${String.raw`+import json, os, subprocess, tempfile+with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ package = root / 'fastvideo' / 'mlx_runtime'+ package.mkdir(parents=True)+ (package / 'minimax_h3_pipeline.py').write_text('MINIMAX_H3_VIDEO_SHIFT=12\nMINIMAX_H3_AUDIO_SHIFT=3\ndef _adaln_schedule_union(steps):\n return [MINIMAX_H3_VIDEO_SHIFT, MINIMAX_H3_AUDIO_SHIFT, steps]\n')+ for name, shift in [('scheduler', 10), ('audio_scheduler', 3)]:+ folder = root / name+ folder.mkdir()+ (folder / 'scheduler_config.json').write_text(json.dumps({'_class_name': 'MiniMaxH3Scheduler', 'shift': shift}))+ converter = root / 'convert.py'+ converter.write_text('import json\ndef _adaln_cache_timesteps():\n return [12, 3, 4]\ndef main():\n print(json.dumps(_adaln_cache_timesteps()))\n')+ entry = root / 'render.py'+ entry.write_text('import json, sys\nfrom fastvideo.mlx_runtime import minimax_h3_pipeline as p\nprint(json.dumps(p._adaln_schedule_union(int(sys.argv[sys.argv.index("--steps")+1]))))\n')+ wrapper = script.with_name('fastvideo_h3_entry.py')+ env = {**os.environ, 'PYTHONPATH': str(root)}+ base = [sys.executable, str(wrapper), '--scheduler-root', str(root), '--schedule-steps', '8']+ for target, tail in [(converter, ['--convert']), (entry, ['--steps', '8'])]:+ print(subprocess.check_output(base + ['--entry-script', str(target)] + tail, env=env, text=True).strip())+ (root / 'scheduler' / 'scheduler_config.json').write_text('{"_class_name":"MiniMaxH3Scheduler","shift":true}')+ invalid = subprocess.run(base + ['--entry-script', str(entry), '--steps', '8'], env=env, text=True, capture_output=True)+ print(invalid.returncode != 0 and not invalid.stdout and 'Unsupported FastH3 scheduler' in invalid.stderr)+`}`);+ expect(lines(output)).toEqual(['[10, 3, 8]', '[10, 3, 8]', 'True']);+ });+});diff --git a/scripts/generate_fastvideo_test.py b/scripts/generate_fastvideo_test.pyindex 4a0fb8d566..955f7e9d16 100644--- a/scripts/generate_fastvideo_test.py+++ b/scripts/generate_fastvideo_test.py@@ -10,6 +10,7 @@ from __future__ import annotationsimport importlib.utilimport io+import jsonimport sysimport tempfileimport unittest@@ -79,6 +80,21 @@ class BuildCommandTest(unittest.TestCase):self.assertEqual(self.flag(cmd, "--mlx-checkpoint"), str(self.ckpt))self.assertNotIn("--steps", cmd)+ def test_5b_uses_wan22_schedule_and_component_paths(self):+ cmd, _ = self.build(family="fastmetal5b", steps=3)+ self.assertEqual(self.flag(cmd, "--text-encoder-root"), str(self.root))+ self.assertEqual(self.flag(cmd, "--vae-root"), str(self.root / "vae"))+ self.assertEqual(self.flag(cmd, "--dmd-denoising-steps"), "1000,757,522")+ self.assertNotIn("--num-inference-steps", cmd)+ self.assertNotIn("--model-root", cmd)++ def test_v2_uses_reference_vsa_with_explicit_trained_sparsity(self):+ cmd, _ = self.build(family="fasth3", vsa=True, steps=8)+ self.assertEqual(self.flag(cmd, "--vsa-sparsity"), "0.8")+ self.assertEqual(self.flag(cmd, "--vsa-impl"), "reference")+ dense, _ = self.build(family="fasth3")+ self.assertNotIn("--vsa", dense)+def test_fastmetal_argv_is_byte_identical_to_the_pre_split_baseline(self):# The exact list this helper emitted before the family split. Pinned so# a later edit to the shared prefix cannot quietly reshape the argv of@@ -245,6 +261,25 @@ class MlxCheckpointTest(unittest.TestCase):self.helper.ensure_mlx_checkpoint(Path(tmp), model_root, "int4", {}, Path(tmp) / "cache")self.assertIn("transformer", str(ctx.exception))+ def test_vsa_never_reuses_a_dense_conversion(self):+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp) / "model"+ root.mkdir()+ for name, shift in (("scheduler", 10), ("audio_scheduler", 3)):+ (root / name).mkdir()+ (root / name / "scheduler_config.json").write_text(json.dumps({"shift": shift}))+ base = Path(tmp) / "cache"+ dense = self.helper.mlx_checkpoint_root(root, base) / "int6"+ dense.mkdir(parents=True)+ for name in ("mlx_h3_dit.safetensors", "mlx_h3_dit.json"):+ (dense / name).write_text("")+ legacy_vsa = self.helper.mlx_checkpoint_root(root, base) / "vsa" / "int6"+ legacy_vsa.mkdir(parents=True)+ for name in ("mlx_h3_dit.safetensors", "mlx_h3_dit.json"):+ (legacy_vsa / name).write_text("")+ with self.assertRaisesRegex(FileNotFoundError, "transformer"):+ self.helper.ensure_mlx_checkpoint(Path(tmp), root, "int6", {}, base, vsa=True, steps=8)+if __name__ == "__main__":unittest.main()diff --git a/scripts/migrations/398-apple-video-model-options.js b/scripts/migrations/398-apple-video-model-options.jsnew file mode 100644index 0000000000..4056d6b7e8--- /dev/null+++ b/scripts/migrations/398-apple-video-model-options.js@@ -0,0 +1,40 @@+// Older registries without _shippedDefaults otherwise classify new entries as+// already shipped during bootstrap. Insert only this release's new IDs, without+// resurrecting an entry a newer install has explicitly removed.+import { readFile } from 'node:fs/promises';+import { join } from 'node:path';+import { atomicWrite } from '../../server/lib/fileUtils.js';++const NEW_IDS = ['fasth3_v2_int8', 'fasth3_v2_int6', 'minimax_h3_6bit', 'minimax_h3_4bit'];++export default {+ async up({ rootDir }) {+ const path = join(rootDir, 'data/media-models.json');+ const raw = await readFile(path, 'utf8').catch((error) => {+ if (error.code === 'ENOENT') return null;+ throw error;+ });+ if (raw === null) return;+ const registry = JSON.parse(raw);+ const key = Array.isArray(registry.video?.mlx) ? 'mlx'+ : Array.isArray(registry.video?.macos) ? 'macos' : null;+ if (!key) return;+ const seed = JSON.parse(await readFile(join(rootDir, 'data.reference/media-models.json'), 'utf8'));+ const defaults = seed.video.mlx;+ const entries = registry.video[key];+ const recorded = registry._shippedDefaults?.video?.mlx ?? registry._shippedDefaults?.video?.macos;+ const shipped = new Set(Array.isArray(recorded) ? recorded : defaults.filter((entry) => !NEW_IDS.includes(entry.id)).map((entry) => entry.id));+ const existing = new Set(entries.map((entry) => entry.id));+ for (const id of NEW_IDS) {+ if (existing.has(id) || shipped.has(id)) continue;+ const entry = defaults.find((candidate) => candidate.id === id);+ if (!entry) throw new Error(`Missing shipped video option: ${id}`);+ entries.push(entry);+ }+ registry._shippedDefaults ??= {};+ registry._shippedDefaults.video ??= {};+ registry._shippedDefaults.video[key] = [...new Set([...shipped, ...existing, ...NEW_IDS])];+ const next = `${JSON.stringify(registry, null, 2)}\n`;+ if (next !== raw) await atomicWrite(path, next);+ },+};diff --git a/scripts/migrations/398-apple-video-model-options.test.js b/scripts/migrations/398-apple-video-model-options.test.jsnew file mode 100644index 0000000000..2f23e12c5d--- /dev/null+++ b/scripts/migrations/398-apple-video-model-options.test.js@@ -0,0 +1,43 @@+import { beforeEach, afterEach, it, expect } from 'vitest';+import { mkdtemp, mkdir, readFile, writeFile, copyFile, rm } from 'node:fs/promises';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import migration from './398-apple-video-model-options.js';++let rootDir;+let path;+beforeEach(async () => {+ rootDir = await mkdtemp(join(tmpdir(), 'video-options-upgrade-'));+ await mkdir(join(rootDir, 'data'));+ await mkdir(join(rootDir, 'data.reference'));+ await copyFile(new URL('../../data.reference/media-models.json', import.meta.url), join(rootDir, 'data.reference/media-models.json'));+ path = join(rootDir, 'data/media-models.json');+});+afterEach(async () => { await rm(rootDir, { recursive: true, force: true }); });++it.each(['mlx', 'macos'])('upgrades an old %s registry once, preserving custom models, defaults and deletions', async (key) => {+ const custom = { id: 'fastmetal_5b_qad', repo: 'example/custom-model', name: 'My model' };+ await writeFile(path, JSON.stringify({ video: { [key]: [custom], defaultMlx: custom.id }, customSetting: 7 }));+ await migration.up({ rootDir });+ const upgraded = JSON.parse(await readFile(path, 'utf8'));+ expect(upgraded.video[key]).toHaveLength(5);+ expect(upgraded.video[key][0]).toEqual(custom);+ expect(upgraded.video.defaultMlx).toBe(custom.id);+ expect(upgraded.customSetting).toBe(7);+ expect(upgraded.video[key].some((entry) => entry.id === 'fastmetal_14b_qad')).toBe(false);+ const once = await readFile(path, 'utf8');+ await migration.up({ rootDir });+ expect(await readFile(path, 'utf8')).toBe(once);+ upgraded.video[key] = upgraded.video[key].filter((entry) => entry.id !== 'fasth3_v2_int8');+ await writeFile(path, JSON.stringify(upgraded));+ await migration.up({ rootDir });+ expect(JSON.parse(await readFile(path, 'utf8')).video[key].some((entry) => entry.id === 'fasth3_v2_int8')).toBe(false);+});++it('leaves malformed state intact and does not create a registry on a missing-data install', async () => {+ await migration.up({ rootDir });+ await expect(readFile(path)).rejects.toMatchObject({ code: 'ENOENT' });+ await writeFile(path, '{broken');+ await expect(migration.up({ rootDir })).rejects.toThrow();+ expect(await readFile(path, 'utf8')).toBe('{broken');+});diff --git a/scripts/setup-image-video.sh b/scripts/setup-image-video.shindex d9e3e43ae2..5055cdbbc7 100755--- a/scripts/setup-image-video.sh+++ b/scripts/setup-image-video.sh@@ -423,7 +423,7 @@ if [[ "$INSTALL_FASTVIDEO" == "1" ]]; then"${FASTVIDEO_UV_TOOL_DIR}/bin/python3" -m pip install --disable-pip-version-check "uv==0.8.14"fi- FASTVIDEO_PIN="${FASTVIDEO_PIN:-main}"+ FASTVIDEO_PIN="${FASTVIDEO_PIN:-430e52154e76b902c3cc17a16b3edc1fad790012}"FASTVIDEO_DIR="${HOME}/.portos/fastvideo"FASTVIDEO_PY="${FASTVIDEO_DIR}/.venv/bin/python3"mkdir -p "${HOME}/.portos"@@ -445,6 +445,8 @@ if [[ "$INSTALL_FASTVIDEO" == "1" ]]; then"FastVideo synced but the runtime import failed." \"Use Repair / Upgrade from the Video Gen runtime panel to retry." \"${FASTVIDEO_PY}" -c "import fastvideo; import mlx.core"+ echo "📦 Preparing FastMetal preview decoders..."+ "${FASTVIDEO_PY}" -c "from fastvideo.mlx_runtime.wan_vae import ensure_taehv_checkpoint; ensure_taehv_checkpoint(z_dim=16); ensure_taehv_checkpoint(z_dim=48)"echo "✅ FastVideo MLX runtime ready: ${FASTVIDEO_PY}"fidiff --git a/server/lib/mediaModels.js b/server/lib/mediaModels.jsindex 83514e08e6..6a1c58bf86 100644--- a/server/lib/mediaModels.js+++ b/server/lib/mediaModels.js@@ -545,11 +545,11 @@ const DEFAULT_REGISTRY = {// downloads are explicit in Video Gen, and render-time resolution is// cache-only. The server-owned disclosure attaches the mandatory,// versioned territory/license acceptance gate.- {- id: 'minimax_h3_8bit',- name: 'MiniMax H3 MLX 8-bit (joint video + audio, ~103 GB download, 128 GB RAM)',- repo: 'pipenetwork/MiniMax-H3-MLX-8bit',- revision: '3ac52081470b0488921c3ec3ba84a39097bf2361',+ ...[+ { bits: 8, revision: '3ac52081470b0488921c3ec3ba84a39097bf2361' },+ { bits: 6, revision: '58ea790a856734132293164b8305c8bb80bee6fe' },+ { bits: 4, revision: '95a0e7d97f23f8b0029afea9411f13535262d935' },+ ].map(({ bits, revision }) => ({runtime: 'minimax_h3',// H3 is an fl2va model: it conditions on up to two keyframes anchored// at the first / last latent frame. 'image' anchors one at 'first',@@ -621,7 +621,11 @@ const DEFAULT_REGISTRY = {'FL2VA/video_vae/source/model.safetensors',],}],- },+ id: `minimax_h3_${bits}bit`,+ name: `MiniMax H3 MLX ${bits}-bit (reference quality, very slow, 128 GB RAM)`,+ repo: `pipenetwork/MiniMax-H3-MLX-${bits}bit`,+ revision,+ })),// MiniMax H3 Ref2VA through the signed mere.run native runtime. The// checkpoint accepts at most 15 seconds of reference audio per call;// PortOS chains those windows and remuxes the exact source audio so the@@ -814,6 +818,17 @@ const DEFAULT_REGISTRY = {// this machine. Listed before the third-party repack below because it is// the upstream checkpoint the repack is derived from....FASTH3_SOURCE_ENTRIES,+ // Convert the official V2 snapshot locally, retaining its VSA routing weights.+ ...FASTH3_SOURCE_ENTRIES.filter((entry) => entry.fastvideoMlxFormat !== 'int4').map((entry) => ({+ ...entry,+ id: `fasth3_v2_${entry.fastvideoMlxFormat}`,+ name: `FastH3 8-Step V2 — MLX ${entry.fastvideoMlxFormat.toUpperCase()} + VSA (quality, local conversion)`,+ repo: 'FastVideo/FastVideo-FastH3-8-Step-V2',+ revision: '3da2ddfe1954d9cda4c05b643dc0f26007a655c5',+ fastvideoVsa: true,+ steps: 8,+ samplerNote: 'Quality option: 8 steps with 80% sparse attention, reference implementation. Requires an updated FastVideo runtime with VSA support. INT6 and INT8 share one ~147.9 GB source download; first use converts the DiT locally with routing weights retained. Not a real-time model.',+ })),// FastH3 Preview v1 Dense / Data-Free, packed for MLX (#5860). Same// `fastvideo` venv and checkout as FastMetal above, but a different entry// script and argv shape — `fastvideoFamily` is what routes it, seediff --git a/server/lib/mediaModels.test.js b/server/lib/mediaModels.test.jsindex 63908962f2..2ba7641f09 100644--- a/server/lib/mediaModels.test.js+++ b/server/lib/mediaModels.test.js@@ -29,6 +29,23 @@ afterEach(() => {// Compares the seed file to a freshly-bootstrapped registry with// _shippedDefaults stripped (that's a runtime-only field).describe('data.reference seed file', () => {+ it('appends new Apple video choices to an existing registry and preserves later removals', async () => {+ const { loadMediaModels, reloadMediaModels } = await import('./mediaModels.js');+ const fresh = loadMediaModels();+ const ids = ['fasth3_v2_int8', 'fasth3_v2_int6', 'minimax_h3_6bit', 'minimax_h3_4bit'];+ fresh.video.mlx = fresh.video.mlx.filter((entry) => !ids.includes(entry.id));+ fresh._shippedDefaults.video.mlx = fresh._shippedDefaults.video.mlx.filter((id) => !ids.includes(id));+ writeFileSync(registryFile, JSON.stringify(fresh));+ const upgraded = reloadMediaModels();+ for (const id of ids) expect(upgraded.video.mlx.find((entry) => entry.id === id)).toBeDefined();+ const v2 = upgraded.video.mlx.find((entry) => entry.id === 'fasth3_v2_int6');+ expect(v2).toMatchObject({ steps: 8, samplerLocked: true, fastvideoVsa: true, fastvideoMlxFormat: 'int6' });+ expect(v2.termsGate.id).toBe('minimax-h3-community-license-2026-08-02');+ upgraded.video.mlx = upgraded.video.mlx.filter((entry) => entry.id !== v2.id);+ writeFileSync(registryFile, JSON.stringify(upgraded));+ expect(reloadMediaModels().video.mlx.some((entry) => entry.id === v2.id)).toBe(false);+ });+it('matches the runtime-seeded DEFAULT_REGISTRY', async () => {const sample = JSON.parse(readFileSync(SAMPLE_REGISTRY_PATH, 'utf-8'));const { loadMediaModels } = await import('./mediaModels.js');diff --git a/server/lib/minimaxH3Memory.js b/server/lib/minimaxH3Memory.jsindex bbc9ccba80..5cd2b8800b 100644--- a/server/lib/minimaxH3Memory.js+++ b/server/lib/minimaxH3Memory.js@@ -91,6 +91,21 @@ export const MINIMAX_H3_AUTO_PROFILE_ID = 'auto';* unified true when host and device memory are the same pool*/export const MINIMAX_H3_MEMORY_PROFILES = Object.freeze({+ ...Object.fromEntries([+ [4, '95a0e7d97f23f8b0029afea9411f13535262d935'],+ [6, '58ea790a856734132293164b8305c8bb80bee6fe'],+ ].map(([bits, revision]) => [`minimax_h3_${bits}bit`, Object.freeze({+ shippedRepo: `pipenetwork/MiniMax-H3-MLX-${bits}bit`,+ shippedRevision: revision,+ profiles: Object.freeze([Object.freeze({+ id: `unified-${bits}bit`,+ name: `Unified ${bits}-bit`,+ description: 'Quantized DiT with the shared bf16 conditioner. Conservative memory floor pending end-to-end measurements.',+ minMemoryGb: 128,+ minVramGb: null,+ unified: true,+ })]),+ })])),// PipeNetwork's Apple-Silicon MLX port. ONE profile deliberately: the port// has a single placement (8-bit DiT plus the bf16 conditioner, all in unified// memory), and 128 GB is the figure the shipped entry has always stated. Adiff --git a/server/lib/videoDisclosure.js b/server/lib/videoDisclosure.jsindex 77179ff782..9eff18f648 100644--- a/server/lib/videoDisclosure.js+++ b/server/lib/videoDisclosure.js@@ -141,6 +141,27 @@ const customLicense = (repo) => ({ name: 'Custom — see model card', url: hfMod* Lightning entries include their `requiredWeights` LoRA files.*/export const VIDEO_MODEL_DISCLOSURES = Object.freeze({+ ...Object.fromEntries(['int8', 'int6'].map((format) => [`fasth3_v2_${format}`, {+ shippedRepo: 'FastVideo/FastVideo-FastH3-8-Step-V2',+ disclosure: {+ modelCardUrl: hfModelCard('FastVideo/FastVideo-FastH3-8-Step-V2'),+ weightsLicense: MINIMAX_H3_WEIGHTS,+ runtimeLicense: RUNTIME_LICENSE.fastvideo,+ estimatedDownloadGb: 147.9,+ reviewedAt: '2026-09-19',+ },+ termsGate: MINIMAX_H3_TERMS_GATE,+ }])),+ ...Object.fromEntries([4, 6].map((bits) => [`minimax_h3_${bits}bit`, {+ shippedRepo: `pipenetwork/MiniMax-H3-MLX-${bits}bit`,+ disclosure: {+ modelCardUrl: hfModelCard(`pipenetwork/MiniMax-H3-MLX-${bits}bit`),+ weightsLicense: MINIMAX_H3_WEIGHTS,+ runtimeLicense: RUNTIME_LICENSE.minimax_h3,+ reviewedAt: '2026-09-19',+ },+ termsGate: MINIMAX_H3_TERMS_GATE,+ }])),minimax_h3_ref2va_8bit: {shippedRepo: 'Sawfwair/MiniMax-H3-Ref2VA-MLX-8bit',disclosure: {diff --git a/server/lib/videoDisclosure.test.js b/server/lib/videoDisclosure.test.jsindex 122043cb08..113c7c43ba 100644--- a/server/lib/videoDisclosure.test.js+++ b/server/lib/videoDisclosure.test.js@@ -15,9 +15,10 @@ const CANONICAL_FIELDS = ['repo', 'revision', 'runtime', 'memoryGb', 'supportedMconst RANKING_WORDS = /uncensored|unrestricted|\bunsafe\b|\bsafe\b|less restrictive|no limits/i;describe('VIDEO_MODEL_DISCLOSURES', () => {- it('carries a reviewedAt on every entry, stamped with the module review date', () => {+ it('carries the verification date for new entries and preserves previous review dates', () => {for (const [id, spec] of Object.entries(VIDEO_MODEL_DISCLOSURES)) {- expect(spec.disclosure.reviewedAt, id).toBe(VIDEO_DISCLOSURE_REVIEWED_AT);+ const newlyReviewed = ['fasth3_v2_int8', 'fasth3_v2_int6', 'minimax_h3_4bit', 'minimax_h3_6bit'].includes(id);+ expect(spec.disclosure.reviewedAt, id).toBe(newlyReviewed ? '2026-09-19' : VIDEO_DISCLOSURE_REVIEWED_AT);}expect(VIDEO_DISCLOSURE_REVIEWED_AT).toMatch(/^\d{4}-\d{2}-\d{2}$/);});diff --git a/server/lib/writersRoomStylePresets.js b/server/lib/writersRoomStylePresets.jsindex aeeb31982b..e3ba37ef35 100644--- a/server/lib/writersRoomStylePresets.js+++ b/server/lib/writersRoomStylePresets.js@@ -217,6 +217,23 @@ export const STYLE_PRESETS = [negativePrompt: 'photoreal humans, 3d render polish, cartoon flat, anime, digital smooth, vector clean, plastic toy',},+ {+ id: 'rotoscope-cinematic',+ label: 'Rotoscope cinematic',+ category: 'Animation',+ description: 'Painted cel shading, ink contours, grounded motion and cinematic depth.',+ prompt: 'hand-painted rotoscope animation aesthetic, grounded anatomy and natural weight, expressive restrained gestures, bold dark ink contours, matte two-tone cel shading, painterly textured backgrounds, cool blue shadows and warm amber highlights, cinematic low-angle perspective, subtle film grain, coherent silhouettes and consistent character design',+ negativePrompt: 'plastic gloss, rubbery anatomy, flat lighting, inconsistent outlines, text, watermark',+ },+ {+ id: 'unreal-stylized',+ label: 'Unreal stylized cinema',+ category: 'Animation',+ description: 'Stylized 3D cinematic lighting with painted surfaces and cel-shaded characters.',+ prompt: 'stylized Unreal Engine cinematic aesthetic, sculpted three-dimensional forms with hand-painted surface textures, cel-shaded characters with ink contours, rich indirect lighting, atmospheric depth, dramatic rim light, controlled depth of field, tactile worn materials, grounded composition and clear silhouettes',+ negativePrompt: 'flat unlit surfaces, plastic toy gloss, excessive bloom, text, watermark',+ },+// ─── Illustration / Comics ─────────────────────────────────────────{id: 'graphic-novel',diff --git a/server/services/videoGen/renderArgs.js b/server/services/videoGen/renderArgs.jsindex 2d21940ad5..fb4f7ccb23 100644--- a/server/services/videoGen/renderArgs.js+++ b/server/services/videoGen/renderArgs.js@@ -579,9 +579,10 @@ export const assertRenderModeContract = ({// this file — the same "execution facts live on the entry" convention// `samplerLocked` and `supportedModes` already use. An absent/unknown value// means FastMetal, which is what every pre-#5860 row is.-export const FASTVIDEO_FAMILIES = Object.freeze(['fastmetal', 'fasth3']);+export const FASTVIDEO_FAMILIES = Object.freeze(['fastmetal', 'fastmetal5b', 'fasth3']);export const fastvideoFamily = (model) =>- (FASTVIDEO_FAMILIES.includes(model?.fastvideoFamily) ? model.fastvideoFamily : 'fastmetal');+ (FASTVIDEO_FAMILIES.includes(model?.fastvideoFamily) ? model.fastvideoFamily+ : model?.repo === 'FastVideo/FastMetal-5B-QAD' ? 'fastmetal5b' : 'fastmetal');// FastVideo publishes FastH3 as a bf16 diffusers snapshot whose DiT sits under// `transformer/`, but mlx_fasth3.py loads a pre-quantized `mlx_h3_dit`@@ -628,6 +629,7 @@ export const buildFastVideoArgs = ({// vae/audio_vae/text_encoder/tokenizer IS its own checkpoint, and says so// explicitly rather than leaning on the helper's default-to-model-root.if (family === 'fasth3') {+ if (model.fastvideoVsa === true) args.push('--vsa');// Conditioning is half the wall clock of a render and recomputes identical// embeddings every time, so every FastH3 row reuses one cache.args.push('--prompt-cache-dir', FASTVIDEO_PROMPT_CACHE_DIR);diff --git a/server/services/videoGen/renderArgsFastVideo.test.js b/server/services/videoGen/renderArgsFastVideo.test.jsindex 860b520c21..a745a68fc8 100644--- a/server/services/videoGen/renderArgsFastVideo.test.js+++ b/server/services/videoGen/renderArgsFastVideo.test.js@@ -151,6 +151,18 @@ describe('fastvideoMlxFormat', () => {});describe('buildFastVideoArgs — upstream FastH3 snapshot', () => {+ it('routes an existing FastMetal 5B registry row to the Wan 2.2 sampler', () => {+ const { args } = buildFastVideoArgs({ ...base, model: { ...fastmetal, repo: 'FastVideo/FastMetal-5B-QAD' } });+ expect(flagValue(args, '--family')).toBe('fastmetal5b');+ });++ it('retains VSA when requesting a V2 local conversion', () => {+ const { args } = buildFastVideoArgs({ ...base, model: { ...fasth3Source, fastvideoVsa: true }, steps: 8 });+ expect(args).toContain('--vsa');+ expect(flagValue(args, '--steps')).toBe('8');+ expect(flagValue(args, '--mlx-format')).toBe('int6');+ });+it('asks the helper to convert, and does not pin a checkpoint path', () => {const { args } = buildFastVideoArgs({...base, model: fasth3Source, fastvideoModelPath: '/fixture/models/fasth3-source',diff --git a/server/services/videoGen/runtimes.js b/server/services/videoGen/runtimes.jsindex 26dea5e2b4..c28afdc433 100644--- a/server/services/videoGen/runtimes.js+++ b/server/services/videoGen/runtimes.js@@ -342,6 +342,7 @@ export const BYOV_RUNTIME_INFO = Object.freeze({killProcessGroup: true,repoUrl: 'https://github.com/hao-ai-lab/FastVideo',pinEnvVar: 'FASTVIDEO_PIN',+ expectedRevision: '430e52154e76b902c3cc17a16b3edc1fad790012',importProbe: 'import fastvideo; import mlx.core',fingerprintPackages: ['fastvideo', 'mlx', 'mlx_metal', 'torch', 'transformers', 'huggingface-hub'],},diff --git a/server/services/videoGen/runtimes.test.js b/server/services/videoGen/runtimes.test.jsindex 6ea194e23c..f3b2025a85 100644--- a/server/services/videoGen/runtimes.test.js+++ b/server/services/videoGen/runtimes.test.js@@ -461,6 +461,13 @@ describe('MiniMax H3 CUDA offload profiles', () => {describe('fastvideo runtime registration', () => {const info = BYOV_RUNTIME_INFO.fastvideo;+ it('marks older FastVideo checkouts as upgradeable and recognizes the VSA-capable pin', async () => {+ runtimeMocks.spawn.mockImplementation(() => statusChild('old-runtime-revision\n'));+ await expect(isByovRuntimeCurrent('fastvideo')).resolves.toBe(false);+ runtimeMocks.spawn.mockImplementation(() => statusChild(`${info.expectedRevision}\n`));+ await expect(isByovRuntimeCurrent('fastvideo')).resolves.toBe(true);+ });+it('is a BYOV runtime with its own venv', () => {expect(BYOV_VIDEO_RUNTIMES.has('fastvideo')).toBe(true);expect(info.installEnvVar).toBe('INSTALL_FASTVIDEO');