Support for BharatGen's Param2MoE model architecture#43888
Support for BharatGen's Param2MoE model architecture#43888bhargav-patel-29 wants to merge 10 commits into
Conversation
|
Hi @bhargav-patel-29, thank you for the PR! Before we review, can you convert the PR to |
…oe.py & added tests file
…as suggested in CI/CD pipeline checks
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, param2moe |
|
View the CircleCI Test Summary for this PR: https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=43888&sha=d46c70 |
|
Closing this PR as the branch has become a bit messy with incorrect files and conflicts. I am going to open a fresh PR with a clean commit history and the correct file updates. |
What does this PR do?
This PR adds support for Param-2-17B-MoE-A2.4B, a large-scale Mixture-of-Experts (MoE) causal language model.
Param-2-17B-MoE-A2.4B uses a Hybrid Dense + MoE architecture with 17B total parameters while activating only 2.4B parameters per token, enabling high model capacity with efficient inference cost.
The model is pretrained from scratch with strong multilingual capabilities and particular emphasis on linguistic diversity and Indian language representation. It is released as a pretrained base model intended for downstream fine-tuning.
This PR introduces the following components:
configuration_param2moe.pyParam2MoEConfigmodeling_param2moe.pyParam2MoEModelParam2MoEForCausalLM__init__.pyAutoConfigAutoModelAutoModelForCausalLMThis integration enables seamless loading, inference, and downstream fine-tuning using standard Transformers APIs.
Fixes # (issue)
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Text models:
@ArthurZucker
@Cyrilvallez