
Open-source deep learning framework simplifies creation of modern AI applications, adhering to GitFlow for branching and Semantic Versioning for release management.
SKaiNET aims to democratize "Edge AI / On-device AI" by bridging the gap between high-level application development and low-level hardware optimization. We believe AI should be portable, type-safe, and developer-friendly, enabling seamless intelligence in everything from mobile apps to IoT devices without sacrificing performance.
For architecture details see ARCHITECTURE.md.
Add the core dependencies (Gradle Kotlin DSL):
dependencies {
implementation("sk.ainet.core:SKaiNET-lang-core:0.18.0")
implementation("sk.ainet.core:SKaiNET-backend-cpu:0.18.0")
}Java / Maven users — see Java Getting Started for BOM setup and JVM flags.
val model = nn {
input(28 * 28)
dense(out = 128)
relu()
dense(out = 10)
}val a = tensor(shape(2, 2)) { float(1f, 2f, 3f, 4f) }
val b = tensor(shape(2, 2)) { float(5f, 6f, 7f, 8f) }
val c = a matMul b
val d = c.relu()// Recommended: streaming reader — memory-efficient, supports quantized types
val source = JvmRandomAccessSource.open("model.gguf")
StreamingGGUFReader.open(source).use { reader ->
println("Tensors: ${reader.tensorCount}")
// Load specific tensor on demand (no whole-file loading)
val bytes = reader.loadTensor("token_embd.weight")
// Or get a TensorStorage descriptor with encoding/placement metadata
val storage = reader.loadTensorStorage("token_embd.weight")
}More examples: SKaiNET-examples | SKaiNET-notebook
SKaiNET is a modular ecosystem. While this repository contains the core engine, specialized high-level libraries are maintained in standalone repositories:
| Project | Description |
|---|---|
| SKaiNET-LLM | Llama, Gemma, and BERT inference runtimes |
| SKaiNET-transformers | Pre-built transformer architectures and layers |
| SKaiNET-examples | Sample projects and integration demos |
| Goal | Start here |
|---|---|
| Examples and sample projects | SKaiNET-examples |
| Interactive notebooks | SKaiNET-notebook |
| LLM inference (Llama, Gemma) | SKaiNET-LLM |
| Java 21+ integration | docs/java-getting-started.md |
| Data loading and transforms | docs/io-readers-guide.md |
| Graph DSL (ResNet, YOLO) | docs/graph-dsl.md |
| Edge AI / Arduino export | docs/arduino-c-codegen.md |
| MLIR / StableHLO compiler | docs/hlo-getting-started.md |
| Architecture overview | ARCHITECTURE.md |
| Contributing | CONTRIBUTING.md |
safe-lowbit, balanced, experimental-max. See TurboQuantUsage for integration guide.JavaAgentLoop (in skainet-lang-java)nn { input(); dense(); relu(); dense() }
dag { } for ResNet, YOLO-style architecturesSKaiNET entry point, TensorJavaOps, builder-pattern model definitionsk.ainet:skainet-bom) for one-line version managementHloGenerator
KvCacheStore.turboQuant("balanced", ...).TensorStorage, TensorEncoding, BufferHandle, Placement), zero-copy ownership semantics, quantization-preserving loaders.KvCacheStore with append-by-token writes, layer/head addressing, asymmetric K/V encoding policies, and CompressedKvAttention SDPA bridge.See CHANGELOG.md for the full release history.
We love contributions! Whether it's a new operator, documentation, or a bug fix:
Browse the full codebase documentation on DeepWiki.
MIT — see LICENCE.
SKaiNET aims to democratize "Edge AI / On-device AI" by bridging the gap between high-level application development and low-level hardware optimization. We believe AI should be portable, type-safe, and developer-friendly, enabling seamless intelligence in everything from mobile apps to IoT devices without sacrificing performance.
For architecture details see ARCHITECTURE.md.
Add the core dependencies (Gradle Kotlin DSL):
dependencies {
implementation("sk.ainet.core:SKaiNET-lang-core:0.18.0")
implementation("sk.ainet.core:SKaiNET-backend-cpu:0.18.0")
}Java / Maven users — see Java Getting Started for BOM setup and JVM flags.
val model = nn {
input(28 * 28)
dense(out = 128)
relu()
dense(out = 10)
}val a = tensor(shape(2, 2)) { float(1f, 2f, 3f, 4f) }
val b = tensor(shape(2, 2)) { float(5f, 6f, 7f, 8f) }
val c = a matMul b
val d = c.relu()// Recommended: streaming reader — memory-efficient, supports quantized types
val source = JvmRandomAccessSource.open("model.gguf")
StreamingGGUFReader.open(source).use { reader ->
println("Tensors: ${reader.tensorCount}")
// Load specific tensor on demand (no whole-file loading)
val bytes = reader.loadTensor("token_embd.weight")
// Or get a TensorStorage descriptor with encoding/placement metadata
val storage = reader.loadTensorStorage("token_embd.weight")
}More examples: SKaiNET-examples | SKaiNET-notebook
SKaiNET is a modular ecosystem. While this repository contains the core engine, specialized high-level libraries are maintained in standalone repositories:
| Project | Description |
|---|---|
| SKaiNET-LLM | Llama, Gemma, and BERT inference runtimes |
| SKaiNET-transformers | Pre-built transformer architectures and layers |
| SKaiNET-examples | Sample projects and integration demos |
| Goal | Start here |
|---|---|
| Examples and sample projects | SKaiNET-examples |
| Interactive notebooks | SKaiNET-notebook |
| LLM inference (Llama, Gemma) | SKaiNET-LLM |
| Java 21+ integration | docs/java-getting-started.md |
| Data loading and transforms | docs/io-readers-guide.md |
| Graph DSL (ResNet, YOLO) | docs/graph-dsl.md |
| Edge AI / Arduino export | docs/arduino-c-codegen.md |
| MLIR / StableHLO compiler | docs/hlo-getting-started.md |
| Architecture overview | ARCHITECTURE.md |
| Contributing | CONTRIBUTING.md |
safe-lowbit, balanced, experimental-max. See TurboQuantUsage for integration guide.JavaAgentLoop (in skainet-lang-java)nn { input(); dense(); relu(); dense() }
dag { } for ResNet, YOLO-style architecturesSKaiNET entry point, TensorJavaOps, builder-pattern model definitionsk.ainet:skainet-bom) for one-line version managementHloGenerator
KvCacheStore.turboQuant("balanced", ...).TensorStorage, TensorEncoding, BufferHandle, Placement), zero-copy ownership semantics, quantization-preserving loaders.KvCacheStore with append-by-token writes, layer/head addressing, asymmetric K/V encoding policies, and CompressedKvAttention SDPA bridge.See CHANGELOG.md for the full release history.
We love contributions! Whether it's a new operator, documentation, or a bug fix:
Browse the full codebase documentation on DeepWiki.
MIT — see LICENCE.