Repository navigation
AIKernel 0.1.4
AIKernel 0.1.4 adds local inference for Cosmos 3 Edge and Nano, Gemma 4 E2B, and GPT-OSS-20B. The standard CPU runtime requires neither CUDA nor LibTorch. Supported NVIDIA and Vulkan configurations can use optional acceleration. The legacy LibTorch add-on remains at 0.1.3.
Start or upgrade
- .NET SDK package for an existing application:
dotnet add package AIKernel.Core --version 0.1.4 - Python:
python -m pip install aikernel-net==0.1.4 - For an application already on 0.1.3, use the migration guide to verify its first response and align packages from the same release. English guide · 日本語ガイド
HTTP and MCP application hosting
Install AIKernel.Hosting and AIKernel.Providers.Distributed at version 0.1.4 to expose an application service through HTTP routes and MCP tools. The sample saves a note over MCP and retrieves it by ID over HTTP using the same server identity and bearer credential. Run the sample
Perception, Cosmos, Council and provider-manifest contracts now live in the shared assemblies. Type forwarders preserve their existing assembly-qualified names.
What changed
- Cosmos 3 Edge and Nano accept text, images, and timestamped video frames. Host configuration sets separate budgets for model weights and the KV cache, verifies model manifests, and reports page reads in private diagnostics.
- Gemma 4 E2B runs on CPU and supports a resident forward pass on compatible NVIDIA GPUs. On the CPU paging path,
InitialWeightCacheBytescan reserve weight buffers before generation.WeightRamUsagereports allocated, active, reusable, and peak host page buffers. GPT-OSS-20B supports the same weight-cache controls. Core documentation - The Bonsai 1.7B CTG evaluator distinguishes proposals from host observations and applies the governance ROM rules. Operating scope and evaluation
The HTTP/MCP contract tests passed against the packaged provider on Windows x64 and Linux x64 (7 on each). They cover shared operations, credential scopes, multiple profiles, heartbeat recovery, ranged streams and cancellation.
日本語
HTTP と MCP から同じアプリケーションサービスを呼び出せるようになりました。サンプルでは MCP ツールでメモを保存し、返された ID で HTTP から本文を取得できます。実行手順
0.1.4では、Cosmos 3 Edge/Nanoの文章・画像・動画入力と、Gemma 4 E2BおよびGPT-OSS-20Bのローカル推論に対応しました。GemmaとGPT-OSSでは、重み用バッファを事前確保し、推論中の使用量とピークを取得できます。Bonsai 1.7BのCTGは、提案と観測を分けてgovernance ROMの規則で評価します。
.NETの標準CPU版はCUDAとLibTorchのインストールなしで使えます。旧LibTorch追加パッケージの配布版は0.1.3です。既存のアプリを更新する場合は、移行ガイドの手順で最初の応答を確認してください。 0.1.3から0.1.4への移行
Serverの検証では試験プロセスのRSSを7 GB上限で監視しました。Gemma 4 E2BのAVX-512、AVX-VNNI、AVX-512 VNNIは同じ応答を返し、128 MiBの重み予約に対するページバッファ確保のピークは132 MiBでした。
HTTP/MCP の契約試験は、配布パッケージを使い Windows x64・Linux x64 で各7件に合格しました。同じメモを両経路で扱えること、資格情報の権限範囲、複数の接続先、生存確認の復帰、範囲指定転送とキャンセルを確認しています。