gpt4 book ai didi

google-cloud-ml - 提交训练作业后出现“没有此类文件或目录”错误

转载 作者:行者123 更新时间:2023-12-04 21:08:41 24 4
gpt4 key购买 nike

我执行:
gcloud beta ml jobs submit training ${JOB_NAME} --config config.yaml
大约 5 分钟后,作业出错并显示此错误:

Traceback (most recent call last): 
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals
File "/root/.local/lib/python2.7/site-packages/trainer/task.py", line 232, in <module> tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run sys.exit(main(sys.argv[:1] + flags_passthrough))
File "/root/.local/lib/python2.7/site-packages/trainer/task.py", line 228, in main run_training()
File "/root/.local/lib/python2.7/site-packages/trainer/task.py", line 129, in run_training data_sets = input_data.read_data_sets(FLAGS.train_dir, FLAGS.fake_data)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 212, in read_data_sets with open(local_file, 'rb') as f: IOError: [Errno 2] No such file or directory: 'gs://my-bucket/mnist/train/train-images.gz'

奇怪的是,据我所知,该文件存在于该网址中。

最佳答案

此错误通常表示您正在使用多区域 GCS 存储桶作为输出。为了避免这个错误,你应该使用 regional GCS bucket .区域桶提供更强的一致性保证,这是避免这些类型错误所需的。

有关为 Cloud ML 正确设置 GCS 存储桶的更多信息,请参阅 Cloud ML Docs

关于google-cloud-ml - 提交训练作业后出现“没有此类文件或目录”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39775417/

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