{"slug": "meta-fuxi-open-unified-multimodal-code-from-facebookresearch", "title": "Meta Fuxi: Open Unified Multimodal Code from facebookresearch", "summary": "Meta's facebookresearch organization published the Fuxi repository on GitHub in December 2026 under an Apache-2.0 license, releasing open code for a unified multimodal model that handles text-to-image generation, image editing, and visual understanding through one training stack. The release includes pretrain and two-stage SFT configs, FuxiPipeline inference, and evaluation hooks for GenEval, DPG-Bench, ImgEdit, and GEdit, but no downloadable model weights; Meta labels the work under review with a placeholder BibTeX. The stack ties an LLM to a SigLIP2 vision encoder, Wan2.2 VAE, and flow head, and the download script caches Qwen2.5-1.5B-Instruct, SigLIP2, Wan2.2 VAE, and LPIPS, while Meta's internal image-text and editing pairs are excluded from the release.", "body_md": "**Meta’s facebookresearch organization published the [Fuxi](https://github.com/facebookresearch/fuxi?ref=explainx) repository on GitHub in December 2026: open Apache-2.0 code for a unified multimodal model that coordinates text-to-image generation, image editing, and visual understanding.** The README titles the method **Conflict-Aware Tri-Level Coordination for Unified Multimodal Understanding and Generation**. You get install steps, **pretrain** and **two-stage SFT** configs, **FuxiPipeline** inference, and **GenEval**, **DPG-Bench**, **ImgEdit**, and **GEdit** evaluation hooks—not a single downloadable “Fuxi-7B” product weight on day one.\n\n## What shipped in the repo\n\nThe first public commit exposes a full training stack under the `fuxi` Python package:\n\n| Area | What you get | \n|---|---|\n| **Model** | Config-driven stack tying an LLM, SigLIP2 vision encoder, Wan2.2 VAE, and flow head | \n| **Data** | JSONL/Parquet manifests for pairs, conversation, multi-image, text-only, and edit rows | \n| **Train** | `torchrun -m fuxi.train` with FSDP2, EMA, DCP checkpoints, safetensors export | \n| **Sample** | `python -m fuxi.sample` for**t2i** ,**edit** , and**mmu** (multimodal understanding) | \n| **Eval** | Sharded understanding eval plus T2I and edit benchmark drivers | \n\nMeta labels the work **under review** and leaves BibTeX as a placeholder. Treat released assets as **research infrastructure** you reproduce on your own GPUs, similar to how [Nemotron visual lines](https://explainx.ai/blog/nemotron-labs-visual-creation-pixel-as-code-november-2026) ship code before broad product APIs.\n\nUnified multimodal AI model routing text image and edit tasks through one training stack\n\n## Architecture in plain language\n\nFuxi sits in the **unified multimodal** family: one network learns multiple visual tasks instead of bolting a diffusion U-Net beside a frozen VLM. The README’s acknowledgements map the lineage:\n\n- **[Show-o2](https://github.com/showlab/Show-o?ref=explainx)** — model structure and attribute naming\n- **TUNA** — unified visual representation and flow-head design\n- **Qwen2.5** and**SigLIP2** — text and image encoders you download from public hubs\n- **Wan2.2 VAE** — image latent codec for generation and reconstruction loss (LPIPS bundled in assets script)\n- **SiT transport** and**transfusion-pytorch** — flow matching and omni-attention patterns\n\n**Conflict-aware tri-level coordination** (the paper title) is Meta’s name for how understanding, generation, and editing objectives share parameters without one task silently breaking another. The training code packs **T2I**, **understanding**, and **editing** samples into shared sequence formats in `fuxi/data/formatting.py`, with online aspect-ratio bucketing so each batch stays one resolution.\n\nBuilders who follow [Tencent OmniEVIE](https://explainx.ai/blog/tencent-omnievie-4b-multimodal-retrieval-november-2026) or [Apple tri-modal diffusion](https://explainx.ai/blog/apple-tri-modal-masked-diffusion-text-image-audio-from-scratch-neurips-paper-2026) research will recognize the pattern: **one tokenizer stream**, multiple supervision types, heavy data plumbing.\n\n## Installation and assets\n\nRequirements from the README:\n\n```\ngit clone https://github.com/facebookresearch/fuxi.git && cd fuxi\npip install -e .\npip install -e \".[eval]\"\n```\n\nFor benchmarks that pull **mmdetection**, **OpenCLIP**, or **ModelScope mPLUG**, Meta warns to use **separate environments** following upstream GenEval and DPG instructions—do not assume one `pip install` satisfies every scorer.\n\nDownload public base weights:\n\n```\nFUXI_ASSETS=/path/to/assets bash scripts/download_assets.sh\nexport FUXI_ASSETS=/path/to/assets\n```\n\nThat script caches **Qwen2.5-1.5B-Instruct**, **SigLIP2**, **Wan2.2 VAE**, and **LPIPS** for reconstruction loss. Internal Meta image-text and editing pairs are **not** in the release; training from scratch uses the **public dataset list** in the README (FineVision, LLaVA-OneVision variants, Honey-Data, Nemotron text, GPT-Image-Edit, Pico-Banana-400K, ImgEdit, and others).\n\n## Training stages Meta documents\n\n| Stage | Config | Notes | \n|---|---|---|\n| Pretrain | `configs/train/pretrain.yaml` | 200K steps, VAE included | \n| SFT part 1 | `configs/train/sft.yaml` | From pretrain EMA via `train.init_from` | \n| SFT part 2 | `configs/train/sft_edit.yaml` | Adds editing data; continues part 1 with `train.continue_from` | \n| Ablations | `ablation_pretrain.yaml` ,`ablation_sft.yaml` | Shorter runs for ablation studies | \n\nLaunch pattern:\n\n```\ntorchrun --nnodes N --nproc_per_node 8 -m fuxi.train \\\n  --config configs/train/pretrain.yaml output_dir=/path/to/run\n```\n\nCheckpoints land under `output_dir/ckpt/step_*` with **safetensors** exports at `output_dir/export/step_*/ema.safetensors` for inference. **TensorBoard** logs go to `output_dir/tb`.\n\nIf you are comparing training cost to [local Nemotron or Llama workflows](https://explainx.ai/blog/llama-cpp-v0-9-0-ggml-0-29-0-fp8-e4m3-multi-node-tensor-parallelism-nccl-what-changed-2026), budget **multi-node torchrun** and **VAE-inclusive pretrain** before promising same-day demos.\n\nMeta Fuxi diffusion training noise resolving into generated image samples\n\n## Inference: one pipeline, three commands\n\nAfter training or obtaining an EMA checkpoint:\n\n```\npython -m fuxi.sample t2i --config configs/model/fuxi_base.yaml --checkpoint /path/to/ema.safetensors ...\npython -m fuxi.sample edit --config configs/model/fuxi_base.yaml --checkpoint /path/to/ema.safetensors ...\npython -m fuxi.sample mmu --config configs/model/fuxi_base.yaml --checkpoint /path/to/ema.safetensors ...\n```\n\nThe README’s Python snippet loads **FuxiPipeline.from_pretrained**, runs **t2i** with multiple images per prompt, **edit** with PIL inputs, and **mmu** for chart-style VQA—useful for smoke tests before you wire a product UI.\n\nFor teams that already serve [image edit APIs](https://explainx.ai/blog/krea-3-image-editing-model-under-8-seconds-2k-0-06-per-image-vs-nano-banana-pro-gpt-image-2-2026) or [open T2I stacks](https://explainx.ai/blog/flux-3-image-klein-open-weights-5-6b-guide-2026), Fuxi is an **on-prem research baseline**, not a drop-in hosted endpoint.\n\n## Evaluation entry points\n\nMeta wires **understanding** eval through `fuxi.eval.understanding`, **GenEval** and **DPG-Bench** through `fuxi.eval.t2i`, and **ImgEdit** / **GEdit** through `fuxi.eval.edit` plus optional **OpenAI** judges when keys are set.\n\nPractical notes from the README:\n\n- **GenEval** generation is sharded with torchrun; scoring runs in the upstream GenEval environment.\n- **Editing judges** can call an OpenAI backend via`OPENAI_BASE_URL` and`OPENAI_API_KEY` for VIEScore-style metrics.\n- EMA weights are the recommended checkpoint for eval.\n\nThat split mirrors how [Nemotron Labs](https://explainx.ai/blog/nemotron-labs-visual-creation-pixel-as-code-november-2026) and [Harvey Muse legal benchmarks](https://explainx.ai/blog/harvey-muse-spark-open-lab-30-percent-legal-agent-benchmark-november-2026) keep **generation** and **judge models** in different environments.\n\n## How Fuxi fits Meta’s open-weight strategy\n\nKari Briski’s **GTC Washington** messaging on open models—covered in our [Nemotron Super Decision Model post](https://explainx.ai/blog/nvidia-nemotron-4-super-decision-model-gtc-washington-december-2026)—stresses that developers want **weights they can adapt**. Fuxi is the **multimodal research counterpart**: code and configs you can audit, not only an API.\n\nIt differs from **consumer Meta AI apps** and from **Llama-only** text releases. It is closer to **unified research platforms** like [SenseTime MT Forcing](https://explainx.ai/blog/mt-forcing-multi-turn-image-editing-autoregressive-diffusion-sensetime-2026), but with Meta’s dataset mix and **Apache-2.0** license on the repo (third-party components keep their own licenses in **NOTICE**).\n\nPolicy readers should pair Fuxi with [Jack Dorsey’s open-weights argument](https://explainx.ai/blog/jack-dorsey-open-the-frontier-pace-the-frontier-2026) and [Journal of Democracy’s activist use case](https://explainx.ai/blog/open-weight-ai-models-critical-freedom-gladstein-journal-democracy-december-2026) for why **downloadable** stacks matter outside the datacenter.\n\n## What to try this week\n\n1. **Clone and install** — confirm`pip install -e .` on a GPU node with PyTorch 2.6+.\n2. **Download assets** — run`download_assets.sh` once; point configs offline if your cluster blocks Hugging Face hub pulls.\n3. **Smoke-test inference** — use published base config plus any EMA file you train or obtain; run`t2i` on one prompt before multi-GPU training.\n4. **Pick one benchmark** — start with**understanding** or**GenEval generate** only; add scoring environments in a second venv.\n5. **Log FAR-style discipline** — if you fine-tune on custom specs, borrow**feature-level acceptance** thinking from[NL2Repo-Pro](https://explainx.ai/blog/nl2repo-pro-agent-library-benchmark-far-december-2026) so “high test pass rate” does not mask broken features.\n\nTeams needing **structured multimodal training** for employees can pair this repo with explainx.ai’s [AI builder workshops](https://explainx.ai/workshops/ai-builder) for safe GPU lab setup—not a substitute for reading Meta’s **NOTICE** file on derived components.\n\n## Data row schemas in detail\n\nThe README’s manifest section is the operational contract. **T2I pairs** use `{id, image, caption[, width, height]}` rows with optional probability `p_und` if a caption row doubles as understanding supervision. **Conversation** rows follow LLaVA-style `{from: human|gpt, value}` turns on a single image. **Multi_image** allows up to six images in one understanding dialog—relevant for chart-comparison or before/after edit reasoning. **Text-only** rows keep language capabilities from drifting when image batches dominate sampling. **Edit** rows store `{images: [condition..., target], instruction}` with one or two reference frames.\n\nPaths stay **relative to each source’s `image_root`**, so a single training run can blend FineVision-scale web images with Nemotron text without a monolithic filesystem layout. **Bucketing** resizes to closest aspect-ratio queues so each batch is resolution-homogeneous—a requirement for efficient flex attention paths on recent PyTorch builds.\n\nWhen bad samples fail decode, **deterministic replacement** pulls another row from the same source instead of crashing the epoch. Combined with **resumable samplers**, that design targets week-long pretraining jobs on SLURM clusters where flaky storage is normal. If you manage [NVIDIA disaggregated training](https://explainx.ai/blog/cerebras-nvidia-disaggregated-inference-dynamo-december-2026) style fleets, the same discipline applies: data loaders must never be the silent source of NaNs.\n\n## Troubleshooting a first Fuxi run\n\n**OOM during pretrain:** Lower micro-batch via config overrides or enable more aggressive checkpointing; VAE-inclusive pretrain keeps latents hot in memory longer than text-only LLM runs. **Hub timeouts on `download_assets.sh`:** Mirror `Qwen2.5-1.5B-Instruct`, SigLIP2, and Wan VAE into `FUXI_ASSETS` and point `model.llm.path` / `model.vision.path` locally—the README documents offline overrides. **GenEval scorer import failures:** Expect a **second conda env**; mixing mmdetection with FSDP2 training dependencies often breaks both. **Edit judge API errors:** `OPENAI_BASE_URL` and `OPENAI_API_KEY` gate optional VIEScore backends; without keys, run `check` commands that do not require judges first.\n\n**EMA versus raw checkpoints:** Inference and eval docs specify EMA exports. Starting from a mid-training non-EMA weight produces plausible-looking but low-FID samples—document which file your demo uses when reporting numbers to stakeholders.\n\n## Licensing and redistribution\n\nRepository code is **Apache-2.0**, but **NOTICE** enumerates components under BSD, MIT, and project-specific terms from Show-o2, TUNA, Wan2.2, and benchmark kits. Product teams shipping **commercial fine-tunes** must trace **NOTICE** line by line, not only the top-level LICENSE. Generated weights you train remain your responsibility for downstream **safety** and **content policy**—Meta does not ship a branded **Fuxi Moderation API** in this drop.\n\n## Comparison lens for buyers\n\n| Need | Fuxi repo | Typical hosted API | \n|---|---|---|\n| Unified T2I + edit + VQA | One train stack | Often separate products | \n| On-prem air gap | Possible with local assets | Requires enterprise contract | \n| Benchmark repro | GenEval / DPG hooks in-tree | Vendor tables only | \n| Time to first demo | Days (train or find EMA) | Minutes (API key) | \n\nNeither row “wins” universally—this repo is for teams that already own GPUs and want **reproducible paper numbers**, not instant consumer apps.\n\n## Energy and scheduling notes for pretrain\n\nStage-one **pretrain** at **200K steps** with **VAE gradients enabled** is not a weekend job on a single eight-GPU box. Meta’s configs assume **multi-node torchrun** with **FSDP2** sharding—teams coming from **single-GPU LoRA** fine-tunes should resize expectations before promising executive demos. **sft_edit** continuation also requires the **same GPU count** as stage-one SFT when using `train.continue_from`; changing world size mid-run breaks checkpoint compatibility in most distributed trainers.\n\nIf your org already runs [Nemotron or Llama-class](https://explainx.ai/blog/nvidia-nemotron-4-super-decision-model-gtc-washington-december-2026) jobs on SLURM, reuse **job arrays** and **tensorboard centralization** from those playbooks rather than inventing a separate monitoring stack for Fuxi alone.", "url": "https://wpnews.pro/news/meta-fuxi-open-unified-multimodal-code-from-facebookresearch", "canonical_source": "https://explainx.ai/blog/meta-fuxi-unified-multimodal-github-facebookresearch-december-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-12-02 00:00:00+00:00", "updated_at": "2026-12-02 02:45:54.951882+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "generative-ai", "computer-vision", "ai-research"], "entities": ["Meta", "facebookresearch", "Fuxi", "Qwen2.5-1.5B-Instruct", "SigLIP2", "Wan2.2 VAE", "GenEval", "DPG-Bench"], "also_reported_by": [], "takeaway": "Fuxi ships Apache-2.0 training code with FSDP2, EMA and DCP checkpoints via torchrun -m fuxi.train, plus t2i, edit and mmu sampling, but no model weights, so builders must reproduce it on their own GPUs using the public dataset list.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/meta-fuxi-open-unified-multimodal-code-from-facebookresearch", "markdown": "https://wpnews.pro/news/meta-fuxi-open-unified-multimodal-code-from-facebookresearch.md", "text": "https://wpnews.pro/news/meta-fuxi-open-unified-multimodal-code-from-facebookresearch.txt", "jsonld": "https://wpnews.pro/news/meta-fuxi-open-unified-multimodal-code-from-facebookresearch.jsonld"}}