text to video ms 1.7b
简介
核心亮点
- 轻量化架构,对消费级显卡非常友好
- 快速将文本描述转化为短视频素材
- 适合作为 AI 视频工作流的快速原型开发
- 采用 OpenRAIL-M 许可,支持灵活部署
使用方法
# 安装 Hugging Face transformers
pip install transformers torch
# 使用 transformers 加载模型
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("nachikethmurthy666/text-to-video-ms-1.7b")
tokenizer = AutoTokenizer.from_pretrained("nachikethmurthy666/text-to-video-ms-1.7b")
Hugging Face 下载
我们推荐使用命令行或者 Hugging Face Hub SDK 来进行模型的下载。
操作指引:在下载前,请先通过如下命令安装 huggingface_hub:
pip install -U huggingface_hub
命令行下载
下载完整模型库
huggingface-cli download nachikethmurthy666/text-to-video-ms-1.7b
下载单个文件到指定本地文件夹(以下载 config.json 到当前路径下 ./dir 目录为例)
huggingface-cli download nachikethmurthy666/text-to-video-ms-1.7b config.json --local-dir ./dir
SDK 下载
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('nachikethmurthy666/text-to-video-ms-1.7b')
Git 下载
请确保 lfs 已经被正确安装
git lfs install
git clone https://huggingface.co/nachikethmurthy666/text-to-video-ms-1.7b
如果您希望跳过 lfs 大文件下载,可以使用如下命令
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/nachikethmurthy666/text-to-video-ms-1.7b
模型文件托管在 Hugging Face Hub,使用 HF CLI / SDK / Git 直接下载,不经过本站。
PyTorch / Transformers 使用
安装 Transformers
pip install -U transformers torch
模型加载和推理
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('nachikethmurthy666/text-to-video-ms-1.7b')
tokenizer = AutoTokenizer.from_pretrained('nachikethmurthy666/text-to-video-ms-1.7b')
完整文档
---
license: creativeml-openrail-m
tags:
- text-to-video
- generative-ai
- diffusion
- damo
- video-generation
- stable-video-diffusion
- manifold-ai
library_name: diffusers
inference: false
model-index:
- name: DAMO Text-to-Video MS-1.7B (Rehosted by Nachiketh)
results: []
---
🚀 DAMO Text-to-Video MS-1.7B (Rehosted by Nachiketh)
This model is a rehosted and learner-accessible version of the original damo-vilab/text-to-video-ms-1.7b from Alibaba DAMO.
It enables text-to-video generation using diffusion models and is ideal for researchers, learners, and creators building cutting-edge Generative AI experiences.
---
📌 Model Summary
- Name: DAMO Text-to-Video MS-1.7B
- Architecture: Multi-stage latent diffusion
- Inputs: Text prompt
- Outputs: 16-frame videos (resolution varies)
- Framework: Hugging Face 🤗 Diffusers
- Precision: FP16 recommended
- License: CreativeML OpenRAIL-M
---
🧪 Example Usage (Python)
Install the Libraries
$ pip install diffusers transformers accelerate torch```python
from diffusers import DiffusionPipeline
import torch
from diffusers.utils import export_to_video
pipe = DiffusionPipeline.from_pretrained(
"nachikethmurthy666/text-to-video-ms-1.7b",
torch_dtype=torch.float16,
variant="fp16"
).to("cuda")
pipe.enable_model_cpu_offload()
prompt = "An astronaut riding a horse on Mars at sunset"
video = pipe(prompt, num_inference_steps=25).frames[0]
video_path = export_to_video(video)