Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Add ColQwen3.5 and BiQwen3.5 support (model + processor). Pretrained checkpoint: [athrael-soju/colqwen3.5-4.5B-v3](https://huggingface.co/athrael-soju/colqwen3.5-4.5B-v3).

### Changed

- Bump minimum supported `transformers` version to `5.3.0`.

### Fixed

- Fix ModernVBERT wrappers to rely on the upstream Hugging Face implementation and keep checkpoint key conversion mapping working with current Transformers v5 loading.

## [0.3.14] - 2026-02-24

### Added
Expand Down
4 changes: 2 additions & 2 deletions colpali_engine/models/modernvbert/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .bivbert import BiModernVBert, BiModernVBertProcessor
from .colvbert import ColModernVBert, ColModernVBertProcessor
from .bimodernvbert import BiModernVBert, BiModernVBertProcessor
from .colmodernvbert import ColModernVBert, ColModernVBertProcessor
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from typing import Literal

import torch

from colpali_engine.models.modernvbert.modeling_modernvbert import ModernVBertModel, ModernVBertPreTrainedModel
from transformers import ModernVBertModel, ModernVBertPreTrainedModel


class BiModernVBert(ModernVBertPreTrainedModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torch
from transformers import BatchEncoding, BatchFeature

from colpali_engine.models.modernvbert.colvbert import ColModernVBertProcessor # noqa: N801
from colpali_engine.models.modernvbert.colmodernvbert import ColModernVBertProcessor # noqa: N801


class BiModernVBertProcessor(ColModernVBertProcessor): # noqa: N801
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from torch import nn
from transformers import ModernVBertModel, ModernVBertPreTrainedModel
from transformers.conversion_mapping import get_checkpoint_conversion_mapping, register_checkpoint_conversion_mapping
from transformers.core_model_loading import WeightRenaming

from colpali_engine.models.modernvbert.modeling_modernvbert import ModernVBertModel, ModernVBertPreTrainedModel


class ColModernVBert(ModernVBertPreTrainedModel):
_checkpoint_conversion_mapping = {
r"^base_model\.model\.model\.text_model": "model.text_model",
r"^base_model\.model\.custom_text_proj": "custom_text_proj",
}
"""
Expand Down
279 changes: 0 additions & 279 deletions colpali_engine/models/modernvbert/configuration_modernvbert.py

This file was deleted.

Loading
Loading