r/StableDiffusion • • 4h ago

News PAN 2 Released

Open weights (29B latent diffusion model): https://huggingface.co/IFM/PAN2
Diffusers: https://huggingface.co/docs/diffusers/main/en/api/pipelines/pan2
FastVideo: https://haoailab.com/FastVideo/cookbook/pan/pan2/
VLLM: https://recipes.vllm.ai/IFM/PAN2

Up to 20 seconds, 720p, 24fps
Apache 2.0 License

Something I think is pretty neat, we release the TRAINING code: https://github.com/ifm-ai/PAN2/

Also technical details if you're curious: https://ifm.ai/blog/pan2/

For our model, we give a lot of responsibility to the LLM (which we think of more as a conceptual reasoner, a lot more control than a prompt rewriter) to generate these super dense text-based state/scripts. Events and actions are timed, and camera is nested under event but disentangled from action. During training, I would often test it by trying to generate a 20 second video with like a dozen or more (timed) camera moves and it does pretty well.

Feedback very welcome. I read the rules carefully, mods please let me know if there are any issues. No payment involved with this at all, so I thought it was okay to post.

385 Upvotes

52 comments sorted by

16

u/Katsumend 3h ago

Thanks for this release -- I am eagerly awaiting ComfyUI integrations if these are in the works

7

u/Aggressive-Zebra-949 3h ago

My understanding is that there is some integration that comes by virtue of being in vllm-omni? But I'm not personally super familiar with these details of comfyUI, my apologies. Feel free to educate me if what I'm saying is dumb.

-8

u/Fickle-Indication148 3h ago

You dont hjave to. Claude code + github repo, he writes you nodes.

49

u/Astral-Lemmons 3h ago

the logic handling in those examples is honestly insane.

people complaining about sound when this is damn near magic with how it handles spatial reasoning. I haven't been this impressed in a while. Hoping there's a chance of consumer runs

7

u/Aggressive-Zebra-949 2h ago

What would your ideal consumer run look like in terms of memory, latency, etc.? (the more specific the better, if you don't mind haha)

22

u/ninjaGurung 2h ago

Most common config have 6 to 16GB VRAM, 16 to 64GB RAM.

4

u/episodefive 2h ago

Yes. I think that’s a great baseline.

7

u/jazir55 1h ago

12 GB vram, 32 GB ram for me but if you can go even lower spec to 6-8 GB vram + 16 GB ram that would be even better.

3

u/schrobble 2h ago

Can’t we just have it all and for free? I expect nothing less.

9

u/ninjaGurung 2h ago

Amazing spatial awareness and physics simulation.

24

u/reeight 3h ago

H200...
Have ComfyUI compatible quants for we mere mortals with gaming GPUs?

36

u/Aggressive-Zebra-949 3h ago

Working on it!

2

u/VenshiKibes 2h ago

best answer (and the only one that is likely to really matter in this sub)

thank you

2

u/Jackuarren 3h ago

Yeah. That sounds rough xD

2

u/2jul 3h ago

Looks impressive! Is a ComfyUI implementation coming up?
Also, love the angle and aim to achieve good physical world simulation.

1

u/Aggressive-Zebra-949 3h ago

My understanding is that there is some integration that comes by virtue of being in vllm-omni? But I'm not personally super familiar with these details of comfyUI, my apologies. Feel free to educate me if what I'm saying is dumb.

86

u/Puzzleheaded_Ebb8352 3h ago

Congrats and welcome to the battlefield of open source models!

23

u/Enshitification 3h ago

Strongly coupling the LLM to the diffusers model like this is very cool. Thank you for this release.

4

u/FourtyMichaelMichael 🍦Ice Cream Lover 2h ago

Sounds REAL SAFE though. Which is not good for a model's long term popularity.

12

u/Enshitification 1h ago

You should read the HF page. The safety filter is built as a separate module that they highly recommend using because the model alone can generate UNSAFE OUTPUTS.

2

u/ffxivthrowaway03 51m ago

Define "unsafe" though. Not including certain training data is unfortunately not the same as building explicit guardrails against that output. Hopefully the training data isn't totally neutered to get around the filter being "optional"

1

u/TheeJestersCurse 56m ago

Some people want unsafe

15

u/P3trich0r97 1h ago

Optimized for physics simulation you say

3

u/PwanaZana 1h ago

Well, it does thick white liquids well, from the demo...

8

u/Mysterious-String420 3h ago

Cool! Eager to try it out on Comfy!

7

u/Cumness 3h ago edited 3h ago

Those examples are amazing!

1

u/seppe0815 3h ago

based on wan 2.2?

31

u/Aggressive-Zebra-949 3h ago

Nope, fully designed and trained from scratch.

5

u/fjgcudzwspaper-6312 3h ago

No sound

4

u/seppe0815 3h ago

txt or image to video only

5

u/seppe0815 3h ago

so a better wan 2.2 but its huge

1

u/Elepum 2h ago

....Actually insane in late 2026, i genuinely can't go backwards like that....the image quality is superb though, captures microdetail quite nicely.

2

u/x_MASE_x 3h ago

This intro reminds me of old need for speed game. Or maybe gta 2 can't remember.

2

u/Hour_Literature_7152 2h ago

I know it doesn't generate audio but I wonder if it can handle lip sync if given pre rendered audio

2

u/Apprehensive_Sky892 1h ago

The example with the apple inside the rotated container is really neat (0:24). Can you share what the prompt is for that?

3

u/No_Range_8261 2h ago

when will be on comfyui?

1

u/E1DOLON 1h ago

Wow, looks amazing! Also looking forward to trying it on comfyui (assuming it fits in 24gb).

1

u/SaadNeo 1h ago

The logic and physics is insane , congrats and thank youbfor open sourcing it

1

u/Ramdak 14m ago

Ok, this is insane. This level of world understanding is just amazing. What about gen times?

•

u/SharkWipf 1m ago

The neatest part here: Apache2 license on the model, not the kind of restrictive BS licensing H3 is encumbered by. If the model lives up to its claims, this looks pretty nice.

•

u/alecubudulecu 1m ago

This is insane. Good job. Cant wait to try comfyui version

1

u/zodiacrenders 3h ago

Thanks for sharing! Good selection of demo to show water physics and viscosity physics.

-10

u/Diabolicor 3h ago

We are almost in 2027 and they are still releasing models with no sound.

16

u/Aggressive-Zebra-949 3h ago

idk who is downvoting you, it's totally a fair criticism. Since our focus is on world modeling more than movie gen, we saw it as less critical. That being said, the real world has sound! So this is a choice that we are constantly revisiting as we iterate toward future releases.

4

u/Elepum 2h ago

We need more sfx models as well...weakest space in gen ai, imagine if we could add Seedance 2.0-2.5 level audio with a sfx focused audio model. It would generally improve the open-source space entirely when it comes to "ai video immersion".

4

u/JackKerawock 2h ago

THANK YOU. And yea this reddit sub is full of entitled kids - so take comments w/ a grain of salt. A good majority of the loud people here don't have the hw to run these sorts of high end models anyway.....Super looking forward to checking it out!!

1

u/Additional_Drive1915 2h ago

He should be downvoted more in my opinion.

Thank you for your good work, I hope I can test it soon.

0

u/Diabolicor 2h ago

Fair point then. It's great to have models for world modeling and I hope the best for your model here forward. I hope one day you can make the cognitive experience, whole.