Upload 18 files
Browse files- mmalaya_arch.py +1 -1
mmalaya_arch.py
CHANGED
@@ -3,7 +3,7 @@ import re
|
|
3 |
import torch
|
4 |
import torch.nn as nn
|
5 |
from transformers import Blip2Model, Blip2Processor, Blip2Config
|
6 |
-
from mm_utils import IGNORE_INDEX, IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_PATCH_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN
|
7 |
|
8 |
|
9 |
class BLIP2VisionTower(nn.Module):
|
|
|
3 |
import torch
|
4 |
import torch.nn as nn
|
5 |
from transformers import Blip2Model, Blip2Processor, Blip2Config
|
6 |
+
from .mm_utils import IGNORE_INDEX, IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_PATCH_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN
|
7 |
|
8 |
|
9 |
class BLIP2VisionTower(nn.Module):
|