GithubHelp home page GithubHelp logo

Process wikidump with WikiExtractor about hlp HOT 6 CLOSED

1024er avatar 1024er commented on September 24, 2024
Process wikidump with WikiExtractor

from hlp.

Comments (6)

1024er avatar 1024er commented on September 24, 2024

I used
python -m wikiextractor.WikiExtractor --no-templates --json --processes 200 enwiki-latest-pages-articles.xml

and got 16 million passages, about 72% amount of your provided "22 million passages".

So will you please share your wikiextractor command ? thank you @jzhoubu

from hlp.

jzhoubu avatar jzhoubu commented on September 24, 2024

Hi @1024er . Unfortunately, I didn't store any of the wikiextractor commands. As far as I can recall, I didn't use any option related to templates.

from hlp.

1024er avatar 1024er commented on September 24, 2024

Thank you for your reply. @jzhoubu

I also tried :
python -m wikiextractor.WikiExtractor --json --processes 200 ../enwiki-latest-pages-articles.xml

still got 16 million passages.


will you please provide the full name of "snapshot 03-01-2021 of an English Wikipedia dump", I am not sure whether it is March 01, or January 03.

Thank you

from hlp.

jzhoubu avatar jzhoubu commented on September 24, 2024

will you please provide the full name of "snapshot 03-01-2021 of an English Wikipedia dump", I am not sure whether it is March 01, or January 03.

Thank you

It's March 01.
Meanwhile, I think either Jan 2021 or March 2021 can exact more than 21m passages. DPR uses an older Wikipedia dump and has 21m passages. This highly depends on the preprocessing pipelines.

from hlp.

jzhoubu avatar jzhoubu commented on September 24, 2024

@1024er Not sure if that email can reach you. For your fine-tuning question, I will also reply here.

Please use this command to fine-tune instead:

python -m torch.distributed.launch --nproc_per_node=8 train_dense_encoder.py
hydra.run.dir=./experiments/finetune_nq/train
model_file=../../pretrain_hlp/train/dpr_biencoder.best
train_datasets=[nq_train] dev_datasets=[nq_dev]
train=finetune_8xV100

For fine-tuning, use train=finetune_8xV100 for all the commands (training/embedding/evaluation phrase).

While your results are worse than the zero-shot setting, I guess main be also other problems there. Could you also provide me below information so that I can better help:

  1. What kind and how many GPU cards do you use for your experiments? (Should use 8 x 32GB cards to reproduce)
  2. Have you changed any configuration, such as batch size, in the pretrain_8xV100.yaml file?
  3. Can you successfully reproduce the zero-shot retrieval performance?
  4. Is the ckpt file ../../pretrain_hlp/train/dpr_biencoder.best the same one to our provided ckpt hlp20210726.best?

Thanks.

from hlp.

1024er avatar 1024er commented on September 24, 2024

Finally, with the help of @jzhoubu , I reproduce the results on NQ dataset. Thank you so much !

NQ
Zero-shot
Fine-tune
top5 / top20 / top100
HLP (origin) 51.2 / 70.2 / 82.0
70.9 / 81.4 / 88.0
HLP (latest) 50.9 / 69.3 / 82.1
70.6 / 81.3 / 88.0
reproduce (on 8xA100) 51.6 / 69.1 / 82.2
70.2 / 81.6 / 87.8
reproduce (80% data on 8xV100) 50.6 / 69.4 / 82.2
69.1 / 81.1 / 87.4

from hlp.

Related Issues (1)

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.