#MachineLearning
共 5 篇文章
解决 Google TPU 报错 PJIT partition spec does not match mesh 拓扑失配修复
排查 JAX 在 TPU Pod 上使用 pjit 执行张量并行(Tensor Parallelism)时抛出 ValueError: pjit partition spec does not match mesh shape,分析 设备网格(Mesh)维度声明与张量分片规范(PartitionSpec)。
解决 Qdrant 报错 distance metric mismatch between collection and query 距离度量失配修复
排查 Qdrant 检索时返回 400 Bad Request: Distance metric mismatch,分析 集合创建配置(Cosine / Dot / Euclid)与客户端向量归一化差异。
解决 Google TPU 报错 XLA compilation failed dynamic shape 动态形状编译失败修复
排查 在 Google Cloud TPU 上运行 JAX / TensorFlow 时控制台报 XLA compilation error: Invalid dynamic shape or recompilation loop,导致训练每步都发生数十秒极长卡顿,分析 XLA 静态图编译与张量形状 Pad 对齐。
解决 TensorBoard 报错 Failed to bind to port 6006 端口占用修复
排查启动 TensorBoard 提示 ERROR: Failed to bind to port 6006 端口冲突错误,定位历史僵死进程与切换备用端口。
解决 PyTorch 报错 element 0 of tensors does not require grad 梯度修复
排查 PyTorch 执行 loss.backward() 抛出 RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn 错误,检查梯度截断。


