GithubHelp home page GithubHelp logo

slim's People

Contributors

alexlimh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

slim's Issues

How to building the index for the generated embeddings?

Thanks for publishing the code of this important work.

I just follow the README to train the SLIM model on msmarco dataset again.
After generating the embeddings, I want to build an index on them but I don't no the details.
I try to find the instructions in pyserini, but the step about building index is omitted.
I really want to know how to build the index. I would appreciate your help.

I look forward to hearing from you.

An error about trainning the SLIM

Thank you for releasing the code of SLIM!
It is really a cool job.

I really want to train the SLIM model on msmarco dataset again, so I follow the README.
After creating the environment and splitting the training data into train and dev, I run the command provided by the README.
PYTHONPATH=.:$PYTHONPATH python dpr_scale/main.py -m \ --config-name msmarco_aws.yaml \ task=multiterm task/model=mtsplade_model \ task.model.sparse_mode=True \ task.in_batch_eval=True datamodule.num_test_negative=10 trainer.max_epochs=6 \ task.shared_model=True +task.cross_batch=False +task.in_batch=True \ +task.query_topk=20 +task.context_topk=20 \ +task.teacher_coef=0 +task.tau=1 \ +task.query_router_marg_load_loss_coef=0 +task.context_router_marg_load_loss_coef=0 \ +task.query_expert_load_loss_coef=1e-5 +task.context_expert_load_loss_coef=1e-5 \ datamodule.batch_size=8 datamodule.num_negative=7 \ trainer=gpu_1_host trainer.num_nodes=4 trainer.gpus=8

However, I encountered the following error :
Error executing job with overrides: ['task=multiterm', 'task/model=mtsplade_model', 'task.model.sparse_mode=True', 'task.in_batch_eval=True', 'datamodule.num_test_negative=10', 'trainer.max_epochs=6', 'task.shared_model=True', '+task.cross_batch=False', '+task.in_batch=True', '+task.query_topk=20', '+task.context_topk=20', '+task.teacher_coef=0', '+task.tau=1', '+task.query_router_marg_load_loss_coef=0', '+task.context_router_marg_load_loss_coef=0', '+task.query_expert_load_loss_coef=1e-05', '+task.context_expert_load_loss_coef=1e-05', 'datamodule.batch_size=8', 'datamodule.num_negative=7', 'trainer=gpu_1_host', 'trainer.num_nodes=4', 'trainer.gpus=8'] Error locating target 'dpr_scale.task.mtsplade_task.MultiTermRetrieverTask', set env var HYDRA_FULL_ERROR=1 to see chained exception. full_key: task Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Could you please tell me how to solve it ๏ผŸ
Thanks very much !!!

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.