chuanmeng / dukenet Goto Github PK
View Code? Open in Web Editor NEWCode for SIGIR-2020 full paper: DukeNet: A Dual Knowledge Interaction Network for Knowledge-Grounded Conversation
Code for SIGIR-2020 full paper: DukeNet: A Dual Knowledge Interaction Network for Knowledge-Grounded Conversation
Is there a way to check inference for a new sample of knowledge background sentences, and possibly use it like an interaction mode?
What modifications in the code would be required to test it like in an interactive fashion?
Thanks!
Hi, I get the following error while trying to run inference with the pretrained model. Not sure how to resolve this, any help would be appreciated. Thanks!
CUDA_version:10.1
cudnn_version:7603
Vocabulary size 30522
The number of dev_samples: 8814
The number of test_seen_samples: 4336
The number of test_unseen_samples: 4370
Start inference at epoch d_3
Traceback (most recent call last):
File "DukeNet/Run.py", line 321, in <module>
inference(args)
File "DukeNet/Run.py", line 261, in inference
inference(args.dataset, i)
File "DukeNet/Run.py", line 206, in inference
model.load_state_dict(torch.load(file)["model"])
File "/home/bakhtiyar/anaconda3/envs/dukenet-2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 830, in load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for DukeNet:
Missing key(s) in state_dict: "enc.enc.embeddings.position_ids", "dec.embedding.0.position_ids", "dec.embedding.0.word_embeddings.weight", "dec.embedding.0.position_embeddings.weight", "dec.embedding.0.token_type_embeddings.weight", "dec.embedding.0.LayerNorm.weight", "dec.embedding.0.LayerNorm.bias", "dec.embedding.1.pe".
Unexpected key(s) in state_dict: "dec.embedding.word_embeddings.weight", "dec.embedding.position_embeddings.weight", "dec.embedding.token_type_embeddings.weight", "dec.embedding.LayerNorm.weight", "dec.embedding.LayerNorm.bias".
Hi, thanks for the open source of Dukenet.
I try to run this code but got segmentation fault (core dumped). It seems that the dependency of some python libs (maybe pytorch/transformers/cudatoolkit/cudnn version) is not compatible with the code.
I wonder if you can provide the specific versions of the python libs needed for the code.
I appreciate for that a lot.
Best.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.