File size: 13,322 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 | .\.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:06, 2.00it/s]
Loading checkpoint shards: 14%|ββ | 2/14 [00:01<00:06, 1.98it/s]
Loading checkpoint shards: 21%|βββ | 3/14 [00:01<00:05, 2.01it/s]
Loading checkpoint shards: 29%|βββ | 4/14 [00:02<00:05, 1.89it/s]
Loading checkpoint shards: 36%|ββββ | 5/14 [00:02<00:04, 1.86it/s]
Loading checkpoint shards: 43%|βββββ | 6/14 [00:03<00:04, 1.74it/s]
Loading checkpoint shards: 50%|βββββ | 7/14 [00:03<00:04, 1.66it/s]
Loading checkpoint shards: 57%|ββββββ | 8/14 [00:04<00:03, 1.64it/s]
Loading checkpoint shards: 64%|βββββββ | 9/14 [00:05<00:03, 1.61it/s]
Loading checkpoint shards: 71%|ββββββββ | 10/14 [00:05<00:02, 1.63it/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.59it/s]
Loading checkpoint shards: 93%|ββββββββββ| 13/14 [00:07<00:00, 1.61it/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.70it/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
.\.runtime\lib\site-packages\transformers\generation\utils.py:1445: UserWarning: You are calling .generate() with the `input_ids` being on a device type different than your model's device. `input_ids` is on cuda, whereas the model is on meta. You may experience unexpected behaviors or slower generation. Please make sure that you have put `input_ids` to the correct device by calling for example input_ids = input_ids.to('meta') before running `.generate()`.
warnings.warn(
all_gen_img_idx: []
all_gen_vid_idx: []
all_gen_aud_idx: []
{
"text": "The animal in this image is a dog.\n#########\n######\n#######\n#####\n#####\n####\n#####\n###\n####\n###\n###\n",
"images": [],
"video": null,
"audio": null,
"files": [
"C:\\Users\\14335\\Desktop\\nlp\\chapter6\\nextgpt-reproduction\\outputs\\0c1c2a726c8a47e2bdd3213305c2b5dd\\response.txt",
"C:\\Users\\14335\\Desktop\\nlp\\chapter6\\nextgpt-reproduction\\outputs\\0c1c2a726c8a47e2bdd3213305c2b5dd\\run.json"
]
}
|