Skip to content

The exporter logic doesn't seem to work with the latest SAM3 #33

Description

@copumpkin

I see you have a submodule for SAM3 that's pinned to a version from about 6 months ago. I tried running the same logic against their current repo and this happened:

  File "sam3/model/vitdet.py", line 597, in forward
      q, k = self._apply_rope(q, k)
  File "sam3/model/vitdet.py", line 565, in _apply_rope
      assert self.freqs_cis is not None
  AttributeError: 'Attention' object has no attribute 'freqs_cis'. Did you mean: 'freqs_cos'?

Versions: samexporter @ 8d78443, its submodule pinned at sam3 2d08d73 (2026-02-20), tried against sam3 96914d2 (2026-07-30), torch 2.10.0.

My Claude concocted a small patch that makes it work again which I can submit as a PR if helpful, but I figured I'd report the issue here first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions