Giter VIP home page Giter VIP logo

Comments (2)

yangapku avatar yangapku commented on May 21, 2024

您好,确实目前avoid injection attacks主要体现在我们对chatml格式中特殊分隔token(im_start、im_end)的处理机制上,这部分逻辑是预训练涉及不到的,应该也不会对目前的预训练生成造成干扰。对于您提出的具体问题,我们已经去除相关描述哈。

from qwen.

Sanster avatar Sanster commented on May 21, 2024

嗯,预训练生成没影响。可能有一点点🤏不方便的地方在于,如果想使用 chatml 格式对 Qwen/Qwen-7B 进行 SFT 训练,在有 avoid injection attacks 的情况下,为了让 <im_start> 是一个 token,训练代码中就要加上就要手动拼 token_ids 的代码,而不能直接把拼接好的完整 prompt 送给 tokenizer。不过问题不大,了解了机制训练代码对应改一下就好了

from qwen.

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.