Run this model with HF Jobs
Run OpenGVLab/VideoChat-TPO on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/OpenGVLab/VideoChat-TPO. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OpenGVLab/VideoChat-TPO on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use OpenGVLab/VideoChat-TPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/VideoChat-TPO with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenGVLab/VideoChat-TPO", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add link to GitHub repository and fix usage example
#2
by nielsr HF Staff - opened
9 unmodified lines10111213141511 unmodified lines27282930319 unmodified linesThis model is based on the paper [Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment](https://huggingface.co/papers/2412.19326).## 🏃 Installation```11 unmodified linestokenizer = AutoTokenizer.from_pretrained(model_path,trust_remote_code=True,use_fast=False,)model = AutoModel.from_pretrained(model_path, trust_remote_code=True, _tokenizer=self.tokenizer).eval()```9 unmodified lines101112131415161711 unmodified lines29303132339 unmodified linesThis model is based on the paper [Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment](https://huggingface.co/papers/2412.19326).Code: [https://github.com/OpenGVLab/VideoChat-TPO](https://github.com/OpenGVLab/VideoChat-TPO)## 🏃 Installation```11 unmodified linestokenizer = AutoTokenizer.from_pretrained(model_path,trust_remote_code=True,use_fast=False,)model = AutoModel.from_pretrained(model_path, trust_remote_code=True, _tokenizer=tokenizer).eval()```
README.md+3-1