Skip to content

v1.3.11

Choose a tag to compare

@github-actions github-actions released this 26 Jul 17:33
· 545 commits to main since this release

CUDA Kernels

  • MMA decode supports arbitrary GQA ratio (was crash for G>32, scalar fallback for G>16)
  • __launch_bounds__ on all MMA and prefill kernels for register allocation hints
  • 4x vectorized combine kernel (4 head_dim per thread, grid launch reduced 4x)
  • .L2::128B cache hint on all cp.async PTX
  • uint4 vectorized K loads in scalar decode kernels
  • Unified dispatcher header: compile-time kernel traits + causal/mask dispatch
  • Fixed alloc_split_partials using uninitialized num_splits → always allocate with MAX_SPLITS=32
  • Extracted warp_reduce_sum, bf16, MAX_SPLITS to attn_warp_utils.cuh

Training

  • FSDP2Executor using torch.distributed.fsdp.fully_shard (no FlatParameter wrapper, zero use_orig_params hack)
  • Online rollout framework for RL strategies (RLOO/GRPO)
  • SIGTERM/SIGINT auto-checkpoint with DDP support
  • BaseExecutor.prepare refactored: model/optimizer/scheduler via factories
  • train_context.py rewritten for checkpoint-before-wrap ordering
  • Default max_grad_norm=1.0

Inference

  • Attention dimension dispatch: MAX_DIM=256 fast path vs generic path
  • Eliminated GPU syncs in contiguous cache write/gather hot paths
  • KV-cache path unified for rollout and inference engine
  • Attn_mask and loss_mask separated in get_logprobs
  • Causal masking composed in strategy

Preprocessing & Data

  • Batch tokenizer encoding and apply_chat_template
  • Direct SFT from JSONL without dataset_config.json
  • LoRA created on base weight device instead of CPU
  • Config field names aligned with HuggingFace convention

Misc

  • Simplified attention mask handling (mask=None for full causal)
  • LoRA injection before checkpoint state_dict loading
  • Binary encode/decode utilities for dataset storage binding
  • Dedup conversion in sampling API
  • Comprehensive tests: 355+382 lines for online strategy and rollout

Test Coverage

  • All 22 CUDA kernel tests pass
  • All 202+ Python inference tests pass
  • New: signal handler tests, online RL e2e/strategy/rollout tests