Skip to content

Add OpenPangu-V2 Model#47093

Open
YuChangHui wants to merge 13 commits into
huggingface:mainfrom
YuChangHui:add-openpangu-v2
Open

Add OpenPangu-V2 Model#47093
YuChangHui wants to merge 13 commits into
huggingface:mainfrom
YuChangHui:add-openpangu-v2

Conversation

@YuChangHui

@YuChangHui YuChangHui commented Jul 6, 2026

Copy link
Copy Markdown

CI

What does this PR do?

Fixes # (issue)
This PR primarily aims to add support for the OpenPangu-V2 series of models in inference.

The submitted code includes the inference implementations for OpenPangu-V2 model, along with the corresponding configurations and tokenizers.

For unit testing, we added a single-sample test for the openpangu-v2 model using openpangu/openPangu-2.0-Flash.

This is my first PR submission. After carefully studying the Contribute to Transformers guide, I've modified my code to pass all make fixup checks.

I'd greatly appreciate any feedback if additional changes or improvements are needed - please don't hesitate to point them out!

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?

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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

run-slow: auto, openpangu_v2

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 28775134416:2
Result: failure | Jobs: 15 | Tests: 171,829 | Failures: 12 | Duration: 22h 55m

@Rocketknight1

Copy link
Copy Markdown
Member

cc @ArthurZucker for text models

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