Skip to content

v1.3.8

Choose a tag to compare

@ViperEkura ViperEkura released this 05 Jul 11:41
· 666 commits to main since this release

Changelog

v1.3.8 (2026-07-05)

Features

  • LoRA fine-tuning module with low-rank adapter injection and persistence
  • Tool-call parsing layer with vLLM-style BaseToolParser/SimpleJsonToolParser
  • ROUGE, IFEval, IFD, HumanEval evaluation scripts
  • WSD learning rate scheduler
  • BFD bin-packing strategy for data preprocessing
  • JSONL dataset store (JsonlStore) with on-the-fly tokenization
  • Preprocessing pipeline with position_ids precompute and DPO/GRPO multi-output
  • val_split/val_step/metrics/log CLI args for training
  • NEFTune noise injection in Embedding
  • SVD weight analysis script
  • scheduler min_rate default unification
  • Gradient checkpointing support in training script
  • load_json/load_safetensors broadcast mechanism for cross-node distributed loading

Refactors

  • Unified serialization layer into astrai.serialization package, moved dataset I/O out of storage.py
  • Inference API: tool parser dependency injection, lazy FastAPI singleton, GenContext.created fix
  • MetricCallback: merged validation, event-typed logging, optimizer-step granularity
  • Trainer: replaced iteration tracking with consumed_samples, grad_norm moved to executor
  • Pipeline: strategy-based packing/position-id/writer, eliminated _flush if/else branches
  • Executor: unwrap_model returns state_dict directly, clip_grad_norm unified, use_orig_params hardcoded
  • Launch strategy refactored with TorchrunStrategy/LocalStrategy, local_rank decoupled
  • DecoderBlock: accepts config object instead of 16 individual params
  • BaseFactory: generic type auto-resolution, dead code cleanup
  • Compacted test code, removed Muon optimizer, upgraded torch 2.11.0+cu128

Fixes

  • SFT pipeline position_ids default & doc boundary preservation
  • bool attention mask with packed SFT doc boundary masking
  • Preprocessing pipeline: 4 critical issues resolved
  • Scheduler: division-by-zero, loss_mask bool casting
  • Sampler: reset iter at epoch end for correct progress bar
  • Checkpoint: consumed_samples restores sampler position; unwrap DDP/FSDP avoids module. prefix
  • Storage: multi-shard meta.json recursive discovery
  • ForwardRef._evaluate Python 3.12 compatibility
  • MMLU: chat template formatting matched to SFT training
  • Created timestamp, bin multi-shard overwrite
  • generate.py: standardized CLI interface
  • Early abort on task_extend failure; improved scheduler crash cleanup

Docs

  • architecture.md: removed TrainConfig.log_interval from class diagram, split KVCache into abstract + PageCache/ContiguousCache, split KvcacheView into CacheView + PageCacheView/ContiguousCacheView, added JsonlStore, fixed GradientCheckpointingCallback type and CheckpointCallback typo
  • training.md: added position_ids to SFT strategy keys, fixed callback hook table to match actual hooks, removed merged ValidationCallback
  • inference.md: replaced single KVCache facade with ContiguousCache (default) and PageCache (paged) documentation
  • dataflow.md: added JsonlStore to storage backends and format detection
  • params.md: removed nonexistent --log_interval parameter
  • preprocessing.md: updated timestamp

Tests

  • Completed inference protocol layer unit test coverage
  • Added LoRA module tests
  • Filled storage layer test gaps
  • Added SFT test data with position_ids field
  • Added tool parser tests