Skip to content

Exportable kimi#47096

Open
IlyasMoutawwakil wants to merge 1 commit into
mainfrom
exportable-kimi
Open

Exportable kimi#47096
IlyasMoutawwakil wants to merge 1 commit into
mainfrom
exportable-kimi

Conversation

@IlyasMoutawwakil

@IlyasMoutawwakil IlyasMoutawwakil commented Jul 6, 2026

Copy link
Copy Markdown
Member

CI

What does this PR do?

Fixes # (issue)

Code Agent Policy

The Transformers repo is currently being overwhelmed by a large number of PRs and issue comments written by
code agents. We are currently bottlenecked by our ability to review and respond to them. As a result,
we ask that new users do not submit pure code agent PRs at this time.
You may use code agents in drafting or to help you diagnose issues. We'd also ask autonomous "OpenClaw"-like agents
not to open any PRs or issues for the moment.

PRs that appear to be fully agent-written will probably be closed without review, and we may block users who do this
repeatedly or maliciously.

This is a rapidly-evolving situation that's causing significant shockwaves in the open-source community. As a result,
this policy is likely to be updated regularly in the near future. For more information, please read CONTRIBUTING.md.

  • I confirm that this is not a pure code agent PR.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline and the
    Pull Request checks?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes according to the guidelines?
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

Comment thread src/transformers/exporters/exporter_dynamo.py Outdated
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Exporter support for Kimi-K2.5 (vision/audio attention registered with the
reshaped vision-attention patch) plus:
- Kimi vision rotary now emits the standard packed (seq, head_dim) cos/sin
  instead of the batched (1, seq, head_dim) LLM form, matching every other
  vision encoder (no exporter-side normalization needed).
- ExecuTorch: materialise non-contiguous reshapes via a backend-local
  _patch_reshape rather than an unconditional clone in the shared vision
  patch, so ONNX/OpenVINO/dynamo graphs don't carry the copy.
- is_multimodal short-circuits to False for non-PreTrainedModel inputs.
- vision_utils.get_vision_cu_seqlens gains a merge_temporal option.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@IlyasMoutawwakil IlyasMoutawwakil marked this pull request as ready for review July 6, 2026 19:48
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: kimi_k25

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 28818715080:1
Result: failure | Jobs: 15 | Tests: 171,107 | Failures: 6 | Duration: 24h 24m

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.

2 participants