-
Notifications
You must be signed in to change notification settings - Fork 30.7k
Add LongCat-Flash #40730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LongCat-Flash #40730
Conversation
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. |
[run-slow] longcat_flash |
1 similar comment
[run-slow] longcat_flash |
[run slow] longcat_flash |
run-slow: longcat_flash |
This comment contains run-slow, running the specified jobs: models: ['models/longcat_flash'] |
This comment contains run-slow, running the specified jobs: models: ['models/longcat_flash'] |
1 similar comment
This comment contains run-slow, running the specified jobs: models: ['models/longcat_flash'] |
This comment contains run-slow, running the specified jobs: models: ['models/longcat_flash'] |
run-slow: longcat_flash |
This comment contains run-slow, running the specified jobs: models: ['models/longcat_flash'] |
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, longcat_flash |
run-slow: longcat_flash |
This comment contains run-slow, running the specified jobs: models: ['models/longcat_flash'] |
* working draft for LongCat * BC changes to deepseek_v3 for modular * format * various modularities * better tp plan * better init * minor changes * make modular better * clean up patterns * Revert a couple of modular commits, because we won't convert in the end * make things explicit. * draft test * toctree, tests and imports * drop * woops * make better things * update test * update * fixes * style and CI * convert stuff * up * ah, yes, that * enable gen tests * fix cache shape in test (sum of 2 things) * fix tests * comments * re-Identitise * minimize changes * better defaults * modular betterment * fix configuration, add documentation * fix init * add integration tests * add info * simplify * update slow tests * fix * style * some additional long tests * cpu-only long test * fix last tests? * urg * cleaner tests why not * fix * improve slow tests, no skip * style * don't upcast * one skip * finally fix parallelism
* working draft for LongCat * BC changes to deepseek_v3 for modular * format * various modularities * better tp plan * better init * minor changes * make modular better * clean up patterns * Revert a couple of modular commits, because we won't convert in the end * make things explicit. * draft test * toctree, tests and imports * drop * woops * make better things * update test * update * fixes * style and CI * convert stuff * up * ah, yes, that * enable gen tests * fix cache shape in test (sum of 2 things) * fix tests * comments * re-Identitise * minimize changes * better defaults * modular betterment * fix configuration, add documentation * fix init * add integration tests * add info * simplify * update slow tests * fix * style * some additional long tests * cpu-only long test * fix last tests? * urg * cleaner tests why not * fix * improve slow tests, no skip * style * don't upcast * one skip * finally fix parallelism
* working draft for LongCat * BC changes to deepseek_v3 for modular * format * various modularities * better tp plan * better init * minor changes * make modular better * clean up patterns * Revert a couple of modular commits, because we won't convert in the end * make things explicit. * draft test * toctree, tests and imports * drop * woops * make better things * update test * update * fixes * style and CI * convert stuff * up * ah, yes, that * enable gen tests * fix cache shape in test (sum of 2 things) * fix tests * comments * re-Identitise * minimize changes * better defaults * modular betterment * fix configuration, add documentation * fix init * add integration tests * add info * simplify * update slow tests * fix * style * some additional long tests * cpu-only long test * fix last tests? * urg * cleaner tests why not * fix * improve slow tests, no skip * style * don't upcast * one skip * finally fix parallelism
What does this PR do?
As per title, adds support for LongCat-Flash, a 560B MoE from Meituan.
Status:
modeling_longcat_flash
file allows loading checkpoint withouttrust_remote_code
, using a specificbase_model_tp_plan
found in the config. `from_pretrained('..., tp_plan='auto') loads the model properly.Launch snippet:
Note that you will need at least 2x8 H100 to launch the model with TP as follows
And you'll get
[Round 0] USER:Hello! What is the capital of France? What can you tell me about it? ASSISTANT:Hello! 😊 The capital of France is Paris, one of the most famous and beloved cities in the world. Here’s a quick overview of what makes Paris special:
1. Iconic Landmarks
2. Culture & Arts
3. Food & Cuisine
4. History & Politics
**