Giter Site home page Giter Site logo

Preprocess stuck about ctrl-sum HOT 5 OPEN

salesforce avatar salesforce commented on June 28, 2024
Preprocess stuck

from ctrl-sum.

Comments (5)

geeraay avatar geeraay commented on June 28, 2024 1

Hi @nikhilrayaprolu,

I faced the same problem with you, it was because the preprocessing script on whole cnndm training dataset took more than 32GB RAM. I would suggest you to split the train set into several parts, then merge them later after preprocess on those parts finished.

from ctrl-sum.

geeraay avatar geeraay commented on June 28, 2024 1

I don't remember the exact step I've done back then, but the idea is this.

I did something like
split -n l/${nsplit} /path-to-file/train.source /path-to-file/train.source.
it will create train.source.00, train.source.01, ... , train.source.${nsplit}

Then I rename the generated files to
train_1.source, train_2.source, ..., train_${nsplit}.source.

After that you could run
python scripts/preprocess.py cnndm --mode pipeline --split train_1,train_2,...,train_${nsplit}

wait until the preprocessing step is done, then I manually copy and paste the generated files into one big train.source file.

Or you can simply use bigger RAM machine to preprocess without splitting the file.

from ctrl-sum.

nikhilrayaprolu avatar nikhilrayaprolu commented on June 28, 2024

@jxhe @muggin

from ctrl-sum.

nikhilrayaprolu avatar nikhilrayaprolu commented on June 28, 2024

thanks for the reply @geeraay

from ctrl-sum.

nikhilrayaprolu avatar nikhilrayaprolu commented on June 28, 2024

@geeraay can you provide some more explanation on how the splitting and merging is done. Any accompanying code would really be helpful.

from ctrl-sum.

Related Issues (16)

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.