findcard12138 commited on
Commit
ccd2f56
·
verified ·
1 Parent(s): 4865346

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +14 -5
README.md CHANGED
@@ -3,6 +3,9 @@ language:
3
  - en
4
  library_name: transformers
5
  pipeline_tag: image-text-to-text
 
 
 
6
  tags:
7
  - multimodal
8
  - video
@@ -45,7 +48,8 @@ For architecture diagrams and full system details, see the top-level repository:
45
 
46
  ### Offline video inference (recommended)
47
 
48
- #### Video inference (Python)
 
49
 
50
  ```python
51
  import torch
@@ -94,10 +98,13 @@ inputs = processor(
94
  with torch.no_grad():
95
  output_ids = model.generate(**inputs, max_new_tokens=512, do_sample=False)
96
 
97
- print(processor.decode(output_ids[0], skip_special_tokens=False))
98
  ```
99
 
100
- #### Image inference (Python)
 
 
 
101
 
102
  ```python
103
  import torch
@@ -140,9 +147,11 @@ inputs = processor(
140
  with torch.no_grad():
141
  output_ids = model.generate(**inputs, max_new_tokens=256, do_sample=False)
142
 
143
- print(processor.decode(output_ids[0], skip_special_tokens=False))
144
  ```
145
 
 
 
146
  ## ✅ Intended use
147
 
148
  - **Offline instruction-following** for video/image understanding (recommended default checkpoint for most users).
@@ -180,7 +189,7 @@ For full environment setup (including optional FlashAttention2 extras), see the
180
  year = {2026},
181
  publisher = {GitHub},
182
  journal = {GitHub repository},
183
- howpublished = {\url{https://github.com/OpenMOSS/MOSS-Video-Preview}}
184
  }
185
  ```
186
 
 
3
  - en
4
  library_name: transformers
5
  pipeline_tag: image-text-to-text
6
+ license: apache-2.0
7
+ base_model: fnlp-vision/moss-video-preview-base
8
+ model_type: video_mllama
9
  tags:
10
  - multimodal
11
  - video
 
48
 
49
  ### Offline video inference (recommended)
50
 
51
+ <details>
52
+ <summary><strong>Video inference (Python)</strong></summary>
53
 
54
  ```python
55
  import torch
 
98
  with torch.no_grad():
99
  output_ids = model.generate(**inputs, max_new_tokens=512, do_sample=False)
100
 
101
+ print(processor.decode(output_ids[0], skip_special_tokens=True))
102
  ```
103
 
104
+ </details>
105
+
106
+ <details>
107
+ <summary><strong>Image inference (Python)</strong></summary>
108
 
109
  ```python
110
  import torch
 
147
  with torch.no_grad():
148
  output_ids = model.generate(**inputs, max_new_tokens=256, do_sample=False)
149
 
150
+ print(processor.decode(output_ids[0], skip_special_tokens=True))
151
  ```
152
 
153
+ </details>
154
+
155
  ## ✅ Intended use
156
 
157
  - **Offline instruction-following** for video/image understanding (recommended default checkpoint for most users).
 
189
  year = {2026},
190
  publisher = {GitHub},
191
  journal = {GitHub repository},
192
+ howpublished = {\url{https://github.com/fnlp-vision/MOSS-Video-Preview}}
193
  }
194
  ```
195