Giter Club home page Giter Club logo

Comments (2)

liucongg avatar liucongg commented on August 23, 2024

1、GPT2模型本身就只有transforme的解码器部分。
2、在模型训练时只计算了标题的loss,你可以理解为在进行fine-tuning,训练一个文档生成标题的下游任务,而不是原始的语言模型任务。
3、unilm和gpt2进行生成的本质区别是,unilm在内容编码部分是双向的,标题生成部分相当于预测被掩掉的[mask],gpt2在内容编码部分是单向的,标题生成部分就是逐字预测。我并不认同你说的gpt2“不太适合实现标题生成”。
从效果上来看,我这边做过unilm和gpt2的对比,差不多。

from gpt2-newstitle.

anwjedb avatar anwjedb commented on August 23, 2024

1、GPT2模型本身就只有transforme的解码器部分。
2、在模型训练时只计算了标题的loss,你可以理解为在进行fine-tuning,训练一个文档生成标题的下游任务,而不是原始的语言模型任务。
3、unilm和gpt2进行生成的本质区别是,unilm在内容编码部分是双向的,标题生成部分相当于预测被掩掉的[mask],gpt2在内容编码部分是单向的,标题生成部分就是逐字预测。我并不认同你说的gpt2“不太适合实现标题生成”。
从效果上来看,我这边做过unilm和gpt2的对比,差不多。

感谢,我的问题应该是没理清预训练和微调阶段 ,GPT预训练阶段是用语言模型的模式,但不代表微调阶段就不能用seq2seq的方式

from gpt2-newstitle.

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.