Dataset Viewer
Auto-converted to Parquet Duplicate
text
large_stringlengths
2.02k
34.1k
tokens
int64
414
7.66k
# Conch Console Commands in Legacy Migration Contexts ## 14.1 Primitives and Hard Constraints This chapter examines the use of Conch console commands for mentoring and diagnostic explanation within a Roblox ecosystem library context, specifically addressing a legacy codebase undergoing server migration with mixed cli...
2,706
# Voxel Resolution Trade-offs and Concurrency Hazards in Cross-Play Environments ## 14.1 Primitives and Hard Constraints In high-fidelity voxel-based combat environments, such as a laser tag arena with cross-play enabled, the engine must reconcile spatial resolution, network synchronization, and audio resource alloca...
2,917
## 1. Conflict Resolution Policies: Migration from Legacy Approaches ### 1.1 Primitives and Definitions In high-concurrency Roblox environments, conflict resolution refers to the deterministic strategy employed when multiple clients attempt to mutate shared state simultaneously. The legacy approach, often termed "las...
2,551
# Trading Economy Sinks and Cost Modeling Under Platform Outage ## 14.1 Primitives and Definitions In a platform-dependent economy, a **sink** is a mechanism that removes virtual currency from circulation, thereby controlling inflation and maintaining the perceived value of in-game items. The **cost model** of a sink...
2,968
# Pivot Offset Math: Caching and Invalidation ## 12.1 Primitives and Definitions In a large-scale multiplayer environment such as a pirate MMO, ship positioning relies on `CFrame` arithmetic to maintain relative offsets between a parent vessel and its crew members or attached structures. The fundamental primitive is ...
1,643
## Permission Hooks and Idempotent Data Backfill in High-Throughput Environments ### 14.1 Primitives and Definitions **Permission Hook**: A server-side interceptor registered within the `Cmdr` library that evaluates a boolean predicate before executing a command handler. The hook receives the `Player` instance, the c...
2,483
# Metatable Sandboxing in Concurrent Roblox Environments ## 14.1 Introduction and Scope Metatable sandboxing in Roblox Luau involves the strategic use of `__index`, `__newindex`, and `__mode` metamethods to isolate module state, enforce access control, and prevent unintended mutation of shared data structures. In lar...
2,645
## Actor Code Containment Rules and Security Review ### 14.1 Primitives and Definitions **Actor Model.** In the Roblox engine, an *actor* is a script instance (e.g., `LocalScript`, `ModuleScript`, `Script`) that executes within a specific isolation boundary. The primary containment rule is that actors must not mutate...
2,519
## LocalScript Run-Context Selection: Observability and Metrics ### 7.1 Primitives and Definitions **Run Context.** In the Roblox engine, a `LocalScript` executes within a specific client-side execution context. The run context determines the scope of available services, the visibility of `Instance` hierarchy changes...
1,694
# Regression Testing for Reactive UI Frameworks Under Constraint ## 14.1 Introduction and Scope This chapter establishes the canonical methodology for designing regression tests for the Rex reactive UI framework within high-stakes, resource-constrained environments. The primary scenario involves a hospital simulation...
3,271
# Place File Differencing, Versioning, and Compatibility Under Ephemeral Storage Constraints ## 14.1 Introduction and Problem Definition In large-scale Roblox platform engineering, place file differencing refers to the process of computing minimal deltas between versions of a place asset (`.rbxl` or `.rbxmx`) to opti...
3,568
## 1. Primitives and Constraints This chapter defines the error-handling taxonomy for `Enum.SearchAttribute` dispatch in the context of server-side validation for a hospital simulation. The system operates under a hard constraint of a 16MB asset payload budget on first join for console platforms. The primary domain ob...
1,869
## 1. Primitives and Definitions This chapter defines the canonical backpressure design pattern for Iris-style asynchronous stacks within the Roblox developer ecosystem. The primary primitives are the **Bounded Queue**, the **Yielding Consumer**, and the **Backpressure Signal**. The hard constraint governing all desig...
2,113
# Avatar Price Recommendations: Versioning and Compatibility ## 14.1 Introduction and Scope This chapter addresses the deployment of machine learning models for avatar price recommendations within a complex simulation environment, specifically an airline simulator featuring live schedules. The central problem is the ...
3,495
## 1. Primitives and Hard Constraints The Iris Table API operates as a distributed key-value store with strict per-minute operation budgets. The fundamental primitive is the **point read/write**, which scales at a rate of approximately 60 + 10 per player per minute. **Ordered listings** (range scans) are subject to si...
2,770
# Bundle Analyzer Treemaps and Production Failure Modes in Roblox TypeScript ## 14.1 Introduction and Scope In large-scale Roblox TypeScript applications, the `roblox-ts` compiler generates Luau modules that are loaded by the engine’s module loader. The bundle analyzer treemap visualizes the static size and dependenc...
2,837
## Actor Worker Pool Sizing, Batching, and Amortization ### 14.1 Primitives and Definitions **Actor Worker Pool**: A finite set of server-side execution contexts (coroutines or task-based workers) responsible for processing replicated state changes, physics queries, or network packet serialization for a logical entit...
2,505
End of preview. Expand in Data Studio

Roblox Luau Corpus

Dataset Summary

Synthetic data generated & rewritten by a capable open-weight model with a knowledge cutoff of January 2026.

  • Generation config: temperature=1.0, top_p=0.95, top_k=64, max_tokens=5120, model_max_context=8192
  • Speculative decoding: {"method":"dflash","num_speculative_tokens":15} (DFlash2)
  • Hallucination-aware: Conditioned on verified documentation and context to minimize hallucinations and syntax errors.

This is a high-quality educational and synthetic dataset designed for pretraining and fine-tuning small language models on Roblox Luau development.

Dataset Statistics

Metric Value
Rows 189,921
Total tokens 466,709,847
Mean tokens / row 2,458
Min / max tokens per row 414 / 5,753
Total characters 1,858,197,458
File size ~1.76 GiB

Dataset Features

  • text (string): The generated Luau code and instructional text.
  • tokens (int64): Token count calculated using the Luau-Coder-1.0 tokenizer.

How to Load

from datasets import load_dataset

ds = load_dataset("khtsly/roblox-luau-corpus", split="train", num_proc=8)
print(ds[0])

Limitations

  • Outputs are generated by an open-weight model and may occasionally contain syntax errors, deprecated Luau APIs, or hallucinations.
  • Long context inputs may be truncated to fit the context budget.
  • Per-config document totals are slightly below source counts due to filtering out malformed or incomplete generations.
  • Rows from the two generation arms have different length profiles: synthesized rows average ~2.5k tokens, rewritten documentation rows ~1.2k.

Citation

If you use this dataset in your research or project, please cite it as:

@misc{khtsly2026robloxluau,
  author = {khtsly},
  title = {Roblox Luau Corpus},
  year = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{[https://huggingface.co/datasets/khtsly/roblox-luau-corpus](https://huggingface.co/datasets/khtsly/roblox-luau-corpus)}},
  url = {[https://huggingface.co/datasets/khtsly/roblox-luau-corpus](https://huggingface.co/datasets/khtsly/roblox-luau-corpus)}
}
Downloads last month
170