【发布时间】:2023-04-03 09:30:01
【问题描述】:
其他人能告诉我他们在机器上训练模型需要多长时间吗?我已经从下面的代码中发布了一些日志信息。 top 显示 python 的 cpu 使用率约为 300%,nvidia-smi 昨天显示 Volatile GPU-Util 约为 60%,但现在约为 30%。 30 小时前开始训练,现在损失在 0.10 附近振荡了大约 15 小时。我可能需要调整梯度下降的截止参数,但我希望代码能够像教程 repo 中那样运行和收敛。我按照教程here,他们说
该模型在一个 在 GPU 上几个小时的训练时间
>>> head -n20 nohup.out
...
2017-05-14 16:38:21.763013: I tensorflow/core/common_runtime/gpu/gpu_device.cc:887] Found device 0 with properties:
name: GeForce GTX 960
major: 5 minor: 2 memoryClockRate (GHz) 1.342
pciBusID 0000:01:00.0
Total memory: 1.95GiB
Free memory: 1.58GiB
2017-05-14 16:38:21.763029: I tensorflow/core/common_runtime/gpu/gpu_device.cc:908] DMA: 0
2017-05-14 16:38:21.763036: I tensorflow/core/common_runtime/gpu/gpu_device.cc:918] 0: Y
2017-05-14 16:38:21.763044: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 960, pci bus id: 0000:01:00.0)
Successfully downloaded cifar-10-binary.tar.gz 170052171 bytes.
Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes.
2017-05-14 16:38:36.943404: step 0, loss = 4.68 (83.0 examples/sec; 1.542 sec/batch)
2017-05-14 16:38:37.983802: step 10, loss = 4.60 (1230.3 examples/sec; 0.104 sec/batch)
2017-05-14 16:38:39.199938: step 20, loss = 4.55 (1052.5 examples/sec; 0.122 sec/batch)
【问题讨论】:
标签: tensorflow