Giter VIP home page Giter VIP logo

microsoft / simxns Goto Github PK

View Code? Open in Web Editor NEW
104.0 7.0 9.0 3.5 MB

SimXNS is a research project for information retrieval. This repo contains official implementations by MSRA NLC team.

Home Page: https://aka.ms/simxns

License: MIT License

Python 97.40% Shell 2.41% Jupyter Notebook 0.19%
dense-retrieval information-retrieval natural-language-processing negative-sampling knowledge-distillation pretraining-for-ir decision-time-planning

simxns's Issues

Problem with Downloading Checkpoints

I am writing to inform you that I have been facing an issue with downloading the checkpoints for the past 4 days. The download stops when it reaches 6-7 GB in size, and I am not sure if others are facing the same problem.

Could you please look into this and let me know if there is a solution or if anyone else is encountering a similar issue?

Problem with MASTER checkpoints

Hello,this is a really impressive work.
I've got some problems with the checkpoint.
image

you said that you initialized the model with bert, and I'm confused about which two layers you used to initialized the other heads,like c_head,query_head

qrels.train.addition.tsv not found

Traceback (most recent call last):
File "co_training/co_training_marco_generate.py", line 401, in
main()
File "co_training/co_training_marco_generate.py", line 392, in main
get_new_dataset(args, model, global_step, renew_tools)
File "co_training/co_training_marco_generate.py", line 354, in get_new_dataset
renew_tools.get_question_topk(train_q, train_q_embed, train_q_embed2id, ground_truth_path,
File "/SimXNS/SimANS/co_training/co_training_generate.py", line 439, in get_question_topk
train_pos_qp, train_pos_qp_add = load_pos_examples(mode)
File "/SimXNS/SimANS/co_training/co_training_generate.py", line 141, in load_pos_examples
with open(file_add) as inp:
FileNotFoundError: [Errno 2] No such file or directory: 'data/MS-Pas/qrels.train.addition.tsv'

@lx865712528

SimANS key code

why there is no def SimANS(pos_pair, neg_pairs_list) in the code?

'ckpt/MS-Doc/adore-star'. If you were trying to load it from 'https://huggingface.co/models'

OSError: Can't load the configuration of 'ckpt/MS-Doc/adore-star'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'ckpt/MS-Doc/adore-star' is the correct path to a directory containing a config.json file
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 18826) of binary: /home/socialab/miniconda3/envs/IR_SimANS-env/bin/python

RuntimeError: CUDA error: invalid device ordinal

orch.cuda.set_device(args.local_rank)
File "/home/socialab/miniconda3/envs/IR_SimANS-env/lib/python3.10/site-packages/torch/cuda/init.py", line 314, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: CUDA error: invalid device ordinal

Figure1.作图疑问

Hi, 麻烦问下。

对Fig.1的梯度均值,统计的是整体loss对模型的梯度向量的L2范数吗?
对Fig.1的梯度方差,统计的是[正样本doc的loss的梯度的L2范数, 负样本doc的loss梯度的L2范数】这个向量的方差吗?

如果可以的话,可以提供一个简单的作图代码。感谢!

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.