Skip to content

Commit b465c93

Browse files
committed
fix
1 parent 9fc0053 commit b465c93

File tree

7 files changed

+1612
-92
lines changed

7 files changed

+1612
-92
lines changed

mindone/transformers/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,10 @@
10871087
)
10881088
from .models.phi4_multimodal import (
10891089
Phi4MultimodalFeatureExtractor,
1090+
Phi4MultimodalForCausalLM,
10901091
Phi4MultimodalImageProcessorFast,
1092+
Phi4MultimodalModel,
1093+
Phi4MultimodalPreTrainedModel,
10911094
Phi4MultimodalProcessor,
10921095
)
10931096
from .models.phimoe import PhimoeForCausalLM, PhimoeForSequenceClassification, PhimoeModel, PhimoePreTrainedModel

mindone/transformers/models/auto/configuration_auto.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
("perceiver", "PerceiverConfig"),
202202
("phi", "PhiConfig"),
203203
("phi3", "Phi3Config"),
204+
("phi4_multimodal", "Phi4MultimodalConfig"),
204205
("phimoe", "PhimoeConfig"),
205206
("pix2struct", "Pix2StructConfig"),
206207
("pixtral", "PixtralVisionConfig"),
@@ -473,6 +474,7 @@
473474
("persimmon", "Persimmon"),
474475
("phi", "Phi"),
475476
("phi3", "Phi3"),
477+
("phi4_multimodal", "Phi4Multimodal"),
476478
("phimoe", "Phimoe"),
477479
("pegasus", "Pegasus"),
478480
("pegasus_x", "PEGASUS-X"),

mindone/transformers/models/auto/modeling_auto.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
("persimmon", "PersimmonModel"),
186186
("phi", "PhiModel"),
187187
("phi3", "Phi3Model"),
188+
("phi4_multimodal", "Phi4MultimodalModel"),
188189
("pixtral", "PixtralVisionModel"),
189190
("plbart", "PLBartModel"),
190191
("poolformer", "PoolFormerModel"),
@@ -480,6 +481,7 @@
480481
("persimmon", "PersimmonForCausalLM"),
481482
("phi", "PhiForCausalLM"),
482483
("phi3", "Phi3ForCausalLM"),
484+
("phi4_multimodal", "Phi4MultimodalForCausalLM"),
483485
("pegasus", "PegasusForCausalLM"),
484486
("plbart", "PLBartForCausalLM"),
485487
("prophetnet", "ProphetNetForCausalLM"),

mindone/transformers/models/phi4_multimodal/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
from .modeling_phi4_multimodal import *
1819
from .processing_phi4_multimodal import Phi4MMAudioFeatureExtractor as Phi4MultimodalFeatureExtractor
1920
from .processing_phi4_multimodal import Phi4MMImageProcessor as Phi4MultimodalImageProcessorFast
2021
from .processing_phi4_multimodal import Phi4MMProcessor as Phi4MultimodalProcessor

0 commit comments

Comments
 (0)