Python製の公開APIを.NET/AIKernelへ段階移行する
Pythonの推論ランタイムを活かし、公開APIを.NET/AIKernelへ段階移行する条件を整理します。NuGet公開のTTS Providerを使ったKokoroの再現手順と、認可・負荷制限・ハッシュの扱いを紹介します。
01 / WHAT IS AIKERNEL?
Connect models, define execution conditions, and inspect the process. AIKernel is a .NET foundation for composing these responsibilities in your application.
02 / ARCHITECTURE IN 30 SECONDS
Your application requests work, Core composes execution, and providers connect to models and services. This is the basic map.
Define the inputs and the work to do
Hosting, Kernel, and file access
Model, service, and compute implementations
Shared contracts: AIKernel.NET — align inputs and outputs across components.
Inspection: AIKernel.Tools — explore state and execution records.
03 / WORKING DEMO
Bonsai 1.7B handles the first text question. Cosmos 3 Edge handles follow-ups, images and short videos. Each reply shows which model ran.
In AIKernel.Doom, switch between manual and automated play to see how the game responds to input.
AIKernel.Doom Browser / WebAssembly
Open the Doom demo →Read the Doom demo guide →04 / GETTING STARTED
The first .NET sample needs neither an API key nor a GPU.
Follow preparation, execution, and expected output. Establish the basic environment before connecting a model.
Match the log to the code. Change one input and observe what changes and what remains the same.
Choose a provider for your model or service. Check configuration and failure behavior before integration.
dotnet add package AIKernel.Core --version 0.1.4Requires the .NET 10 SDK. See the migration guide if you already use 0.1.3.
05 / LATEST DEVELOPMENT
Implementation, measurements, and experiments are documented in the development blog. Read the latest notes for design decisions and the work that led to them. Articles are in Japanese.
Pythonの推論ランタイムを活かし、公開APIを.NET/AIKernelへ段階移行する条件を整理します。NuGet公開のTTS Providerを使ったKokoroの再現手順と、認可・負荷制限・ハッシュの扱いを紹介します。
同じ8フレームの動画への応答は、ServerでEdgeが26.12秒、Nanoが175.97秒。開発機と文章・画像・動画の6条件を比べ、参照回答の再現性と、KVキャッシュの容量がSSD書き込み量に及ぼす影響を調べました。
AIKernelの重みキャッシュを改修し、Serverの4コアでGPT-OSS-20Bを生成。最大RSSは2.892 GB。SSDから読む場合とOSキャッシュを保持した場合の応答時間・メモリ・I/O、llama.cppとのトークン列照合を公開します。
FIND YOUR NEXT STEP
Guides explain tasks, reference pages document APIs, and design material explains the reasoning.
Maintained by AIKernel-NET Project.
Found an error or a step that does not work? Contact us with the source revision, package versions, and reproduction steps.