Giter Club home page Giter Club logo

Comments (2)

sunzeyeah avatar sunzeyeah commented on June 2, 2024

你好

  1. 训练代码 里使用了transformersTrainerTrainingArguments类,是支持将train和eval的过程进行记录的,具体为TrainingArgumentsreport_to这个入参,目前默认设置就是tensorboard。输出地址为output_dir/runs,tensorboard的记录分为train和eval两个阶段。
  • train对应metric有3类,如下:

Screenshot 2023-04-07 223140

  • eval对应的metric有8类,包括:Roug-1、Rouge-2、Rouge-L、Rouge-Lsum,如下:

Screenshot 2023-04-07 223211

你提到的Rouge类指标是eval阶段计算的,目前默认策略是每个epoch结束后进行eval,对应TrainingArgumentsevaluation_strategy="epoch"。如果想提高eval的频次,可修改TrainingArgumentsevaluation_strategy="steps",表示每训练固定步数进行一次eval,同时也需要设置对应的步长,即TrainingArgumentseval_steps。这2个参数为训练代码的入参,可以直接修改,如下:

python src/train_sft.py \
  --evaluation_strategy="steps" \
  --eval_steps 10 \
  ...
  1. 这里5.4M指的是数据量,不是文件的大小,实际训练数据文件大小就是5G

from rlhf.

macheng6 avatar macheng6 commented on June 2, 2024

from rlhf.

Related Issues (20)

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.