File size: 13,879 Bytes
2c2701e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

--- New attempt 2026-11-26T14:24:54.084703+00:00 ---
.\.runtime\lib\site-packages\torchvision\transforms\_functional_video.py:6: UserWarning: The 'torchvision.transforms._functional_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms.functional' module instead.
  warnings.warn(
.\.runtime\lib\site-packages\torchvision\transforms\_transforms_video.py:22: UserWarning: The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms' module instead.
  warnings.warn(
.\vendor\nextgpt\code\model\custom_sd.py:28: FutureWarning: Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.
  from diffusers.pipeline_utils import DiffusionPipeline
args max_length 512
Initializing visual encoder from .\weights\pretrained\imagebind_ckpt\huge ...
Visual encoder initialized.
Initializing language decoder from .\weights\pretrained\vicuna_ckpt\7b_v0 ...

Loading checkpoint shards:   0%|          | 0/14 [00:00<?, ?it/s]
Loading checkpoint shards:   7%|β–‹         | 1/14 [00:00<00:07,  1.81it/s]
Loading checkpoint shards:  14%|β–ˆβ–        | 2/14 [00:01<00:06,  1.85it/s]
Loading checkpoint shards:  21%|β–ˆβ–ˆβ–       | 3/14 [00:01<00:05,  1.84it/s]
Loading checkpoint shards:  29%|β–ˆβ–ˆβ–Š       | 4/14 [00:02<00:05,  1.77it/s]
Loading checkpoint shards:  36%|β–ˆβ–ˆβ–ˆβ–Œ      | 5/14 [00:02<00:05,  1.72it/s]
Loading checkpoint shards:  43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž     | 6/14 [00:03<00:04,  1.65it/s]
Loading checkpoint shards:  50%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ     | 7/14 [00:04<00:04,  1.63it/s]
Loading checkpoint shards:  57%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹    | 8/14 [00:04<00:03,  1.62it/s]
Loading checkpoint shards:  64%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–   | 9/14 [00:05<00:03,  1.61it/s]
Loading checkpoint shards:  71%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–  | 10/14 [00:06<00:02,  1.61it/s]
Loading checkpoint shards:  79%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š  | 11/14 [00:06<00:01,  1.59it/s]
Loading checkpoint shards:  86%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 12/14 [00:07<00:01,  1.57it/s]
Loading checkpoint shards:  93%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž| 13/14 [00:07<00:00,  1.63it/s]
Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 14/14 [00:08<00:00,  1.68it/s]
Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 14/14 [00:08<00:00,  1.66it/s]
Instruct tuning the LLaMa ...
trainable params: 33554432 || all params: 6771978240 || trainable%: 0.49548936530546206
Language decoder initialized.
Initializing tokenizer from .\weights\pretrained\vicuna_ckpt\7b_v0 ...
Adding [IMG0] token to vocabulary.
Before adding new token, tokenizer("[IMG0]") = {'input_ids': [518, 7833, 29954, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG0]") = {'input_ids': [32002], 'attention_mask': [1]}
Adding [IMG1] token to vocabulary.
Before adding new token, tokenizer("[IMG1]") = {'input_ids': [518, 7833, 29954, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG1]") = {'input_ids': [32003], 'attention_mask': [1]}
Adding [IMG2] token to vocabulary.
Before adding new token, tokenizer("[IMG2]") = {'input_ids': [518, 7833, 29954, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG2]") = {'input_ids': [32004], 'attention_mask': [1]}
Adding [IMG3] token to vocabulary.
Before adding new token, tokenizer("[IMG3]") = {'input_ids': [518, 7833, 29954, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG3]") = {'input_ids': [32005], 'attention_mask': [1]}
Adding [VID0] token to vocabulary.
Before adding new token, tokenizer("[VID0]") = {'input_ids': [518, 13044, 29900, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID0]") = {'input_ids': [32006], 'attention_mask': [1]}
Adding [VID1] token to vocabulary.
Before adding new token, tokenizer("[VID1]") = {'input_ids': [518, 13044, 29896, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID1]") = {'input_ids': [32007], 'attention_mask': [1]}
Adding [VID2] token to vocabulary.
Before adding new token, tokenizer("[VID2]") = {'input_ids': [518, 13044, 29906, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID2]") = {'input_ids': [32008], 'attention_mask': [1]}
Adding [VID3] token to vocabulary.
Before adding new token, tokenizer("[VID3]") = {'input_ids': [518, 13044, 29941, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID3]") = {'input_ids': [32009], 'attention_mask': [1]}
Adding [VID4] token to vocabulary.
Before adding new token, tokenizer("[VID4]") = {'input_ids': [518, 13044, 29946, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID4]") = {'input_ids': [32010], 'attention_mask': [1]}
Adding [VID5] token to vocabulary.
Before adding new token, tokenizer("[VID5]") = {'input_ids': [518, 13044, 29945, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID5]") = {'input_ids': [32011], 'attention_mask': [1]}
Adding [VID6] token to vocabulary.
Before adding new token, tokenizer("[VID6]") = {'input_ids': [518, 13044, 29953, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID6]") = {'input_ids': [32012], 'attention_mask': [1]}
Adding [VID7] token to vocabulary.
Before adding new token, tokenizer("[VID7]") = {'input_ids': [518, 13044, 29955, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID7]") = {'input_ids': [32013], 'attention_mask': [1]}
Adding [VID8] token to vocabulary.
Before adding new token, tokenizer("[VID8]") = {'input_ids': [518, 13044, 29947, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID8]") = {'input_ids': [32014], 'attention_mask': [1]}
Adding [VID9] token to vocabulary.
Before adding new token, tokenizer("[VID9]") = {'input_ids': [518, 13044, 29929, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID9]") = {'input_ids': [32015], 'attention_mask': [1]}
Adding [VID10] token to vocabulary.
Before adding new token, tokenizer("[VID10]") = {'input_ids': [518, 13044, 29896, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID10]") = {'input_ids': [32016], 'attention_mask': [1]}
Adding [VID11] token to vocabulary.
Before adding new token, tokenizer("[VID11]") = {'input_ids': [518, 13044, 29896, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID11]") = {'input_ids': [32017], 'attention_mask': [1]}
Adding [VID12] token to vocabulary.
Before adding new token, tokenizer("[VID12]") = {'input_ids': [518, 13044, 29896, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID12]") = {'input_ids': [32018], 'attention_mask': [1]}
Adding [VID13] token to vocabulary.
Before adding new token, tokenizer("[VID13]") = {'input_ids': [518, 13044, 29896, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID13]") = {'input_ids': [32019], 'attention_mask': [1]}
Adding [VID14] token to vocabulary.
Before adding new token, tokenizer("[VID14]") = {'input_ids': [518, 13044, 29896, 29946, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID14]") = {'input_ids': [32020], 'attention_mask': [1]}
Adding [VID15] token to vocabulary.
Before adding new token, tokenizer("[VID15]") = {'input_ids': [518, 13044, 29896, 29945, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID15]") = {'input_ids': [32021], 'attention_mask': [1]}
Adding [VID16] token to vocabulary.
Before adding new token, tokenizer("[VID16]") = {'input_ids': [518, 13044, 29896, 29953, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID16]") = {'input_ids': [32022], 'attention_mask': [1]}
Adding [VID17] token to vocabulary.
Before adding new token, tokenizer("[VID17]") = {'input_ids': [518, 13044, 29896, 29955, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID17]") = {'input_ids': [32023], 'attention_mask': [1]}
Adding [VID18] token to vocabulary.
Before adding new token, tokenizer("[VID18]") = {'input_ids': [518, 13044, 29896, 29947, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID18]") = {'input_ids': [32024], 'attention_mask': [1]}
Adding [VID19] token to vocabulary.
Before adding new token, tokenizer("[VID19]") = {'input_ids': [518, 13044, 29896, 29929, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID19]") = {'input_ids': [32025], 'attention_mask': [1]}
Adding [VID20] token to vocabulary.
Before adding new token, tokenizer("[VID20]") = {'input_ids': [518, 13044, 29906, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID20]") = {'input_ids': [32026], 'attention_mask': [1]}
Adding [VID21] token to vocabulary.
Before adding new token, tokenizer("[VID21]") = {'input_ids': [518, 13044, 29906, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID21]") = {'input_ids': [32027], 'attention_mask': [1]}
Adding [VID22] token to vocabulary.
Before adding new token, tokenizer("[VID22]") = {'input_ids': [518, 13044, 29906, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID22]") = {'input_ids': [32028], 'attention_mask': [1]}
Adding [VID23] token to vocabulary.
Before adding new token, tokenizer("[VID23]") = {'input_ids': [518, 13044, 29906, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID23]") = {'input_ids': [32029], 'attention_mask': [1]}
Adding [AUD0] token to vocabulary.
Before adding new token, tokenizer("[AUD0]") = {'input_ids': [518, 29909, 15789, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD0]") = {'input_ids': [32030], 'attention_mask': [1]}
Adding [AUD1] token to vocabulary.
Before adding new token, tokenizer("[AUD1]") = {'input_ids': [518, 29909, 15789, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD1]") = {'input_ids': [32031], 'attention_mask': [1]}
Adding [AUD2] token to vocabulary.
Before adding new token, tokenizer("[AUD2]") = {'input_ids': [518, 29909, 15789, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD2]") = {'input_ids': [32032], 'attention_mask': [1]}
Adding [AUD3] token to vocabulary.
Before adding new token, tokenizer("[AUD3]") = {'input_ids': [518, 29909, 15789, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD3]") = {'input_ids': [32033], 'attention_mask': [1]}
Adding [AUD4] token to vocabulary.
Before adding new token, tokenizer("[AUD4]") = {'input_ids': [518, 29909, 15789, 29946, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD4]") = {'input_ids': [32034], 'attention_mask': [1]}
Adding [AUD5] token to vocabulary.
Before adding new token, tokenizer("[AUD5]") = {'input_ids': [518, 29909, 15789, 29945, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD5]") = {'input_ids': [32035], 'attention_mask': [1]}
Adding [AUD6] token to vocabulary.
Before adding new token, tokenizer("[AUD6]") = {'input_ids': [518, 29909, 15789, 29953, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD6]") = {'input_ids': [32036], 'attention_mask': [1]}
Adding [AUD7] token to vocabulary.
Before adding new token, tokenizer("[AUD7]") = {'input_ids': [518, 29909, 15789, 29955, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD7]") = {'input_ids': [32037], 'attention_mask': [1]}
Tokenizer initialized.
text prompt:  ### Human: <Image>.\examples\inputs\dog_image.jpg</Image> Describe the animal in this image in one short sentence.
### Assistant:
image path:  .\examples\inputs\dog_image.jpg
Traceback (most recent call last):
  File ".\scripts\run_local_gpu.py", line 22, in <module>
    result = ENGINE.run(args.prompt, args.image or None, args.video, args.audio,
  File ".\engine.py", line 141, in run
    raw = self.model.generate(inputs)
  File ".\vendor\nextgpt\code\model\anyToImageVideoAudio.py", line 966, in generate
    generated_ids, generated_image_embeddings, generated_video_embeddings, generated_audio_embeddings = self.generate_tokens_embeddings(
  File ".\vendor\nextgpt\code\model\anyToImageVideoAudio.py", line 722, in generate_tokens_embeddings
    outputs = self.llama_model.generate(
  File ".\.runtime\lib\site-packages\peft\peft_model.py", line 731, in generate
    outputs = self.base_model.generate(**kwargs)
  File ".\.runtime\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File ".\.runtime\lib\site-packages\transformers\generation\utils.py", line 1557, in generate
    input_ids, model_kwargs = self._expand_inputs_for_generation(
  File ".\.runtime\lib\site-packages\transformers\generation\utils.py", line 719, in _expand_inputs_for_generation
    input_ids = input_ids.repeat_interleave(expand_size, dim=0)
  File ".\.runtime\lib\site-packages\torch\_meta_registrations.py", line 522, in meta_repeat_interleave_Tensor
    raise RuntimeError("cannot repeat_interleave a meta tensor without output_size")
RuntimeError: cannot repeat_interleave a meta tensor without output_size