File size: 2,281 Bytes
d9b629b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
license: other
license_name: ltx-video-license
license_link: https://huggingface.co/Lightricks/LTX-2/blob/main/LICENSE.md
library_name: mlx
tags:
- video-generation
- mlx
- apple-silicon
- ltx-2
- dev
- quantized
---

# LTX-2 19B Dev (4-bit) - MLX

This is a 4-bit quantized version of the [LTX-2 19B Dev](https://huggingface.co/Lightricks/LTX-2) model, optimized for Apple Silicon using MLX.

## Model Description

LTX-2 is a state-of-the-art video generation model from Lightricks. This version has been quantized to 4-bit precision for efficient inference on Apple Silicon devices with MLX.

### Key Features

- **Pipeline**: Dev (full control with CFG scale)
- **Quantization**: 4-bit precision
- **Framework**: MLX (Apple Silicon optimized)
- **Memory**: ~19GB VRAM required

## Usage

### Installation

```bash
pip install git+https://github.com/CharafChnioune/mlx-video.git
```

### Command Line

```bash
# Basic generation
mlx-video --prompt "A beautiful sunset over the ocean" \
    --model-repo AITRADER/ltx2-dev-4bit-mlx \
    --pipeline dev \
    --height 512 --width 512 \
    --num-frames 33

# Dev pipeline with CFG
mlx-video --prompt 'A cat playing with yarn' \\
    --model-repo AITRADER/ltx2-dev-4bit-mlx \\
    --pipeline dev \\
    --steps 40 --cfg-scale 4.0
```

### Python API

```python
from mlx_video import generate_video

video = generate_video(
    prompt="A beautiful sunset over the ocean",
    model_repo="AITRADER/ltx2-dev-4bit-mlx",
    pipeline="dev",
    height=512,
    width=512,
    num_frames=33,
)
```

## Model Files

- `ltx-2-19b-dev-mlx.safetensors` - Main model weights (4-bit quantized)
- `quantization.json` - Quantization configuration
- `config.json` - Model configuration
- `layer_report.json` - Layer information

## Performance

| Resolution | Frames | Steps |
|------------|--------|------|
| 512x512 | 33 | ~40 steps |
| 768x512 | 33 | ~40 steps |

## License

This model is released under the [LTX Video License](https://huggingface.co/Lightricks/LTX-2/blob/main/LICENSE.md).

## Acknowledgements

- [Lightricks](https://lightricks.com/) for the original LTX-2 model
- [MLX](https://github.com/ml-explore/mlx) team at Apple for the framework
- [mlx-video](https://github.com/CharafChnioune/mlx-video) for the MLX conversion