Gollek Documentation
Welcome to the Gollek and Wayang documentation. Choose a path below to get started with setup, framework usage, runtime operations, training workflows, and examples.
Which Docs Area Should I Start With?
If you want installation, CLI, JBang, or first-run setup:
If you want Java-side modeling, training, or framework APIs:
If you want runtime operations, deployment paths, or backend troubleshooting:
If you want guided workflows instead of reference pages:
Latest: MOSS TTS ONNX Audio Runtime
| **Local text-to-speech | Voice presets | Suling WAV/FLAC/MP3 | Live audio preview | Audio-native run metrics** |
SDK v0.2 Release
| **Advanced Tensor Operations | Vision Transforms | NLP Tokenizers | Complete Examples** |
🎯 Platform Overview
Complete Platform Roadmap (9 Phases)
The Gollek and Wayang ecosystem spans 9 phases of development:
- Phases 1-3: Deep Learning Foundation (Gollek SDK) - All 3 Complete ✅
- Phases 4-7: Wayang Agent Platform (Integrated with Gollek) - All 4 Complete ✅
- Phases 8-9: Production Hardening & Optimization - All 3 Complete ✅ (8, 8B, 9), 1 Designed (9B)
Start Your Journey:
- 📊 Platform Phases Overview - Complete roadmap of all 9 phases
- 🤖 Wayang Agent Platform (Phases 4-7) - Build intelligent agents on top of Gollek
- 🚀 Production Hardening (Phases 8-9) - Deploy to production
- ⚡ GPU Acceleration (Phase 2) - 30-100x speedup with Gollek Kernels
- 🔧 Extended Features (Phase 3) - Transformers and model zoo
Getting Started
New Users
- Platform Overview - Understand the complete system
- Quick Start Guide - Install and set up Gollek in 5 minutes
- First Neural Network Tutorial - Build a simple neural network
- Training Docs - Choose the standard supervised or trainer-first workflow
Building Agents (Wayang)
- Agent Framework Intro - Overview of Phases 4-7
- Building Your First Agent - Create agent with builder pattern
- Skills Integration - Register and manage skills
- Production Deployment - Deploy agents safely
Migrating from PyTorch
- PyTorch to Gollek - Mapping PyTorch APIs to Gollek
- ML SDK Guide - Core Java-side modeling and training surface
- Examples Docs - Current example hubs, JBang catalog, and walkthroughs
Documentation Hubs
🌟 Wayang Platform (Complete System)
| Section | Description | Status |
|---|---|---|
| Platform Phases Overview | 9-phase roadmap | 📊 Complete |
| Agent Platform (Phases 4-7) | Intelligent agent runtime and skills | ✅ Production Ready |
| Production Hardening (Phases 8-9) | Observability, optimization, testing | ✅ Production Ready |
| 🚀 Inference Serving | Continuous batching and paged attention | ✅ Production Ready |
| MOSS TTS ONNX | Local text-to-speech runtime | ✅ Available |
| 🎮 GPU Runtime Docs | Kernels, SPI, auto-detection, and placement | ✅ Available |
| 🛠️ GPU Runtime Troubleshooting | Runtime failure and placement debugging | ✅ Available |
| 🎮 GPU Kernel SPI | Unified CUDA/Metal/ROCm interface | ✅ Production Ready |
| ☁️ Cloud Provider Docs | Plugin installation and provider configuration | ✅ Available |
| ☁️ Cloud Provider Glossary | Provider and plugin terminology | ✅ Available |
| ☁️ Cloud Provider Config Examples | Directory, plugin.json, and env-var examples |
✅ Available |
| 🧩 Native Runtime Docs | Native-image, executables, and FFI entrypoints | ✅ Available |
| 🧩 Native Runtime Glossary | Native-image and FFI terminology | ✅ Available |
| 🧩 Native Runtime Examples | Executable, shared-library, and C call examples | ✅ Available |
| 🔄 Provider Fallback Router | Fault-tolerant provider routing | ✅ Production Ready |
| ⚙️ Optimization Config | Runtime and plugin tuning | ✅ Production Ready |
| GPU Acceleration (Phase 2) | CUDA, Metal, ROCm backends | ✅ Production Ready |
| Extended Features (Phase 3) | Transformers, loss functions, model zoo | ✅ Production Ready |
Framework & Training
| Document | Description |
|---|---|
| Framework Overview | Main ML framework and module overview |
| ML SDK Guide | Core Java-side modeling and training surface |
| Training Docs | Generic training and trainer runtime entrypoint |
| DiffusionOPD Docs | DiffusionOPD overview, workflows, and selectors |
| Byte-Latent Docs | Byte-Latent checkpoints, workflows, and compare flows |
| Recursive Reasoning Docs | GRAM-style rollout, compare, and bundle flows |
| Audio Processing Docs | STT, TTS, VAD, and audio runtime routing |
| Quantization Docs | Strategy selection, Java usage, and REST usage |
| API References | Generated framework and trainer module reference |
API Snapshot
| Version | Description | Status |
|---|---|---|
| 0.1.0-SNAPSHOT | Modern ML/DL/NN framework modules reference | 📚 Available |
Core Guides
| Document | Description |
|---|---|
| TensorOps API | Advanced slicing, gathering, masking, and tensor utility operations |
| Tokenizer API | Text tokenization interface and vocabulary surface |
| Vision Transforms | Image preprocessing and transform composition |
| Multimodal SDK | Java-side multimodal framework entrypoint |
Examples, Tutorials, and Terminal Paths
| Document | Description |
|---|---|
| Examples Docs | Main examples chooser across setup, tutorials, and runnable demos |
| JBang Examples Catalog | Runnable terminal-first scripts across ML, multimodal, and trainer lanes |
| Trainer JBang Docs | Terminal-first trainer families and report workflows |
| Trainer JBang Workflow | Guided trainer-first tutorial path |
| Tutorials Overview | Basic, intermediate, and advanced guided walkthroughs |
API Reference
Core Classes
- Tensor - Multi-dimensional array abstraction
- GradTensor - Tensor with gradient tracking
- TensorOps - Advanced tensor operations ⭐ NEW
- Module - Base class for neural network components
- Sequential - Container for stacked modules
Neural Network Modules (118+ classes)
Layers:
Full List: All NN Modules
Loss Functions
Optimizers
Data & Vision ⭐ NEW
Examples
Starter Hubs
- Examples Docs - Main examples chooser across setup, JBang, and tutorials
- JBang Examples Catalog - Runnable terminal-first scripts
- Trainer JBang Docs - Trainer-family demos, inspectors, and workflows
Framework-Guided Paths
- Training Docs - Standard supervised and specialized training routes
- Audio Processing Docs - STT, TTS, VAD, and audio examples
- Quantization Docs - Model compression strategies and examples
Specialized Workflow Families
- Byte-Latent Docs - Checkpoint, workflow, and compare inspection
- DiffusionOPD Docs - Reporting, selectors, and bundle workflows
- Recursive Reasoning Docs - GRAM-style rollout, compare, and bundle flows
Tools & Integration
Setup & Runtime
- CLI Installation
- CLI Reference
- Setup Docs
- Examples Docs
- Trainer JBang Docs
- Extensions - Scaffold pipeline projects and global
FeatureAdapterpackages - MOSS TTS ONNX Audio
- TTS audio examples
- GPU Runtime Docs
- Cloud Provider Docs
- Native Runtime Docs
Runtime & Optimization
- Optimization Config
- GPU Runtime Docs
- GPU Runtime Troubleshooting
- Quantization Docs
- Native Library Guide
Architecture & Design
- Runtime Architecture
- Core Runtime Architecture
- Device Responsibility Architecture
- Framework Overview
- Developer Guidance
Troubleshooting & FAQ
Contributing
- SDK Installation
- CLI Installation
- Developer Guidance
- GitHub Packages Deployment
- Git Repository Cleanup
Release Notes
- SDK v0.2 ⭐ Latest - Advanced Tensor Ops, Vision Transforms, NLP Tokenizers
- Enhancement History - Historical implementation notes
- PyTorch Migration Guide - Migrating model and API patterns into Gollek
Community & Support
Quick Navigation
By Use Case
Training a neural network?
→ Framework Overview → Training Docs → Trainer JBang Workflow
Using from CLI?
→ CLI Installation → CLI Reference
Generating local audio? → MOSS TTS ONNX Guide → TTS Audio Examples
Migrating from PyTorch?
→ PyTorch Migration Guide → ML SDK Guide
Looking for examples?
→ Examples Docs or JBang Scripts
Need API reference?
→ Core Classes → NN Modules → Operations
Ready to Build?
Start with the Quick Start Guide or dive into Examples Docs