Instructions to use PhaiModelLab/Phai-M1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PhaiModelLab/Phai-M1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("PhaiModelLab/Phai-M1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download README.md from PhaiModelLab/Phai-M1: direct link, hf CLI and curl.
- Browser
- Download file 16.3 kB
-
https://huggingface.co/PhaiModelLab/Phai-M1/resolve/main/README.md
- Command line
-
hf download hf://PhaiModelLab/Phai-M1/README.md
-
curl -L -o README.md https://huggingface.co/PhaiModelLab/Phai-M1/resolve/main/README.md
language:
- en
- zh
- ar
base_model:
- Lightricks/LTX-2.5
library_name: diffusers
pipeline_tag: text-to-video
Base Model: LTX-2.5
Model Type: Video generation model (supervised post-training)
English | 中文
1. Model Overview
Phai-M1 is a video generation model post-trained from LTX-2.5 for content creation under various conditioning settings. The model is trained using supervised fine-tuning (SFT) on video clips totaling over 150 hours. The post-training tasks include Visual Reasoning (VR), Image-to-Video (I2V), and Text-to-Video (T2V), aiming to improve the model's adaptability across different generation tasks and expand its coverage of specific visual styles.
Phai-M1's post-training particularly focuses on types of content where the original base model was relatively weaker. The I2V and T2V datasets have been selectively enriched with examples of Chinese 3D animation, Chinese 2D animation, and stylized CG, among other styles, to broaden training coverage and generation capabilities for these aesthetics.
2. Model Details
| Field | Description |
|---|---|
| Model Name | Phai-M1 |
| Base Model | LTX-2.5 |
| Post-training Method | Supervised Fine-Tuning (SFT) |
| Post-training Data | Video clips totaling over 150 hours |
| Task Distribution | Approximately 20% VR; 30% I2V; 50% T2V |
| Demo Platform (Limited Compute) | Try Phai-M1 Online |
| License and Terms of Use | Same as the LTX-2.5 base model; see LICENSE |
3. Training Data and Strategy
The post-training dataset is organized into video clips and divided into three task categories:
- Visual Reasoning (approximately 20%): Visual reasoning supervision introduces training signals related to visual understanding and reasoning.
- Image-to-Video (approximately 30%): Reference images and associated conditions guide the generation process, enabling the model to learn how to extend static visual content into dynamic video sequences. The training examples include additional Chinese 2D/3D animation and stylized CG content.
- Text-to-Video (approximately 50%): Text descriptions serve as generation conditions across diverse scenes and visual styles, supplemented with animation and CG examples that were challenging for the base model.
The model undergoes post-training through supervised fine-tuning. Style-oriented data enrichment addresses not only subject coverage but also visual characteristics such as design language, rendering texture, color palettes, and cinematographic expression. These are intended areas of support in the data design, rather than claims of unmeasured performance gains.
4. How to Use
In any pipeline or workflow that utilizes the original LTX-2.5 model, you can replace the corresponding diffusion_models weights with those from Phai-M1. For example:
diffusion_models/ltx-2.5-22b-dev-transformer-bf16.safetensors -> diffusion_models/Phai-M1-22b-dev-transformer-bf16.safetensors
If you wish to use the complete model, you can obtain the full set of model weights using the following commands:
hf download PhaiModelLab/Phai-M1 --local-dir /phai-m1/diffusion_models
hf download Lightricks/LTX-2.5 --local-dir /phai-m1 --exclude="diffusion_models/*"
Higher-quality prompts lead to better video generation. We recommend using our compiled prompt enhancement instructions. You can combine these instructions with your original prompts and submit the result to any LLM to obtain an enhanced version of your prompt.
4. Video Showcase
| Sample 01 · [Style / Scene] | Sample 02 · [Style / Scene] | ||
|---|---|---|---|
| LTX-2.5 | Phai-M1 | LTX-2.5 | Phai-M1 |
| Prompt 01: A continuous aerial shot skims above rows of tea bushes on a misty hillside in Fujian. The camera follows a narrow stone path uphill, passing a farmer with a woven basket. It rises over the ridge and tilts gently down, revealing overlapping terraces and red roofs in the valley. The shot holds as low sunlight spreads across the terraces and the far hills remain under mist. A breeze moves through the tea bushes, with thin morning birdsong farther down the slope. | Prompt 02: A floor-height medium shot frames a small golden dog lying on the mat inside a green door. A distant pair of footsteps grows louder and the dog lifts its chin, then raises both ears and looks toward the handle. The steps stop outside and the dog waits with its tail making one slow sweep across the mat. The quiet room tone continues after the footsteps. | ||
| Sample 03 · [Style / Scene] | Sample 04 · [Style / Scene] | ||
| LTX-2.5 | Phai-M1 | LTX-2.5 | Phai-M1 |
| Prompt 03: A vertical medium close-up frames an adult East Asian woman in a black coat beside a warm station entrance light. An offscreen companion says softly in Mandarin, “准备好了吗?” She listens, looks toward the voice and answers, “走吧。” Her mouth relaxes into a small smile after the line. The same amber light holds on her face under faint street ambience. | Prompt 04: A medium shot frames a person's hand waving. The hand waves left to right once, then freezes completely still for one second, then continues waving left to right again. The camera remains static. Quiet ambient sound. | ||
| Sample 05 · [Style / Scene] | Sample 06 · [Style / Scene] | ||
| LTX-2.5 | Phai-M1 | LTX-2.5 | Phai-M1 |
| Prompt 05: A vertical side view frames a swimmer standing at the end of a low diving platform above a deep blue pool. The swimmer takes a breath, bends both knees and pushes off with arms extending overhead. The camera tilts down with the body as the fingertips enter first, followed by a narrow splash. The view continues below the surface, following a trail of bubbles as the swimmer straightens into a glide across bands of refracted sunlight. As the bubbles rise out of frame, the swimmer slows and extends one hand toward the light. The splash peaks at entry and gives way abruptly to muffled bubbles below the surface. | Prompt 06: Chinese ink-wash painting animation, traditional shuimo watercolor aesthetics, elegant brush strokes, textured xuan paper background, generous negative space. A medium shot frames a single ink-wash crane standing among pale gray reeds in shallow misty water, its body painted in soft white washes, its neck and tail in bold black strokes, a small vermilion crown on its head. The crane stands perfectly still on one leg. It slowly lowers its long neck, dips its beak into the water, and a thin ripple of diluted ink spreads outward. It lifts its head, a water drop falling from its beak, then suddenly spreads its wings wide, the wing feathers rendered in layered flying-white brush strokes, droplets of ink scattering from the wingtips. It holds the wing-spread pose, then folds its wings back gracefully and returns to standing on one leg. Reeds sway once in the wind. The camera tilts up slightly when the wings spread, then returns. A distant crane call, soft wind through reeds, dripping water. | ||
| Sample 07 · [Style / Scene] | Sample 08 · [Style / Scene] | ||
| LTX-2.5 | Phai-M1 | LTX-2.5 | Phai-M1 |
| Prompt 07: 2D anime-style animation with cel-shaded characters, sparkling magical girl aesthetic, vivid rainbow colors, clean line art. A medium shot frames an anime girl with short pink hair standing in a dark magical space filled with floating soft light orbs. She raises a small heart-shaped brooch, closes her eyes, and shouts silently. The brooch bursts into brilliant light that wraps around her body like glowing ribbons. Ribbons of pink and white light spiral around her from head to toe, forming a frilly magical girl costume piece by piece: gloves first, then boots, then the dress. Sparkles rain down around her as her hair grows longer and turns a brighter pink, tied by two ribbons that materialize in glowing flashes. She lands in a confident pose, wand in hand, pink heart effects popping behind her as the last sparkle falls. The camera spins around her once during the ribbon spiral, then stops on her final pose. Rising magical chime, twinkling star sounds, a dramatic final note. | Prompt 08: Chinese 3D animation in a xianxia setting. A wide establishing shot frames a young cultivator in white and blue Chinese traditional robes sitting cross-legged on a round stone platform above a sea of clouds at dawn, muted blue and gold colors, glowing particles floating in the air. He sits still, eyes closed, hands resting on his knees. Wisps of golden light begin to spiral slowly around his body. The spirals grow faster and brighter, his long hair and loose sleeves fluttering without wind. His eyebrows tighten and his fists clench. Suddenly he opens his eyes, golden light shining in his pupils, and a ring of energy bursts outward from his body, sweeping the clouds away and snapping his robes straight. The camera pushes in from the wide view to a close-up of his glowing eyes as the energy explodes. Deep rumbling, rising wind, one final deep boom. | ||
| Sample 09 · [Style / Scene] | Sample 10 · [Style / Scene] | ||
| LTX-2.5 | Phai-M1 | LTX-2.5 | Phai-M1 |
| Prompt 09: A cinematic shot frames two men playing chess at a wooden table in a quiet study, warm lamp light over the board. The older man in gray stares at the board, confident. Across from him, the younger man in black leans forward, thinking hard, hand hovering over his pieces. Suddenly his eyes sharpen. He picks up his knight, moves it decisively across the board, and places it down with a firm tap. 'Checkmate.' The camera cuts closer: the older man's confident smile fades, his eyebrows rise in disbelief as he scans the board. The younger man leans back slowly, crossing his arms with a quiet, satisfied smile. Clock ticking, the tap of the chess piece, a long silence. | Prompt 10: A medium shot frames a red rubber ball dropping from above onto a hardwood floor. The ball bounces three times, each bounce lower than the last, then rolls to a stop. The camera remains static. Natural indoor lighting. The sound of ball impacts and rolling. | ||
| Sample 11 · [Style / Scene] | Sample 12 · [Style / Scene] | ||
| LTX-2.5 | Phai-M1 | LTX-2.5 | Phai-M1 |
| Prompt 11: A close-up shot frames a glass jar of golden honey tilted over a white plate. Thick honey pours out in a slow, continuous stream, coiling into a growing spiral pile on the plate. The stream remains unbroken and glossy. The camera remains static. Natural lighting. Quiet ambient sound. | Prompt 12: A medium shot frames an empty table surface. A hand places a blue wooden block on the table. The hand returns and places a red block on top of the blue block. The hand returns again and places a yellow block on top of the red block, creating a stable three-block tower. The camera remains static. Soft block placement sounds. | ||
5. Model Limitations
As a generative video model, Phai-M1 may still exhibit changes in character or object appearance, inconsistencies across frames, implausible physical motion, failure to follow complex instructions, or inaccuracies in rendering specific styles, particularly in complex scenes. Outputs may also vary depending on the prompt, reference images, and generation parameters. Human review and appropriate post-processing are recommended for production use.
6. Responsible Use and Release Information
Users should be mindful of risks related to fabricated or misleading videos, real individuals' likeness and privacy, copyright, training data permissions, and potentially biased generated content. Appropriate labeling of AI-generated content and human review are recommended where applicable. Specific usage permissions, restrictions, training data provenance, and filtering policies will be added before public release.