Skip to content

[BUG]: Colossalai-OpenMoE-8b : loss value is very large and cannot converge #5212

Closed as not planned

Description

@hangchen426926

🐛 Describe the bug

I am currently running the Colossalai/examples/language/openmoe project with the following experimental setup:

datasets: load_dataset("yizhongw/self_instruct/data/finetuning/self_instruct_221203", "super_natural_instructions"),
model: openmoe-8b
A100_num_GPU:8
Epoch:3
BatchSize:4
LR:0.00001
zero_stage:1
precision:bf16
Boost plugin:ep_zero
extra_dp_size:2
max_length:2048

### Issue : loss value is very large and cannot converge
I've encountered challenges during the training process where the convergence seems unachievable. The training loss value persists at an exceptionally high level (exceeding 2.3E+10) even after running 3 epochs. The logged information provided below showcases loss values:
loss

Furthermore, in the default setup of the openmoe project, the lr is 0.00001. Considering this, I suspect the issue might stem from an overfitting problem. Consequently, I attempted to adjustment the lr parameter(from 0.00001 to 0.0000001) ,but still encountered the same problem.
tempsnip
tempsnip2

Environment

torch 1.13.1
python 3.8.17
cuda:11.7.17

Activity

  1. Orion-Zheng commented on Dec 30, 2023

    @Orion-Zheng
    Contributor

    Thank you for your valuable feedback! 😃We are working on this bug and will get back to you later.

  2. noob-ctrl commented on Jan 5, 2024

    @noob-ctrl

    I also encountered this problem

  3. noob-ctrl commented on Jan 8, 2024

    @noob-ctrl

    @Orion-Zheng Has this bug been solved?

  4. obananas commented on Feb 28, 2025

    @obananas

    @Orion-Zheng Has this bug been solved?

  5. JazyJiang commented on Oct 22, 2026

    @JazyJiang
    Collaborator

    Hi, thanks for reporting this, and sorry it went unanswered for so long. We're going through older issues and closing the ones that no longer apply to the current codebase. It was reported against PyTorch 1.13.1, which current ColossalAI no longer supports (PyTorch 2.x is required). We're marking it as stale and will close it in 14 days. If you still see this problem with the latest ColossalAI on PyTorch 2.x, please comment here (or open a new issue) with your environment and a minimal reproduction, and we'll take a look.

  6. JazyJiang commented on Nov 5, 2026

    @JazyJiang
    Collaborator

    Closing this issue since there has been no response in the 14 days after it was marked as stale. If you still run into this problem with the latest ColossalAI on PyTorch 2.x, please open a new issue using the bug report template, with your environment and a minimal reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions