Register the native cinterop kernels on Apple targets in the runtime facades
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
Línea de trabajo
Read the existing registerPlatformBackends actuals in llm-runtime/kllama and llm-runtime/kgemma, then compare the Android wiring from #285. Add Apple source set dependencies and register native kernels as described; update the README target matrix. Verify with the cross-target SmolLm2InferenceSpike on iosSimulatorArm64Test on macOS after the Apple klibs are published; done means the facade installs kernels and the documented direct-consumer path is clear.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Apple half of the mobile-kernels story (engine SKaiNET#920 / #959; the Android half landed via #285). Engine develop now publishes skainet-backend-native-cpu for iosArm64 / iosSimulatorArm64 / macosArm64 (engine PR #962) with the kernel archives embedded in the klibs and runtime FEAT_DotProd dispatch (engine #958: A13+/M-series fast path, A12 scalar-int fallback — one archive, no SIGILL).
Registration on Kotlin/Native is manual (no ServiceLoader): a consumer calls installNativeKernels() once at startup. Today no transformers module does, so Apple K/N consumers of the runtime facades run packed-quant matmul on the scalar floor — the field report's 0.11 tok/s iOS simulator number.
Plan (mirrors the Android JNI wiring from #285):
llm-runtime/kllama+llm-runtime/kgemma: addsk.ainet.core:skainet-backend-native-cputo the Apple source sets and callinstallNativeKernels()from the existingregisterPlatformBackendsactual (kllama'ssrc/iosMainhas exactly this seam — it was dead code before #274 added the targets).- README target-matrix note (Apple gets native packed-quant kernels through the facades out of the box; direct
inference-llamaconsumers callinstallNativeKernels()themselves). - Numbers: run the existing cross-target
SmolLm2InferenceSpikeoniosSimulatorArm64Test(SIMCTL_CHILD_ env forwarding is already wired) on a macOS host, and physical-device numbers via the field-report author's standing test offer — A13+ fast arm; A12 no-SIGILL check if an XS/XR is available.
Blocked on: the next engine release publishing the Apple klibs to Maven Central (engine #964 adds the release plumbing). Until then the wiring can only be compile-verified on a macOS host via the composite build — this box (Linux) cannot build the engine's Apple cinterop.
- Lenguaje dominante
- Kotlin
- Estrellas
- 8
- Forks
- 3
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 48
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SKaiNET-developers/SKaiNET-transformers
-
documentation good first issue size:xs skill:docs sub-issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SKaiNET-developers/SKaiNET-transformers#478 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement skill:kotlin-core
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
SKaiNET-developers/SKaiNET-transformers#502 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
SKaiNET-developers/SKaiNET-transformers#483 ·
Los mantenedores suelen responder en 1 día
-
coding good first issue size:s skill:kotlin-core sub-issue
Dificultad 4/5 1-2 días Aptitud para principiantes 64/100
SKaiNET-developers/SKaiNET-transformers#477 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
coding good first issue size:s skill:numerics sub-issue
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
SKaiNET-developers/SKaiNET-transformers#476 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de SKaiNET-developers/SKaiNET-transformers
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
lugassawan/swe-workbench#823 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
Droid-Deck/DroidDeck#1355 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
IronCoreLabs/ironcore-alloy#351 ·
-
Lovelace refine Taak
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
MinBZK/MijnOverheidZakelijk#1383 ·