meituan-longcat/LongCat-Video-Avatar-1.5

Modelo de modelo — 1.7 mil downloads e 662 curtidas no Hugging Face.

Hugging Face · Modelos ·meituan-longcat · ·↓ 1746 ·♥ 662

O modelo meituan-longcat/LongCat-Video-Avatar-1.5 aparece entre os mais comentados do Hugging Face — um termômetro do que a comunidade está realmente usando agora na tarefa de modelo.

Ficha técnica

  • Tarefa: modelo
  • Biblioteca: longcat-video-avatar-1.5
  • Formatos: safetensors
  • Licença: MIT
  • Downloads: 1.7 mil · Curtidas: 662

Como rodar localmente

Carregue com a transformers usando o template de chat:

pip install -U transformers accelerate torch

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "meituan-longcat/LongCat-Video-Avatar-1.5"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, torch_dtype="auto", device_map="auto"
)

msgs = [{"role": "user", "content": "Explique o que é entropia."}]
inputs = tok.apply_chat_template(
    msgs, add_generation_prompt=True, return_tensors="pt"
).to(model.device)

out = model.generate(inputs, max_new_tokens=256)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))

Para servir como API (recomendado para modelos grandes), use o vLLM:

pip install vllm
vllm serve meituan-longcat/LongCat-Video-Avatar-1.5

Tags

longcat-video-avatar-1.5 onnx diffusers safetensors audio-text-to-video audio-image-text-to-video audio-driven-video-continuation transformers

Abrir o modelo no Hugging Face →

compartilhar: