Skip to content
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

Xpu tokens #559

Closed
wants to merge 2 commits into from
Closed

Xpu tokens #559

wants to merge 2 commits into from

Conversation

Lusfie
Copy link
Collaborator

@Lusfie Lusfie commented Nov 7, 2024

在core里添加token monitor

  • libai/libai/engine/default.py 中修改 default trainer 的 build_writers 函数,增加 log_period 参数
  • libai/libai/utils/events.py 中修改 common metric printer 的 write 函数,增加对 tokens_throughtput 的输出
  • libai/projects/Llama/llama.py 中修改 SFTLoss 函数,添加 done_tokens 参数传递
  • libai/projects/Qwen/qwen2.py 中修改 SFTLoss 函数,添加 done_tokens 参数传递
  • libai/projects/Aquila/aquila.py 中修改 SFTLoss 函数,添加 done_tokens 参数传递
  • libai/projects/Baichuan/baichuan.py 中修改 SFTLoss 函数,添加 done_tokens 参数传递
  • libai/projects/ChatGLM/chatglm.py 中尚未定义 SFTLoss 函数,添加定义以及 done_tokens 参数传递

@fpzh2011 fpzh2011 marked this pull request as draft November 7, 2024 13:52
@fpzh2011 fpzh2011 closed this Nov 7, 2024
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