Repository navigation
build: engine 0.65.0 (storage layer removed in the engine) - #549
Draft
michalharakal wants to merge 1 commit into
Draft
michalharakal wants to merge 1 commit into
michalharakal wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft until SKaiNET 0.65.0 is on Maven Central: CI cannot resolve the engine before that. Locally it was built with
-PskainetMavenLocalagainst an unsignedpublishToMavenLocalof the engine'srelease/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,develophad 102 compile errors in 7 files.What changes
RealSmolLm2BakeIrpaTest,RealGemmaBakeIrpaTest,Lfm2CachedTensorNetworkTest): an external parameter is aConstantSource, read with the engine'sreadBytes(offset, length). The copiedbytesOfhelpers become one call. Where a harness matchedBufferHandle.Owned/Floats, it matchesConstantSource.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).skainet-io-iree-paramsadded where a harness reads constants (it holdsreadBytes). Whisper keeps its own IRPA writer; the module is there for the reader only.skainet = "0.65.0".Not in this PR
LlamaRuntimeQuantizedTeststill callsQuantizedMatmul.matmulQ8_0/matmulQ4_K, which 0.65.0 deprecates. The test uses a data-only context; moving it toops.matmulneeds 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.🤖 Generated with Claude Code