From 6586ad9e8bbcbd613c55982d5a4eeede29ea1ccc Mon Sep 17 00:00:00 2001 From: Michal Harakal Date: Thu, 30 Apr 2026 19:54:22 +0200 Subject: [PATCH] chore(release): prepare 0.22.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - gradle.properties: bump VERSION_NAME 0.22.0 → 0.22.1. - CHANGELOG: add 0.22.1 section covering #582 — sharded analog of loadTensorStorageMapped on StreamingShardedSafeTensorsReader. - README: bump Quickstart coordinates to 0.22.1. Patch release motivated by SKaiNET-transformers' Gemma 4 PLE loader, which currently rolls its own FileChannel.map to mmap the 4.7 GB BF16 embed_tokens_per_layer tensor (over the 2 GB JVM ByteArray cap). Once 0.22.1 is published to Maven, that downstream consumer can drop the JVM mmap glue and consume the upstream TensorStorage directly. No other behavioural changes vs 0.22.0; this is a single-PR follow-up release that ships the API surface that should have made the 0.22.0 window but landed after the release branch was cut. Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 6 ++++++ README.md | 4 ++-- gradle.properties | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1436693fb..e1dce0a1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [0.22.1] - 2026-04-30 + +### Added + +- **`StreamingShardedSafeTensorsReader.loadTensorStorageMapped`** — by-name and by-`ShardedTensorInfo` overloads that mirror the existing single-file `StreamingSafeTensorsReader.loadTensorStorageMapped(tensor, filePath)`. Both return a `TensorStorage` whose `BufferHandle.FileBacked` references the resolved shard file's tensor byte range, enabling zero-copy / memory-mapped reads of tensors that exceed the 2 GB JVM `ByteArray` limit. The new methods delegate internally to the per-shard reader; callers don't need to know which physical shard contains a given tensor. Unblocks downstream consumers (e.g. SKaiNET-transformers' Gemma 4 PLE token-embedding table at ~4.7 GB BF16 on E2B) that previously rolled their own `FileChannel.map`. (PR #582) + ## [0.22.0] - 2026-04-30 ### Added diff --git a/README.md b/README.md index 4c79dd6e2..200e1f1c0 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ Add the core dependencies (Gradle Kotlin DSL): ```kotlin dependencies { - implementation("sk.ainet.core:SKaiNET-lang-core:0.22.0") - implementation("sk.ainet.core:SKaiNET-backend-cpu:0.22.0") + implementation("sk.ainet.core:SKaiNET-lang-core:0.22.1") + implementation("sk.ainet.core:SKaiNET-backend-cpu:0.22.1") } ``` diff --git a/gradle.properties b/gradle.properties index 33f2e3604..7d9588a25 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=sk.ainet.core -VERSION_NAME=0.22.0 +VERSION_NAME=0.22.1 POM_DESCRIPTION=SKaiNET POM_URL=https://github.com/SKaiNET-developers/skainet/