Skip to content

build: engine 0.65.0 (storage layer removed in the engine) - #549

Draft
michalharakal wants to merge 1 commit into
developfrom
migrate-0.65.0
Draft

michalharakal wants to merge 1 commit into
developfrom
migrate-0.65.0

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Draft until SKaiNET 0.65.0 is on Maven Central: CI cannot resolve the engine before that. Locally it was built with -PskainetMavenLocal against an unsigned publishToMavenLocal of the engine's release/0.65.0.

Why

SKaiNET 0.65.0 removes its old storage layer: TensorStorage, BufferHandle, DefaultBufferResolver, loadTensorStorage* and the per-format source factories. Against it, develop had 102 compile errors in 7 files.

What changes

  • Export harnesses and bake tests (SmolLM2, Qwen, Whisper, LFM2, Gemma 3n, FunctionGemma; RealSmolLm2BakeIrpaTest, RealGemmaBakeIrpaTest, Lfm2CachedTensorNetworkTest): an external parameter is a ConstantSource, read with the engine's readBytes(offset, length). The copied bytesOf helpers become one call. Where a harness matched BufferHandle.Owned / Floats, it matches ConstantSource.Bytes / Floats.
  • GemmaSafeTensorsMappedPle: path, offset and size of the per-layer table come from the sharded reader (shardPathOf, absoluteDataOffset, sizeInBytes); the loader still maps the range itself into its arena.
  • createRandomAccessSource → sk.ainet.io.openRandomAccessSource (4 files in native, Android and common test source sets).
  • Build files: skainet-io-iree-params added where a harness reads constants (it holds readBytes). Whisper keeps its own IRPA writer; the module is there for the reader only.
  • skainet = "0.65.0".

Not in this PR

  • LlamaRuntimeQuantizedTest still calls QuantizedMatmul.matmulQ8_0 / matmulQ4_K, which 0.65.0 deprecates. The test uses a data-only context; moving it to ops.matmul needs a backend context.

Checks (local, against the engine in ~/.m2)

  • compileKotlinJvm, compileTestKotlinJvm, compileKotlinLinuxX64, compileTestKotlinLinuxX64, compileKotlinJs, compileKotlinWasmJs, compileKotlinAndroidNativeArm32: pass.
  • jvmTest: 919 tests, 0 failures, 6 skipped.
  • Not run: the tests that need real model files, and the Android device test.

🤖 Generated with Claude Code

…actory from skainet-io-core

SKaiNET 0.65.0 removes TensorStorage, BufferHandle, DefaultBufferResolver and
the per-format source factories. The export harnesses and bake tests read an
external parameter with ConstantSource.readBytes; the Gemma mapped PLE loader
takes path, offset and size from the sharded reader.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant