wangyueqian
commited on
Commit
•
b6413e7
1
Parent(s):
dd5a4ec
Upload 9 files
Browse files- .gitattributes +1 -0
- README.md +36 -3
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- added_tokens.json +6 -0
- merges.txt +0 -0
- special_tokens_map.json +20 -0
- tokenizer.json +3 -0
- tokenizer_config.json +52 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,36 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
library_name: peft
|
4 |
+
base_model: lmms-lab/llava-onevision-qwen2-7b-ov
|
5 |
+
datasets:
|
6 |
+
- wangyueqian/MMDuetIT
|
7 |
+
language:
|
8 |
+
- en
|
9 |
+
tags:
|
10 |
+
- llava-onevision
|
11 |
+
- llava
|
12 |
+
- multimodal
|
13 |
+
- online video understanding
|
14 |
+
- video understanding
|
15 |
+
pipeline_tag: video-text-to-text
|
16 |
+
---
|
17 |
+
|
18 |
+
# MMDuet
|
19 |
+
|
20 |
+
This is the model checkpoint of **MMDuet**, a VideoLLM you can interact with in a real-time manner while the video plays.
|
21 |
+
|
22 |
+
## Model Details
|
23 |
+
|
24 |
+
|
25 |
+
## Related Resources
|
26 |
+
- **Github:** [MMDuet](https://github.com/yellow-binary-tree/MMDuet)
|
27 |
+
- **Paper:** TODO
|
28 |
+
- **Demo:** [Video Demo](https://www.youtube.com/watch?v=n1OybwhQvtk)
|
29 |
+
- **Data:** [MMDuetIT](https://huggingface.co/datasets/wangyueqian/MMDuetIT)
|
30 |
+
|
31 |
+
|
32 |
+
## Citation
|
33 |
+
If you use this work in your research, please consider cite:
|
34 |
+
```bibtex
|
35 |
+
|
36 |
+
```
|
adapter_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "lmms-lab/llava-onevision-qwen2-7b-ov",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 32,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": [
|
18 |
+
"connector",
|
19 |
+
"mm_projector",
|
20 |
+
"response_head",
|
21 |
+
"related_head"
|
22 |
+
],
|
23 |
+
"peft_type": "LORA",
|
24 |
+
"r": 16,
|
25 |
+
"rank_pattern": {},
|
26 |
+
"revision": null,
|
27 |
+
"target_modules": "model\\.layers.*(q_proj|k_proj|v_proj|o_proj|gate_proj|up_proj|down_proj)$",
|
28 |
+
"task_type": "CAUSAL_LM",
|
29 |
+
"use_dora": false,
|
30 |
+
"use_rslora": false
|
31 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b75040853d5e19b352df09d52bafc70e4efe74065dab7d4766b417cbbfdfa73c
|
3 |
+
size 114783784
|
added_tokens.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<image>": 151646,
|
3 |
+
"<|endoftext|>": 151643,
|
4 |
+
"<|im_end|>": 151645,
|
5 |
+
"<|im_start|>": 151644
|
6 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<image>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
}
|
10 |
+
],
|
11 |
+
"bos_token": "<|im_start|>",
|
12 |
+
"eos_token": "<|im_end|>",
|
13 |
+
"pad_token": {
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
}
|
20 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32e8f623d8dce60b5a93496ec810434ef744287ac041cf2c6032743a3578baa5
|
3 |
+
size 11418450
|
tokenizer_config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"151646": {
|
29 |
+
"content": "<image>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"additional_special_tokens": [
|
38 |
+
"<image>"
|
39 |
+
],
|
40 |
+
"bos_token": "<|im_start|>",
|
41 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{{ bos_token + 'system\n' + messages[0]['content'] + eos_token}}{% set messages = messages[1:] %}{% endif %}{% for i in range(messages | length) %}{% set message = messages[i] %}{% if message['role'] == 'user' %}{% if add_stream_query_prompt %}{{ eos_token + '\n' + bos_token + 'user\n' + message['content'] + eos_token }}{% else %}{{ '\n' + bos_token + 'user\n' + message['content'] + eos_token }}{% endif %}{% elif message['role'] == 'assistant' %}{{ '\n' + bos_token + 'assistant\n' + message['content'] + eos_token }}{% elif message['role'] == 'stream' and message['num_frames'] > 0 %}{{ '\n' + bos_token + 'stream\n' + ''.join([49 * '<image>'] * message['num_frames']) + eos_token }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '\n' + bos_token + 'assistant\n' }}{% elif add_stream_prompt %}{{ '\n' + bos_token + 'stream\n' }}{% elif add_stream_generation_prompt %}{{ eos_token + '\n' + bos_token + 'assistant\n' }}{% endif %}",
|
42 |
+
"clean_up_tokenization_spaces": false,
|
43 |
+
"eos_token": "<|im_end|>",
|
44 |
+
"errors": "replace",
|
45 |
+
"model_max_length": 32768,
|
46 |
+
"pad_token": "<|endoftext|>",
|
47 |
+
"padding_side": "left",
|
48 |
+
"processor_class": "LlavaProcessor",
|
49 |
+
"split_special_tokens": false,
|
50 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
51 |
+
"unk_token": null
|
52 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|