Comments (7)
Did you finally find the way?
from moel.
Hi, sorry for late reply. I added a simple interact script. Try the following command:
python3 interact.py --model experts --label_smoothing --noam --emb_dim 300 --hidden_dim 300 --hop 1 --heads 2 --topk 5 --cuda --pretrain_emb --softmax --basic_learner --save_path save/checkpoint
from moel.
Thank you for sharing the code. But got this error while running the interact.py code
TypeError: 'Transformer_experts' object is not subscriptable
Requirements are installed.
Thanks and regards
from moel.
Hi, can you share the full error message?
from moel.
Please find the message.loading weights
Traceback (most recent call last):
File "interact.py", line 69, in
model = Transformer_experts(vocab,decoder_number=program_number, model_file_path=config.save_path, is_eval=True)
File "/home/ubuntu/Desktop/Sowmya/Conversation/MoEL_NO_DATA/model/transformer_mulexpert.py", line 363, in init
self.encoder.load_state_dict(state['encoder_state_dict'])
TypeError: 'Transformer_experts' object is not subscriptable
Thanks and regards
from moel.
What command did you run? Did you give the correct model checkpoint? python3 interact.py --model experts --label_smoothing --noam --emb_dim 300 --hidden_dim 300 --hop 1 --heads 2 --topk 5 --cuda --pretrain_emb --softmax --basic_learner --save_path save/checkpoint
from moel.
Yes. It worked. Thank you very much.
from moel.
Related Issues (10)
- Bug in beam search of Expert HOT 4
- about metric HOT 3
- empathetic_dataset_preprocesing code HOT 2
- Training time rquired to train the MoEL model HOT 1
- how to run the get_ed_data.py ?
- Questions about code reproduction HOT 3
- Do you still have the original data set?
- dataset process HOT 1
- ret_sentences.append(' '.join([self.model.vocab.index2word[idx] for idx in d[0]]).replace('EOS','')) KeyError: 9.5367431640625e-07 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moel.