BUAADreamer
commited on
Commit
•
a71d550
1
Parent(s):
88729ab
Update README.md
Browse files
README.md
CHANGED
@@ -26,7 +26,9 @@ import requests
|
|
26 |
from PIL import Image
|
27 |
|
28 |
import torch
|
29 |
-
from transformers import AutoProcessor, AutoModelForVision2Seq
|
|
|
|
|
30 |
|
31 |
class LlavaMultiModalProjectorYiVL(nn.Module):
|
32 |
def __init__(self, config: "LlavaConfig"):
|
@@ -45,6 +47,7 @@ class LlavaMultiModalProjectorYiVL(nn.Module):
|
|
45 |
hidden_states = self.linear_4(hidden_states)
|
46 |
return hidden_states
|
47 |
|
|
|
48 |
transformers.models.llava.modeling_llava.LlavaMultiModalProjector = LlavaMultiModalProjectorYiVL
|
49 |
|
50 |
model_id = "BUAADreamer/Yi-VL-34B-hf"
|
|
|
26 |
from PIL import Image
|
27 |
|
28 |
import torch
|
29 |
+
from transformers import AutoProcessor, AutoModelForVision2Seq, LlavaConfig
|
30 |
+
import transformers
|
31 |
+
from torch import nn
|
32 |
|
33 |
class LlavaMultiModalProjectorYiVL(nn.Module):
|
34 |
def __init__(self, config: "LlavaConfig"):
|
|
|
47 |
hidden_states = self.linear_4(hidden_states)
|
48 |
return hidden_states
|
49 |
|
50 |
+
|
51 |
transformers.models.llava.modeling_llava.LlavaMultiModalProjector = LlavaMultiModalProjectorYiVL
|
52 |
|
53 |
model_id = "BUAADreamer/Yi-VL-34B-hf"
|