Coder Social home page Coder Social logo

Comments (5)

guipenedo avatar guipenedo commented on September 25, 2024 1

Hi, I pinged the nanotron team internally and they are working on moving support of datatrove's .ds files to the public repo :)

from datatrove.

guipenedo avatar guipenedo commented on September 25, 2024 1

Nanotron also has support for a custom dataloader now, where you can plug in datatrove's Dataset directly: huggingface/nanotron#162
Closing the issue

from datatrove.

manuelbrack avatar manuelbrack commented on September 25, 2024

Following up on this:

Are there some helpers to convert ds files into parquet files (or something loadable with datasets) for a given context size

I was wondering the same thing. I really like datatrove, but as of now I cannot use the tokenization pipeline, since there is no way to load the data :D

from datatrove.

guipenedo avatar guipenedo commented on September 25, 2024

Hi! Two things:

  • you can always convert the text data to any format by using a writer. For instance, you can convert it to parquet using a ParquetWriter. This will convert the data with the text and not with the actual tokens, however
  • I have just added a torch Dataset that can load tokens from a dataset tokenized by datatrove into .ds files here. Let me know if you would require some changes to this class for it to work with your setup

from datatrove.

Jeronymous avatar Jeronymous commented on September 25, 2024

Awesome, thanks a lot @guipenedo

from datatrove.

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.