Code Monkey home page Code Monkey logo

Comments (5)

SparkJiao avatar SparkJiao commented on September 4, 2024

下面链接是我们使用的Dataset,在config里有写明

https://github.com/dandelionsllm/pandallm/blob/main/data/collators/zh_instruct.py#L110C1-L136

可以按照这个Dataset处理你的数据,总体来说可以用jsonline存储,每一行是一个json结构体。如果你是instruction-response pair的数据,可以使用instructionoutput两个filed来做conditional generation。如果你是pure text,希望做普通的causal LM,可以直接存到text这个key里。

from pandallm.

Cascol-Chen avatar Cascol-Chen commented on September 4, 2024

请问多个数据集要以什么树状结构进行存储呢,直接把用于训练的5个数据集压缩包解压到相同目录下就可以了吗

from pandallm.

SparkJiao avatar SparkJiao commented on September 4, 2024

不同的数据集均处理成上述结构之一,放在同一个目录下就行,config里写文件夹的path,glob会处理匹配(可以自己改glob的匹配方式)

from pandallm.

Cascol-Chen avatar Cascol-Chen commented on September 4, 2024

好的谢谢作者,我尝试一下

from pandallm.

Cascol-Chen avatar Cascol-Chen commented on September 4, 2024

在处理如百科数据时存在不知道该将title还是desc转为inputs的问题,请问有相关的转化脚本吗

from pandallm.

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.