window环境下随缘发生以上问题,昨天还好用,今天server启动不了报错如文章标题
相关的解决方案链接:
https://blog.csdn.net/konghao_xia/article/details/103418919?utm_medium=distribute.pc_relevant_t0.none-task-blog-OPENSEARCH-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-OPENSEARCH-1.control
该博主提供了一些线索吧,并没能解决我的问题。
从源码里看问题可能有两个。首先吧:
graph.py里的这个try except 去掉,详细找下问题
def optimize_graph(args, logger=None):
if not logger:
logger = set_logger(colored('GRAPHOPT', 'cyan'), args.verbose)
try:
# 里面内容取出来
可能的问题1:
with tf.gfile.GFile(config_fp, 'r') as f:
bert_config = modeling.BertConfig.from_dict(json.load(f))
文件路径一定要保证对,在对的情况下这个bert_config.json里的内容可能不能被正确读取,可以自己复制出来做成dict传给modeling.BertConfig.from_dict
dicti = {
"attention_probs_dropout_prob": 0.1,
"directionality": "bidi",
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"max_position_embeddings": 512,
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pooler_fc_size": 768,
"pooler_num_attention_heads": 12,
"pooler_num_fc_layers": 3,
"pooler_size_per_head": 128,
"pooler_type": "first_token_transform",
"type_vocab_size": 2,
"vocab_size": 21128
}
bert_config = modeling.BertConfig.from_dict(dicti)
可能的问题2
pandas.core.computation’ has no attribute 'expressions
dask 版本不对,pandas版本太低
升级dask 到2.6.0 pandas到0.25.3
如果出现新的报错:
if fsspec is None or LooseVersion(fsspec.__version__