Skip to content

Commit df0d874

Browse files
authored
Update backends-coreml.md
Add blobwriter error to common issues
1 parent 5ef38d3 commit df0d874

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/source/backends-coreml.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ Note that if the ExecuTorch model has graph breaks, there may be multiple extrac
195195

196196
## Common issues and what to do
197197

198-
During lowering to the CoreML backend, you might see an error like: "ValueError: In op, of type [X], named [Y], the named input [Z] must have the same data type as the named input x. However, [Z] has dtype fp32 whereas x has dtype fp16."
198+
### During lowering
199+
1. "ValueError: In op, of type [X], named [Y], the named input [Z] must have the same data type as the named input x. However, [Z] has dtype fp32 whereas x has dtype fp16."
199200

200201
This happens because the model is in FP16, but CoreML interprets some of the arguments as FP32, which leads to a type mismatch. The solution is to keep the PyTorch model in FP32. Note that the model will be still be converted to FP16 during lowering to CoreML unless specified otherwise in the compute_precision [CoreML CompileSpec](#coreml-compilespec). Also see the [related issue in coremltools](https://github.com/apple/coremltools/issues/2480).
202+
203+
2. coremltools/converters/mil/backend/mil/load.py", line 499, in export
204+
raise RuntimeError("BlobWriter not loaded")
205+
206+
If you're using Python 3.13, try reducing your python version to Python 3.12. coremltools does not support Python 3.13.

0 commit comments

Comments
 (0)