gpt4 book ai didi

python-3.x - 无法使用 fastai 的 pretrained_model=URLs.WT103

转载 作者:行者123 更新时间:2023-12-01 01:57:59 24 4
gpt4 key购买 nike

尝试使用 fastai 的 language_model_learner:

learn = language_model_learner(data_lm, pretrained_model=URLs.WT103, drop_mult=0.7)

错误:

---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-17-811dec5cedeb> in <module>
----> 1 learn = language_model_learner(data_lm,
pretrained_model=URLs.WT103, drop_mult=0.7)

AttributeError: type object 'URLs' has no attribute 'WT103'

最佳答案

尝试删除 pretrained_model 的参数,比如learn = language_model_learner(data_lm, arch = AWD_LSTM, pretrained = True, drop_mult=0.7)它对我来说很好。

关于python-3.x - 无法使用 fastai 的 pretrained_model=URLs.WT103,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57240057/

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