--- license: apache-2.0 library_name: transformers base_model: Qwen/Qwen3.5-9B pipeline_tag: image-text-to-text tags: - long-video-understanding - multimodal-memory - agent --- # PMM-9B PMM-9B is the Root model of **Programmatic Multimodal Memory (PMM)**. It is fine-tuned from [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) with SFT and RL. The Root reads the memory of a long video by writing code: it searches text memory, calls `see` on video clips, and gives sub-tasks to `ask`. - Paper: [arXiv:2611.41408](https://arxiv.org/abs/2611.41408) - Project page: https://shadow-weave.github.io/PMM/ - Code: https://github.com/Shadow-Weave/PMM - Memory used in the paper: https://huggingface.co/datasets/Shadow-Weave/PMM-Memory ## Results Accuracy (%) reported in the paper. HippoVlog uses the 960 questions of the 24 available videos; MLVU uses M-Avg on the test set; on VideoMME Long, the memory is built without ASR transcripts. | Root | EgoLifeQA | HippoVlog | MLVU | LongVideoBench | VideoMME Long | Avg. | |---|---|---|---|---|---|---| | Qwen3.5-9B (zero-shot) | 49.6 | 74.9 | 54.5 | 65.8 | 58.3 | 60.62 | | **PMM-9B** | 68.4 | 80.8 | 68.6 | 75.1 | 70.6 | 72.70 | ## Usage Use the model through the [PMM code](https://github.com/Shadow-Weave/PMM). PMM applies the chat template itself and sends token IDs to the native `/generate` endpoint of SGLang, so serve the model with SGLang: ```sh hf download Shadow-Weave/PMM-9B --local-dir PMM-9B python -m pip install "sglang==0.5.22" python -m sglang.launch_server --model-path PMM-9B --served-model-name Qwen/Qwen3.5-9B \ --tensor-parallel-size 1 --context-length 65538 --max-running-requests 16 \ --mem-fraction-static 0.7 --port 30000 ``` Then pass `--root-url http://127.0.0.1:30000 --root-model PMM-9B` to `pmm ask` or `pmm eval`. `--root-model` must be the local directory. PMM also needs a Qwen3-VL-8B-Instruct submodel server; the code repository has the full commands and a HippoVlog example. ## License Apache-2.0, the same as the base model. ## Citation ```bibtex @article{shang2026pmm, title = {Programmatic Multimodal Memory: Learning to Read Long Videos with Code}, author = {Shang, Xuanming and Han, Yuhang and Shu, Yan and Liu, Dingning and Ding, Li and Qiang, Tao and Shao, Zhiqi and Yang, Zequn and Wang, Yanfeng}, journal = {arXiv preprint arXiv:2611.41408}, year = {2026} } ```