Giter VIP home page Giter VIP logo

moe_train's Introduction

MoE_Train

定制化构建qwen_moe架构,并实现训练和微调

普通模型转换为MoE架构

  1. 从原始模型copy权重给moe架构的模型
$cd mergekit-moe
sh run.sh

或者

python mergit.py (需要将run.sh中的参数添加进去)
  1. 运行完成后,可以对moe模型进行测试
python mergekit-moe/test_after_merge.py

预训练

$cd pretrain
sh run.sh

微调

$cd finetune
sh run.sh

注意:如果需要关闭wandb,请在终端运行命令(开启也是一样的命令)

wandb offline

moe_train's People

Contributors

darrenzeng avatar

Stargazers

 avatar Zhenbin Chen avatar  avatar

Watchers

 avatar

Forkers

gush596

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.