Code Monkey home page Code Monkey logo

Comments (6)

calubkk avatar calubkk commented on July 23, 2024

Thanks for your interest and appreciation!

The code and collected data have now been uploaded. Feel free to use them, and let us know if you have any questions or feedback.

from raat.

dhx20150812 avatar dhx20150812 commented on July 23, 2024

感谢开源代码!

我在运行的时候产生了OutOfMemeryError的报错,但是我是按照readme中的bash跑的,此时per_device_train_batch_size也设为了1,所以有点奇怪。

我发现目前开源的代码中没有使用半精度微调,是否是这个原因?

from raat.

calubkk avatar calubkk commented on July 23, 2024

It might not be for this reason.

Although the batch_size in the script is set to 1, due to the special training method of RAAT, the actual batch_size during training is 4 because one query corresponds to 4 augmented samples. This might lead to OOM issues (you can check tuner/trainer/raat_processor.py). In the experimental setup described in our paper, we used 4 A100 GPUs with 80G memory each and deepspeed zero2. Here, we suggest that you modify the source code to reduce the types of retrieval noise. For example, one query corresponds to only 2 augmented samples: one Golden retrieval and one Golden retrieval + Random retrieval noise.

from raat.

dhx20150812 avatar dhx20150812 commented on July 23, 2024

Thanks for your prompt reply.

I also used 4 A100 GPUs, each with 80G memory.

I know that 4 augmented samples will cause the batch size to increase by 4 times, which may be the cause of OOM. However, I did not find where you used deepspeed zero2. Am I missing something?

from raat.

calubkk avatar calubkk commented on July 23, 2024

The source code does not provide a deepspeed YAML script. You can use 'accelerate config' command or write a YAML to implement Zero2.

from raat.

dhx20150812 avatar dhx20150812 commented on July 23, 2024

thanks. I will give it a try.

from raat.

Related Issues (2)

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.