gpt4 book ai didi

python - 如何运行 ParlAI Blender 聊天机器人?

转载 作者:行者123 更新时间:2023-12-04 18:33:22 24 4
gpt4 key购买 nike

我想玩 Blender 聊天机器人,但快速入门或食谱页面上的大多数脚本都不起作用。例如
来自 https://parl.ai/projects/recipes/

python parlai/scripts/safe_interactive.py -t blended_skill_talk -mf zoo:blender/blender_90M/model
我有
Traceback (most recent call last):
File "parlai/scripts/safe_interactive.py", line 11, in <module>
from parlai.core.params import ParlaiParser
ModuleNotFoundError: No module named 'parlai'
或者
来自 https://parl.ai/docs/tutorial_quick.html
parlai eval_model -t twitter -mf zoo:blender/blender_90M/model
我有
17:28:54 INFO | loading dictionary from /home/jacek/ParlAI/data/models/blender/blender_90M/model.dict
17:28:54 INFO | num words = 54944
Traceback (most recent call last):
File "/usr/local/bin/parlai", line 11, in <module>
load_entry_point('parlai', 'console_scripts', 'parlai')()
File "/home/jacek/ParlAI/parlai/core/script.py", line 266, in superscript_main
SCRIPT_REGISTRY[cmd].klass._run_from_parser_and_opt(opt, parser)
File "/home/jacek/ParlAI/parlai/core/script.py", line 88, in _run_from_parser_and_opt
return script.run()
File "/home/jacek/ParlAI/parlai/scripts/eval_model.py", line 232, in run
return eval_model(self.opt, print_parser=self.parser)
File "/home/jacek/ParlAI/parlai/scripts/eval_model.py", line 198, in eval_model
agent = create_agent(opt, requireModelExists=True)
File "/home/jacek/ParlAI/parlai/core/agents.py", line 394, in create_agent
model = create_agent_from_opt_file(opt)
File "/home/jacek/ParlAI/parlai/core/agents.py", line 347, in create_agent_from_opt_file
return model_class(opt_from_file)
File "/home/jacek/ParlAI/parlai/core/torch_generator_agent.py", line 445, in __init__
super().__init__(opt, shared)
File "/home/jacek/ParlAI/parlai/core/torch_agent.py", line 728, in __init__
self.dict = self.build_dictionary()
File "/home/jacek/ParlAI/parlai/core/torch_agent.py", line 812, in build_dictionary
d = self.dictionary_class()(self.opt)
File "/home/jacek/ParlAI/parlai/core/dict.py", line 305, in __init__
self.bpe = bpe_factory(opt, shared)
File "/home/jacek/ParlAI/parlai/utils/bpe.py", line 80, in bpe_factory
bpe_helper = SubwordBPEHelper(opt, shared)
File "/home/jacek/ParlAI/parlai/utils/bpe.py", line 292, in __init__
raise RuntimeError(
RuntimeError: Please run "pip install 'git+https://github.com/rsennrich/subword-nmt.git#egg=subword-nmt'"
(我试图做那个 pip install 它说它已经安装了)
parlai train_model -t babi:task10k:1 -mf /tmp/babi_memnn -bs 1 -nt 4 -eps 5 -m memnn --no-cuda
我有
Parse Error: argument -mtw/--multitask-weights: invalid 'multitask_weights' value: 'memnn'
尽管我认为我的自我应该是“--model”标志而不是“-m”。
我猜所有这些都是一些配置错误的结果。不过,我已经使用快速启动页面上提供的说明安装了 ParlAI、Python 和 PyTorch。
系统信息:Ubuntu 20.04 LTS、Intel® Core™ i7-9750H CPU @ 2.60GHz × 12、31,2 GiB RAM、GeForce GTX 1660 Ti/PCIe/SSE2。
我被卡住了,请帮忙。

最佳答案

对我来说,Blender 在不到 10 分钟的时间内开箱即用。
实际上,我很惊喜地发现它运行起来如此简单。

关于python - 如何运行 ParlAI Blender 聊天机器人?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63038129/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com