Skip to content

v1.3.5

Choose a tag to compare

@ViperEkura ViperEkura released this 15 May 11:34
· 812 commits to main since this release

v1.3.5 Release Notes

Refactor

  • Rewrote training loop: fixed step/backward ordering, restructured as triple-nested loop (epoch → accumulation window → batch)
  • Extracted BaseStorage abstraction for JSON raw text data loading
  • PagedCache Facade pattern: extracted PagePool/PrefixCache/TaskTable
  • Decoupled Executor/Scheduler/TaskManager, removed ServerState global singleton
  • Unified RotaryEmbedding cos/sin into a single complex buffer (freqs_cis)
  • Eliminated redundant patterns across the codebase, unified factory and parameter passing

Features

  • GRPO CLI integration with on-policy training
  • OpenAI/Anthropic-compatible APIs, Docker Compose one-click deployment (GPU/CPU dual mode)
  • Prefix cache with LRU eviction for inference engine
  • _generate_streaming now supports batch mode
  • Checkpoint extra field for user-defined extensible save/load
  • top_k parameter exposed to OpenAI-compatible API

Bug Fixes

  • Fixed incorrect step/backward order in training loop
  • Fixed in-place write alias error in process_attention_mask after expand
  • Fixed MultiSegmentFetcher crash on empty dict; replaced BaseDataset asserts with explicit raises
  • Fixed page cache allocation OOB crash and length overflow termination
  • Fixed prefill attention mask length mismatch causing expand crash
  • Fixed max_seq_len check: only send STOP on prompt overflow; clamp max_tokens instead
  • Fixed multiple correctness and concurrency issues in batch decode
  • Added chat template and system prompt to batch inference example

Performance

  • DDP: enabled gradient_as_bucket_view/static_graph/broadcast_buffers, AdamW fused
  • Replaced waiting_queue list with deque; pull_candidates from O(n²) to O(1)
  • apply_rotary_emb switched to complex multiplication
  • Eliminated GPU sync in RotaryEmbedding.forward position_ids lookup
  • Eliminated GPU sync in PagedCache.write position_ids derivation (~15% decode speedup)
  • Vectorized gather operation

Tests

  • Added 13+ edge case tests
  • Completed unit test coverage for inference module: cache, sample, engine, task
  • Test optimizations: session-scoped model, Event-based scheduler sync

Docs

  • Fixed class names, method signatures, and module references across 6 doc files
  • Added training parameter tables
  • Added model download steps to README