Image-Text-to-Text
Transformers
Safetensors
qwen3_5
long-video-understanding
multimodal-memory
agent
conversational
Run this model with HF Jobs
Run Shadow-Weave/PMM-9B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Shadow-Weave/PMM-9B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Shadow-Weave/PMM-9B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Shadow-Weave/PMM-9B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Shadow-Weave/PMM-9B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Shadow-Weave/PMM-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shadow-Weave/PMM-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Shadow-Weave/PMM-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Shadow-Weave/PMM-9B") model = AutoModelForMultimodalLM.from_pretrained("Shadow-Weave/PMM-9B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Shadow-Weave/PMM-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Shadow-Weave/PMM-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Shadow-Weave/PMM-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Shadow-Weave/PMM-9B
- SGLang
How to use Shadow-Weave/PMM-9B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Shadow-Weave/PMM-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Shadow-Weave/PMM-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Shadow-Weave/PMM-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Shadow-Weave/PMM-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Shadow-Weave/PMM-9B with Docker Model Runner:
docker model run hf.co/Shadow-Weave/PMM-9B
Update usage and code link
Browse files14 unmodified lines15161718181920212222232425261 unmodified line28293030313233343536373839404142434414 unmodified lines
- 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 (coming soon)- Code: https://github.com/Shadow-Weave/PMM- Memory used in the paper: https://huggingface.co/datasets/Shadow-Weave/PMM-Memory
## Results
Accuracy (%) from Table 1 of 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.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.
| EgoLifeQA | HippoVlog | MLVU | LongVideoBench | VideoMME Long | Avg. ||---|---|---|---|---|---|1 unmodified line
## Usage
The model uses the same files and architecture as Qwen3.5-9B, so it loads with Transformers, vLLM, and SGLang. PMM serves it as an OpenAI-compatible endpoint with thinking disabled (`enable_thinking: false`). The PMM framework that runs the Root on a video memory will be released in the code repository.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:
```shhf download Shadow-Weave/PMM-9B --local-dir PMM-9Bpython -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
README.md+14-3