Skip to content

Grantite docling and granite 4 vision - #18

Open
DrJesseGlass wants to merge 13 commits into
downstreamfrom
grantite-docling-2
Open

Grantite docling and granite 4 vision#18
DrJesseGlass wants to merge 13 commits into
downstreamfrom
grantite-docling-2

Conversation

@DrJesseGlass

Copy link
Copy Markdown
Owner

No description provided.

@DrJesseGlass DrJesseGlass changed the title Grantite docling 2 Grantite docling and granite 4 vision Apr 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f288af0583

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

let vision_tower = siglip::VisionModel::new(
&cfg.vision_config,
false,
vb.pp("vision_tower.vision_model"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Load vision tower from model.-prefixed weights

The constructor loads SigLIP tensors from vb.pp("vision_tower.vision_model"), but the Granite 4 Vision checkpoint stores these parameters under model.vision_tower.vision_model (consistent with how this same constructor loads model.layerwise_projectors, model.spatial_projectors, and model.language_model). With official model.safetensors shards, this prefix mismatch causes missing-tensor errors during model initialization, so the example cannot load the model.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant