Views
No views yet
| Release | Test PPL | Test BLEU 4 | GPUs |
|---|---|---|---|
| 15.08.23 | 4.01 | 2.54e-04 | 1xV100 32GB |
pip install speechbrain==1.0.21from speechbrain.inference.text import GPTResponseGenerator
2res_gen_model = GPTResponseGenerator.from_hparams(source="speechbrain/MultiWOZ-GPT-Response_Generation", savedir="pretrained_models/MultiWOZ-GPT-Response_Generation", pymodule_file="custom.py")
3print("Hi,How could I help you today?", end="\n")
4while True:
5 turn = input()
6 response = res_gen_model.generate_response(turn)
7 print(response, end="\n")run_opts={"device":"cuda"} when calling the from_hparams method.1git clone https://github.com/speechbrain/speechbrain/
2git checkout d9fb58f5693311ae2715dae3208e0fafaaf04a81cd speechbrain
pip install -r requirements.txt
pip install -e .cd recipes/MultiWOZ/response_generation/gpt/
pip install -r extra_requirements.txt
python train_with_gpt.py hparams/train_gpt.yaml --data_folder=your_data_folder1@misc{speechbrain,
2 title={{SpeechBrain}: A General-Purpose Speech Toolkit},
3 author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
4 year={2021},
5 eprint={2106.04624},
6 archivePrefix={arXiv},
7 primaryClass={eess.AS},
8 note={arXiv:2106.04624}
9}