Repository navigation
Add Ovis2.5 model support #47659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sushmanthreddy
wants to merge
213
commits into
huggingface:main
Choose a base branch
from
sushmanthreddy:add-ovis2-5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,978
−0
Open
Add Ovis2.5 model support #47659
Changes from 191 commits
Commits
Show all changes
213 commits
Select commit
Hold shift + click to select a range
c8a10f0
Add Ovis2.5 model support
93f0200
Fix Ovis2.5 processor autodoc entry
c417022
Use v5 weight conversion for Ovis2.5 checkpoints
8768c8b
Generate Ovis2.5 image processing from modular source
5aa5a42
Fix Ovis2.5 model and processor contracts
9d8e332
Fix Ovis2.5 documentation examples
0e952e7
Use standard Ovis2.5 image normalization constants
cb4d399
Remove the Ovis2.5 language config alias
bd0ed48
Remove the Ovis2.5 vision config alias
38acf19
Use conversion for original Ovis2.5 configs
ad04b36
Use released Ovis2.5 patch embedding layout
ca5af4e
Remove unused Ovis2.5 linear patch path
f0f7a01
Base Ovis2.5 vision blocks on VideoLlama3
55219dd
Reuse the VideoLlama3 vision block forward
dbb20fb
Reuse VideoLlama3 vision block initialization
58a4e40
Derive Ovis2.5 vision layer types
16b8a20
Dispatch Ovis2.5 vision layers by type
25883c8
Restore Ovis2.5 vision order once per forward
30cb813
Reuse the VideoLlama3 base model output
43b3345
Reuse the VideoLlama3 causal model output
4ed8e04
Base Ovis2.5 models on VideoLlama3
1d422dd
Reuse VideoLlama3 vision rotary embedding
070b16d
Reuse VideoLlama3 weight initialization
b035a24
Use initialized Ovis2.5 sub-configs directly
89b2e8c
Use the initialized Ovis2.5 text config
6db3ff1
Use inherited Ovis2.5 input embeddings getter
eda5a46
Use inherited Ovis2.5 input embeddings setter
94a0cdd
Project soft Ovis2.5 visual tokens explicitly
4ea30f3
Use a standard Ovis2.5 visual embedding table
82f2a27
Remove the custom Ovis2.5 embedding table
79716d0
Separate the Ovis2.5 visual tokenizer
45e9dc2
Build Ovis2.5 visual embeddings in image features
1618c22
Delegate Ovis2.5 video feature extraction
ddad5d8
Remove duplicate Ovis2.5 visual feature helper
527181b
Use standard Ovis2.5 placeholder token ids
ee5f0fb
Remove the duplicate Ovis2.5 visual atom id
c4d36b0
Base Ovis2.5 multimodal merging on Ovis2
431b47a
Base Ovis2.5 conditional generation on Ovis2
d4deeed
Reuse the Ovis2 output embeddings getter
50abc85
Use standard Ovis2.5 output embeddings setter
5c9bd4a
Reuse the Ovis2 image feature wrapper
5f7240e
Reuse the Ovis2 placeholder mask
2818257
Remove the duplicate Ovis2.5 token mask helper
29ad775
Follow the Ovis2 visual merge flow
f98ebf1
Remove duplicate Ovis2.5 visual merge helper
92fcfc6
Use standard Ovis2.5 grid validation
e0541aa
Use generated Ovis2.5 grid documentation
c476ba2
Format Ovis2.5 review fixes
3f79a3a
Document Ovis2.5 grid arguments
d704dbf
Refresh Ovis2.5 documentation metadata
2627fde
Reuse the recorded Ovis2.5 final vision state
0a70ae6
Tighten Ovis2.5 model typing
6887059
Move legacy Ovis2.5 vision config conversion
b359bd6
Use tokenizer Ovis2.5 special token IDs
207171f
Remove duplicate Ovis2.5 token validation
abe1360
Use standard Ovis2.5 input validation
6c304ed
Normalize Ovis2.5 visual inputs before validation
cf2ce69
Handle empty Ovis2.5 visual batches
61a6242
Validate normalized Ovis2.5 visual inputs
59cad44
Reuse image backend equivalence tests
88c024d
Reuse Ovis2.5 processor test inputs
3af404d
Clean up Ovis2.5 test modules
5cdd101
Document Ovis2.5 processor regressions
1f0f160
Move Ovis2.5 model testers outside torch guard
4dc5a7b
Explain Ovis2.5 common test overrides
3fb86a5
Refresh Ovis2.5 model documentation date
c25e32c
Expose Ovis2.5 tester model classes
d37b914
Merge branch 'main' into add-ovis2-5
zucchini-nlp 9239137
Merge branch 'huggingface:main' into add-ovis2-5
sushmanthreddy a33c006
Fix video processor auto mapping order
14cd6f3
Regenerate Ovis2.5 after main sync
bbadf16
Document Ovis2.5 position embedding paths
50d7116
Keep Ovis2.5 position grids on device
3976512
Enable Ovis2.5 vision checkpointing
2e8f28f
Use standard Ovis2.5 vision output flags
a1cbb37
Delegate Ovis2.5 output capture
a13acab
Keep Ovis2.5 boundary counts traceable
9bf9e2b
Create Ovis2.5 generation markers on device
0677f50
Name Ovis2.5 visual projector layers
0c33064
Refresh Ovis2.5 generated metadata
8df2c27
Reuse standard Ovis2.5 layer validation
ba7abb7
Keep released Ovis2.5 position embeddings
30cb8a3
Keep released Ovis2.5 vision RoPE
5b0e5ac
Use generic Ovis2.5 text config
c84ace1
Keep Ovis2.5 visual vocabulary in vision config
dc9a2de
Reuse GLM4V Ovis2.5 image processing
63101cb
Use shared Ovis2.5 position interpolation
9742ddc
Use fixed Ovis2.5 indicator padding
a9c0664
Use standard Ovis2.5 vision embedding access
b6ee2a7
Reuse GLM4V Ovis2.5 video processing
d68dfde
Use tokenizer Ovis2.5 visual tokens
06fca64
Expand Ovis2.5 image tokens with standard names
b0f8054
Expand Ovis2.5 video tokens with standard names
e1f16fb
Use standard Ovis2.5 multimodal token checks
b0dc863
Remove Ovis2.5 visual token aliases
8e0bd13
Reuse Qwen2-VL conditional generation
0bcecf1
Normalize Ovis2.5 chat placeholders
2205d7a
Clarify Ovis2.5 vision output ordering
ffce069
Let Ovis2.5 validation consume audio kwargs
ff51263
Use standard Ovis2.5 text postprocessing
323fccf
Format Ovis2.5 processor
9f8f9ef
Use shared Ovis2.5 argument documentation
559f360
Cover Ovis2.5 fallback processor reload
ff3dfdd
Simplify Ovis2.5 visual feature merging
ba20182
Merge remote-tracking branch 'upstream/main' into add-ovis2-5
e73f052
Merge remote-tracking branch 'upstream/main' into add-ovis2-5
ea6043f
Use standard Ovis2.5 video size arguments
1e8ce32
Use standard Ovis2.5 hidden state capture
629165e
Restore Ovis2.5 patch order once
91dce73
Remove unused Ovis2.5 state recorder module
6b43134
Drop the Ovis2.5 patch order recorder
c5b3d76
Enable Ovis2.5 torch export
37cf216
Load legacy Ovis2.5 Hub configs
91057e5
Register released Ovis2.5 visual tokens
23d22ef
Cover released Ovis2.5 processor metadata
8b317a0
Load released Ovis2.5 checkpoints directly
a1614a8
Clean up Ovis2.5 loading example
c846b90
Simplify Ovis2.5 video input normalization
667eb5e
Reuse Qwen2VL generation expansion
e8a13d0
Load native Ovis2.5 processors from legacy metadata
6fedae3
Simplify Ovis2.5 processor loading example
eca7608
Simplify Ovis2.5 visual embedding initialization
363a498
Move Ovis2.5 legacy attention config handling
be9e1ab
Simplify Ovis2.5 legacy vision config loading
41612bc
Generate Ovis2.5 video processing from modular source
e57d3c3
Reuse Exaone4.5 generation helpers
48a7833
Use standard Ovis2.5 generation positions
4e8c776
Update Ovis2.5 contribution date
8e7ef36
Reuse packed vision embeddings for Ovis2.5
b9cb2ce
Reuse packed interpolation in Ovis2.5 vision embeddings
a18b8c6
Remove unused Ovis2.5 interpolation method
75afc71
Reuse Muse Glimmer vision structure for Ovis2.5
ff65a0a
Remove unused Ovis2.5 pixel shuffle
8968f75
Reuse windowed vision flow for Ovis2.5
52f9c87
Remove duplicate Ovis2.5 vision encoder flow
6817a23
Test Ovis2.5 window order and vision keys
b9a4cb2
Remove unused Ovis2.5 position buffer
6e0186b
Use shared Ovis2.5 video normalization defaults
a1ed9e8
Remove unused Ovis2.5 video defaults
a03d283
Reuse Cosmos3 Edge vision config for Ovis2.5
514dc12
Use standard merge size in Ovis2.5 embeddings
3a72197
Use standard merge size in Ovis2.5 projector
94286f1
Use standard merge size in Ovis2.5 vision
54ddcaa
Use standard merge size for Ovis2.5 positions
12bb07a
Use standard merge size for Ovis2.5 features
0d15922
Standardize Ovis2.5 spatial merge config
e71173a
Reuse Muse Glimmer rotary embeddings for Ovis2.5
4dd0424
Map Exaone generation model to Ovis2.5
a8232b5
Reuse Ovis2.5 conditional initialization
e71a29d
Reuse Exaone4.5 conditional forward
ada5629
Keep copied Ovis2.5 constructor private
3a4bbec
Remove unused Ovis2.5 causal output
5d1cb7e
Update Ovis2.5 rotary hook test
175a08a
Apply Ovis2.5 repository fixes
b0dd4f2
Reuse Cosmos3 Edge vision config defaults
b6759f9
Drop Ovis2.5 hidden stride remapping
0418b5d
Use Ovis2.5 model in copied constructor
e225ed8
Initialize Ovis2.5 indicator padding
4bf53d1
Update Ovis2.5 contribution date
0ff22ed
Refine Ovis2.5 processors and docs
310c51f
Remove Ovis2.5 video frame sampling
89b9e46
Remove unnecessary Ovis2.5 copy markers
59e2ecb
Document Ovis2.5 smart resize overrides
2cdf0ca
Preserve legacy Ovis2.5 config kwargs
1082780
Simplify Ovis2.5 vision embeddings
a4bff02
Refactor Ovis2.5 multimodal feature insertion
581d0f6
Fix Ovis2.5 tokenizer integration
2b619db
Fix Ovis2.5 vision weight mapping
e71ca18
Remove standalone Ovis2.5 conversion test
410c327
Document Ovis2.5 video processor differences
81e8565
Generalize Ovis2.5 vision config annotation
fe583f6
Mark Ovis2.5 legacy config mapping as BC
f15b6ef
Document native Ovis2.5 community checkpoints
sushmanthreddy 6d03baf
Simplify Ovis2.5 vision interpolation
sushmanthreddy db8ff59
Reuse vision window helpers in Ovis2.5
sushmanthreddy 7fb9bd8
Share visual feature insertion in Ovis2.5 forward
sushmanthreddy 85f56ff
Move Ovis2.5 visual embedding merge into helper
sushmanthreddy 2f5afca
Remove redundant Ovis2.5 modular post-init call
sushmanthreddy 63952c3
Clarify Ovis2.5 generation reuse and processor tokens
sushmanthreddy 70e068d
Simplify Ovis2.5 tests around shared VLM suites
sushmanthreddy 50eeaec
Keep Ovis2.5 vision logic local
sushmanthreddy 05879ae
Merge upstream main and resolve Ovis2.5 registration conflict
sushmanthreddy 3bfd1d1
Fix Ovis2.5 checkpoint weight mappings
sushmanthreddy 86755e2
Merge upstream main and resolve Ovis2.5 registrations
sushmanthreddy ce48626
Fix Ovis2.5 tests and modular consistency
sushmanthreddy d7cd4fa
Merge upstream main and resolve Ovis2.5 conflict
sushmanthreddy 133cb51
added some changes
sushmanthreddy 137dac5
Simplify Ovis2.5 tests and reuse shared processor fixtures
sushmanthreddy 7c4d2df
Simplify Ovis2.5 model, image and video tests
sushmanthreddy f39f7ef
Merge branch 'main' into add-ovis2-5
sushmanthreddy 7f12fad
Restore upstream gitattributes
sushmanthreddy 09d77d3
Simplify Ovis2.5 processor usage wording
sushmanthreddy 6342031
Show Ovis2.5 usage restrictions before examples
sushmanthreddy 86ca641
Move Ovis2.5 thinking budget limitation into usage warning
sushmanthreddy f4cb282
Use native Ovis2.5 tokenizer token attributes
sushmanthreddy 6ae61e7
Remove Ovis2.5 legacy processor loading workaround
sushmanthreddy 559ea00
Reuse shared Ovis2.5 input layout handling
sushmanthreddy cbf9779
Remove redundant Ovis2.5 modular comments
sushmanthreddy b7e2413
Validate Ovis2.5 image resize bounds
sushmanthreddy ca80d1a
Improve Ovis2.5 patch-count helper spacing
sushmanthreddy 98c1b33
Point Ovis2.5 config docs to community checkpoint
sushmanthreddy c7936d4
Sync main and migrate Ovis2.5 to cache API
sushmanthreddy 9328bec
Remove legacy Ovis2.5 config aliases
sushmanthreddy 4340d34
Remove Ovis2.5 weight-tying config fallback
sushmanthreddy 46eb48e
Reuse MiniCPM vision embedding initialization in Ovis2.5
sushmanthreddy b970de5
Simplify Ovis2.5 visual projector layer names
sushmanthreddy 4d7ada0
Move Ovis2.5 indicator ID helper into visual tokenizer
sushmanthreddy a13ac95
Enable Ovis2.5 fullgraph decoding
sushmanthreddy 358ed2e
Precompute Ovis2.5 window attention sequence length
sushmanthreddy 007a44f
Reuse LLaVA model initialization in Ovis2.5
sushmanthreddy cc6e3da
Align Ovis2.5 forward and pooled visual outputs
sushmanthreddy f28d3b3
Remove redundant Ovis2.5 model annotation
sushmanthreddy bf175cb
Reuse shared Ovis2.5 multimodal generation expansion
sushmanthreddy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,187 @@ | ||
| <!--Copyright 2026 The HuggingFace Team. All rights reserved. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
| an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations under the License. | ||
|
|
||
| ⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be | ||
| rendered properly in your Markdown viewer. | ||
|
|
||
| --> | ||
| *This model was published in HF papers on 2025-08-16 and contributed to Hugging Face Transformers on 2026-11-12.* | ||
|
|
||
| # Ovis2.5 | ||
|
|
||
| ## Overview | ||
|
|
||
| [Ovis2.5](https://huggingface.co/papers/2508.11737) is a multimodal model from | ||
| [AIDC-AI](https://github.com/AIDC-AI/Ovis) for image, video, and text understanding. It combines a native-resolution | ||
| vision encoder with a visual tokenizer and a Qwen3 language backbone. Unlike a fixed-resolution tiled encoder, the | ||
| vision encoder keeps variable-resolution visual inputs as a sequence of patches. Ovis2.5 also provides an optional | ||
| thinking prompt format for tasks that benefit from a longer reasoning response. | ||
|
|
||
| Transformers-compatible checkpoints are available from the Ovis community: | ||
|
|
||
| - [ovis-community/Ovis2.5-2B](https://huggingface.co/ovis-community/Ovis2.5-2B) | ||
| - [ovis-community/ovis-2.5-9B](https://huggingface.co/ovis-community/ovis-2.5-9B) | ||
|
|
||
| These checkpoints retain the original weights and include native model, tokenizer, and processor metadata. The | ||
| original repositories still use legacy processor metadata. Weight names are mapped during loading. | ||
|
|
||
| ## Image inference | ||
|
|
||
| Use [`Ovis2_5Processor.apply_chat_template`] to load the image, format the conversation, and tokenize it in one call. | ||
| For the 9B checkpoint, replace the model ID. | ||
|
|
||
| ```python | ||
| from transformers import AutoModelForImageTextToText, AutoProcessor | ||
|
|
||
|
|
||
| model_id = "ovis-community/Ovis2.5-2B" | ||
| processor = AutoProcessor.from_pretrained(model_id) | ||
| model = AutoModelForImageTextToText.from_pretrained( | ||
| model_id, | ||
| device_map="auto", | ||
| ) | ||
|
|
||
| messages = [ | ||
| { | ||
| "role": "user", | ||
| "content": [ | ||
| { | ||
| "type": "image", | ||
| "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg", | ||
| }, | ||
| {"type": "text", "text": "Describe this image."}, | ||
| ], | ||
| } | ||
| ] | ||
|
|
||
| inputs = processor.apply_chat_template( | ||
| messages, | ||
| add_generation_prompt=True, | ||
| tokenize=True, | ||
| return_dict=True, | ||
| return_tensors="pt", | ||
| enable_thinking=False, | ||
| ).to(model.device, dtype=model.dtype) | ||
|
|
||
| generated_ids = model.generate(**inputs, max_new_tokens=128) | ||
| generated_ids = generated_ids[:, inputs["input_ids"].shape[1] :] | ||
| response = processor.batch_decode(generated_ids, skip_special_tokens=True)[0] | ||
| print(response) | ||
| ``` | ||
|
|
||
| Multiple images can be supplied by adding more `{"type": "image", ...}` items to the message in the same order in which | ||
| they should appear in the prompt. | ||
|
|
||
| ## Video inference | ||
|
|
||
| The official example uniformly samples eight frames. Pass the video path directly in the conversation and let the | ||
| processor load and sample it. The processor returns `pixel_values_videos` and `video_grid_thw` along with the tokenized | ||
| prompt. | ||
|
sushmanthreddy marked this conversation as resolved.
Resolved
|
||
| Ovis2.5 accepts exactly one video per request and does not support mixing images and video in the same request. | ||
|
sushmanthreddy marked this conversation as resolved.
Resolved
|
||
|
|
||
| ```python | ||
| messages = [ | ||
| { | ||
| "role": "user", | ||
| "content": [ | ||
| {"type": "video", "path": "path/to/video.mp4"}, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. real vid pls |
||
| {"type": "text", "text": "Describe what happens in this video."}, | ||
| ], | ||
| } | ||
| ] | ||
|
|
||
| inputs = processor.apply_chat_template( | ||
| messages, | ||
| add_generation_prompt=True, | ||
| tokenize=True, | ||
| return_dict=True, | ||
| return_tensors="pt", | ||
| enable_thinking=False, | ||
| processor_kwargs={ | ||
| "num_frames": 8, | ||
| "size": {"shortest_edge": 448 * 448, "longest_edge": 896 * 896}, | ||
| }, | ||
| ).to(model.device, dtype=model.dtype) | ||
|
|
||
| generated_ids = model.generate(**inputs, max_new_tokens=256) | ||
| generated_ids = generated_ids[:, inputs["input_ids"].shape[1] :] | ||
| response = processor.batch_decode(generated_ids, skip_special_tokens=True)[0] | ||
| print(response) | ||
| ``` | ||
|
|
||
| ## Thinking mode | ||
|
|
||
| Set `enable_thinking=True` when applying the chat template to leave the model's reasoning block open. Set it to `False` | ||
| to request the immediate-answer prompt format. | ||
|
|
||
| ```python | ||
| inputs = processor.apply_chat_template( | ||
| messages, | ||
| add_generation_prompt=True, | ||
| tokenize=True, | ||
| return_dict=True, | ||
| return_tensors="pt", | ||
| enable_thinking=True, | ||
| ).to(model.device, dtype=model.dtype) | ||
|
|
||
| generated_ids = model.generate(**inputs, max_new_tokens=1024) | ||
| ``` | ||
|
|
||
| `enable_thinking` changes the chat template; it is not a generation argument and does not impose a token budget. The | ||
| two-stage `thinking_budget` behavior implemented by the original custom remote code is not part of the native | ||
| Transformers generation API. | ||
|
sushmanthreddy marked this conversation as resolved.
Resolved
|
||
|
|
||
| ## Ovis2_5Config | ||
|
|
||
| [[autodoc]] Ovis2_5Config | ||
|
|
||
| ## Ovis2_5VisionConfig | ||
|
|
||
| [[autodoc]] Ovis2_5VisionConfig | ||
|
|
||
| ## Ovis2_5Processor | ||
|
|
||
| [[autodoc]] Ovis2_5Processor | ||
| - __call__ | ||
|
|
||
| ## Ovis2_5ImageProcessor | ||
|
|
||
| [[autodoc]] Ovis2_5ImageProcessor | ||
| - preprocess | ||
|
|
||
| ## Ovis2_5ImageProcessorPil | ||
|
|
||
| [[autodoc]] Ovis2_5ImageProcessorPil | ||
| - preprocess | ||
|
|
||
| ## Ovis2_5VideoProcessor | ||
|
|
||
| [[autodoc]] Ovis2_5VideoProcessor | ||
| - preprocess | ||
|
|
||
| ## Ovis2_5VisionModel | ||
|
|
||
| [[autodoc]] Ovis2_5VisionModel | ||
| - forward | ||
|
|
||
| ## Ovis2_5Model | ||
|
|
||
| [[autodoc]] Ovis2_5Model | ||
| - forward | ||
| - get_image_features | ||
| - get_video_features | ||
|
|
||
| ## Ovis2_5ForConditionalGeneration | ||
|
|
||
| [[autodoc]] Ovis2_5ForConditionalGeneration | ||
| - forward | ||
| - get_image_features | ||
| - get_video_features | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 | ||
| # This file was automatically generated from the modules in `src/transformers/models/ovis2_5`. | ||
| # Do NOT edit this file manually as any edits will be overwritten by auto-generation of the file. | ||
| # A module is picked up once it exports a name through `__all__`. | ||
| # Regenerate the file with: `python utils/check_inits.py --fix_and_overwrite` | ||
| # 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 | ||
| # Copyright 2026 The HuggingFace Inc. team. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| from typing import TYPE_CHECKING | ||
|
|
||
| from ...utils import _LazyModule | ||
| from ...utils.import_utils import define_import_structure | ||
|
|
||
|
|
||
| if TYPE_CHECKING: | ||
| from .configuration_ovis2_5 import * | ||
| from .image_processing_ovis2_5 import * | ||
| from .image_processing_pil_ovis2_5 import * | ||
| from .modeling_ovis2_5 import * | ||
| from .processing_ovis2_5 import * | ||
| from .video_processing_ovis2_5 import * | ||
| else: | ||
| import sys | ||
|
|
||
| _file = globals()["__file__"] | ||
| sys.modules[__name__] = _LazyModule(__name__, _file, define_import_structure(_file), module_spec=__spec__) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.