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**

Read the MOSS TTS ONNX Guide


SDK v0.2 Release

**Advanced Tensor Operations Vision Transforms NLP Tokenizers Complete Examples**

View v0.2 Release Notes


🎯 Platform Overview

Complete Platform Roadmap (9 Phases)

The Gollek and Wayang ecosystem spans 9 phases of development:

  1. Phases 1-3: Deep Learning Foundation (Gollek SDK) - All 3 Complete ✅
  2. Phases 4-7: Wayang Agent Platform (Integrated with Gollek) - All 4 Complete ✅
  3. Phases 8-9: Production Hardening & Optimization - All 3 Complete ✅ (8, 8B, 9), 1 Designed (9B)

Start Your Journey:


Getting Started

New Users

  1. Platform Overview - Understand the complete system
  2. Quick Start Guide - Install and set up Gollek in 5 minutes
  3. First Neural Network Tutorial - Build a simple neural network
  4. Training Docs - Choose the standard supervised or trainer-first workflow

Building Agents (Wayang)

  1. Agent Framework Intro - Overview of Phases 4-7
  2. Building Your First Agent - Create agent with builder pattern
  3. Skills Integration - Register and manage skills
  4. Production Deployment - Deploy agents safely

Migrating from PyTorch

  1. PyTorch to Gollek - Mapping PyTorch APIs to Gollek
  2. ML SDK Guide - Core Java-side modeling and training surface
  3. 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

Framework-Guided Paths

Specialized Workflow Families


Tools & Integration

Setup & Runtime


Runtime & Optimization


Architecture & Design


Troubleshooting & FAQ


Contributing


Release Notes


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

⭐ Star on GitHub • 💬 Join Discussions • 📧 Email Support