Instructions to use Perflow-Shuai/longlive_2.0_5B_tmp_20260507 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use Perflow-Shuai/longlive_2.0_5B_tmp_20260507 with Wan2.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,20 +14,19 @@ tags:
|
|
| 14 |
<img src="https://github.com/wileewang/LongLive2.0/blob/release-clean-merge/assets/longlive2/logo.png?raw=true" alt="LongLive2.0 logo" width="100%">
|
| 15 |
</p>
|
| 16 |
|
| 17 |
-
# LongLive2.0 5B
|
| 18 |
|
| 19 |
-
This repository hosts
|
| 20 |
the LongLive2.0 release code:
|
| 21 |
|
| 22 |
https://github.com/wileewang/LongLive2.0
|
| 23 |
|
| 24 |
-
The checkpoint package contains
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
LongLive2.0 inference loads the base generator first, applies the LoRA modules,
|
| 30 |
-
and then loads the LoRA weights.
|
| 31 |
|
| 32 |
## Installation
|
| 33 |
|
|
@@ -65,15 +64,7 @@ Edit `configs/inference.yaml`:
|
|
| 65 |
|
| 66 |
```yaml
|
| 67 |
checkpoints:
|
| 68 |
-
generator_ckpt: checkpoints/longlive2_5b/
|
| 69 |
-
lora_ckpt: checkpoints/longlive2_5b/path/to/dmd_lora.pt
|
| 70 |
-
|
| 71 |
-
adapter:
|
| 72 |
-
type: lora
|
| 73 |
-
rank: 128
|
| 74 |
-
alpha: 128
|
| 75 |
-
dropout: 0.0
|
| 76 |
-
verbose: true
|
| 77 |
|
| 78 |
data:
|
| 79 |
data_path: /path/to/inference_prompts
|
|
@@ -89,9 +80,10 @@ inference:
|
|
| 89 |
multi_shot_rope_offset: 8
|
| 90 |
```
|
| 91 |
|
| 92 |
-
Replace
|
| 93 |
-
If
|
| 94 |
-
`lora_ckpt`
|
|
|
|
| 95 |
|
| 96 |
## Prompt Folder
|
| 97 |
|
|
@@ -159,8 +151,10 @@ Outputs are written to `output_folder`.
|
|
| 159 |
|
| 160 |
## Notes
|
| 161 |
|
| 162 |
-
- The
|
| 163 |
-
|
|
|
|
|
|
|
| 164 |
- `inference.sampling_steps` controls the number of denoising steps.
|
| 165 |
- `inference.multi_shot_sink` enables the multi-shot attention sink.
|
| 166 |
- `inference.multi_shot_rope_offset` controls the multi-shot RoPE offset.
|
|
|
|
| 14 |
<img src="https://github.com/wileewang/LongLive2.0/blob/release-clean-merge/assets/longlive2/logo.png?raw=true" alt="LongLive2.0 logo" width="100%">
|
| 15 |
</p>
|
| 16 |
|
| 17 |
+
# LongLive2.0 5B Checkpoint
|
| 18 |
|
| 19 |
+
This repository hosts the LongLive2.0 5B checkpoint for inference with
|
| 20 |
the LongLive2.0 release code:
|
| 21 |
|
| 22 |
https://github.com/wileewang/LongLive2.0
|
| 23 |
|
| 24 |
+
The checkpoint package contains a ready-to-use merged generator checkpoint. The
|
| 25 |
+
AR-trained base generator and DMD-distilled LoRA adapter have already been
|
| 26 |
+
merged, so standard inference only needs to load one `generator_ckpt`.
|
| 27 |
|
| 28 |
+
Do not configure a separate `lora_ckpt` or `adapter` section when using the
|
| 29 |
+
merged checkpoint, otherwise the LoRA adapter would be applied a second time.
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Installation
|
| 32 |
|
|
|
|
| 64 |
|
| 65 |
```yaml
|
| 66 |
checkpoints:
|
| 67 |
+
generator_ckpt: checkpoints/longlive2_5b/merged_generator.pt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
data:
|
| 70 |
data_path: /path/to/inference_prompts
|
|
|
|
| 80 |
multi_shot_rope_offset: 8
|
| 81 |
```
|
| 82 |
|
| 83 |
+
Replace `merged_generator.pt` with the actual merged checkpoint filename in this
|
| 84 |
+
repository. If your local config was copied from a base+LoRA setup, remove
|
| 85 |
+
`checkpoints.lora_ckpt` and the top-level `adapter` section before running
|
| 86 |
+
inference.
|
| 87 |
|
| 88 |
## Prompt Folder
|
| 89 |
|
|
|
|
| 151 |
|
| 152 |
## Notes
|
| 153 |
|
| 154 |
+
- The released BF16 checkpoint is already merged; standard inference only needs
|
| 155 |
+
`checkpoints.generator_ckpt`.
|
| 156 |
+
- Do not set `checkpoints.lora_ckpt` or `adapter` when using the merged
|
| 157 |
+
checkpoint.
|
| 158 |
- `inference.sampling_steps` controls the number of denoising steps.
|
| 159 |
- `inference.multi_shot_sink` enables the multi-shot attention sink.
|
| 160 |
- `inference.multi_shot_rope_offset` controls the multi-shot RoPE offset.
|