nielsr HF Staff commited on
Commit
6592e45
·
verified ·
1 Parent(s): 7d22760

Add link to GitHub repository and fix usage example

Browse files

This PR adds the official GitHub repository link for the `VideoChat2-TPO` model to the model card. The paper states that the code will be released, and providing this link makes it easier for users to find and utilize the underlying code. Additionally, a minor correction is applied to the sample usage code to fix a variable name typo, improving its direct usability.

Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -10,6 +10,8 @@ pipeline_tag: video-text-to-text
10
 
11
  This model is based on the paper [Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment](https://huggingface.co/papers/2412.19326).
12
 
 
 
13
  ## 🏃 Installation
14
 
15
  ```
@@ -27,5 +29,5 @@ model_path = "OpenGVLab/VideoChat-TPO"
27
  tokenizer = AutoTokenizer.from_pretrained(model_path,
28
  trust_remote_code=True,
29
  use_fast=False,)
30
- model = AutoModel.from_pretrained(model_path, trust_remote_code=True, _tokenizer=self.tokenizer).eval()
31
  ```
 
10
 
11
  This model is based on the paper [Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment](https://huggingface.co/papers/2412.19326).
12
 
13
+ Code: [https://github.com/OpenGVLab/VideoChat-TPO](https://github.com/OpenGVLab/VideoChat-TPO)
14
+
15
  ## 🏃 Installation
16
 
17
  ```
 
29
  tokenizer = AutoTokenizer.from_pretrained(model_path,
30
  trust_remote_code=True,
31
  use_fast=False,)
32
+ model = AutoModel.from_pretrained(model_path, trust_remote_code=True, _tokenizer=tokenizer).eval()
33
  ```