Model name
flux
Command run
This is a follow up of this thread I have now managed to complete many generations of images. Here's how I got there:
uv run coreai.diffusion.export flux2-klein-4b --platform iOS --overwrite
then compiled
{
for m in VAEEncoder_half VAEDecoder_half TextEncoder Transformer_512; do
xcrun coreai-build compile "$SRC/${m}.aimodel" \
--platform iOS --architecture h16g --preferred-compute gpu \
--output "$DST/${m}.aimodelc"
done
}
imported into Xcode target and called via the documentation.
macOS / iOS target
macos 27 beta 2, ipadOS 27 beta 2
Xcode version
xcode 27 beta 2
Python / uv version
uv 0.11.25
Full error output
When prompting I sometimes get spurious:
Task 1123: signal SIGABRT
in this line of code of the coreai-models framework.
here's a full stack trace screenshot:
Anything else?
It would be really nice if the framework coreai-models could give more info about what exactly went wrong, or help the host app recovering instead of crashing.
Model name
flux
Command run
This is a follow up of this thread I have now managed to complete many generations of images. Here's how I got there:
then compiled
{ for m in VAEEncoder_half VAEDecoder_half TextEncoder Transformer_512; do xcrun coreai-build compile "$SRC/${m}.aimodel" \ --platform iOS --architecture h16g --preferred-compute gpu \ --output "$DST/${m}.aimodelc" done }imported into Xcode target and called via the documentation.
macOS / iOS target
macos 27 beta 2, ipadOS 27 beta 2
Xcode version
xcode 27 beta 2
Python / uv version
uv 0.11.25
Full error output
When prompting I sometimes get spurious:
in this line of code of the coreai-models framework.
here's a full stack trace screenshot:
Anything else?
It would be really nice if the framework
coreai-modelscould give more info about what exactly went wrong, or help the host app recovering instead of crashing.