TorchSpec icon indicating copy to clipboard operation
TorchSpec copied to clipboard

Development Roadmap (2026 Q2)

Open yubofredwang opened this issue 8 months ago • 5 comments

TorchSpec Roadmap 2026 Q2

Model Support

  • [x] Minimax M 2.5

Training

  • [ ] Packed sequence training: pack multiple shorter sequences into a single training sample to maximize GPU utilization and reduce padding waste, especially for datasets with variable-length inputs
  • [x] Additional training methods: expand beyond Eagle3 to support DFlash, MTP, and other speculative decoding training approaches, broadening the range of draft model architectures TorchSpec can train
  • [x] LK Loss (PR #29): add LK^alpha and LK^lambda losses for direct acceptance rate optimization, improving average acceptance length by 3-8% over Forward KL on Eagle3
  • [x] Context Parallel under DP ranks: support context parallelism within data-parallel ranks
  • [x] FlexAttention native FA4 backend (Issue #30): adopt BACKEND="FLASH" in FlexAttention to unify the flex_attention and fa_experimental code paths, replacing manual CuTeDSL integration with a stable PyTorch API for FA4-level performance on Hopper/Blackwell GPUs

Inference

  • [x] TensorRT-LLM integration: add as an inference backend alongside SGLang and vLLM so users can plug in whichever engine best fits their deployment stack
  • [ ] Inference auto-expansion: automatically scale inference when more nodes become available
  • [x] Support chunked-prefill: Support chunked prefill to allow longer context

Framework

  • [ ] Placement group node pinning by IP: allow users to pin inference to specific nodes by IP, with finer granularity for multiple inference engines on the same node
  • [x] Automatic Mooncake config determination: derive Mooncake transfer config from batch size and max sampling pool size; auto-compute max sampling pool size as global_batch_size * delay_deletion_ratio
  • [ ] Debugging mode: add a debugging mode for both inference and training sides
  • [ ] Colocate Training: design and implement colocate training

yubofredwang avatar Mar 07 '26 01:03 yubofredwang

Hey @yubofredwang, how do you feel about colocating training and infrerence in the same GPU optionally for some users? Is it possible to launch two processes using a single GPU and training run while taking turns? This could be useful for development, small experiments or researchers, especially when inference/training utilization is imbalanced and user only has access to a limited set of nodes.

Dogacel avatar Apr 28 '26 16:04 Dogacel

Hi @Dogacel, yes there is a issue tracking the work https://github.com/lightseekorg/TorchSpec/issues/81. @zhubohao911 is currently working on it.

yubofredwang avatar Apr 28 '26 17:04 yubofredwang

Does it make sense to allow the configuration of a dedicated inference engine? For instance, one could utilize the production inference engine—pausing training during traffic peaks and resuming full-speed training during traffic troughs.

lengrongfu avatar Jun 01 '26 06:06 lengrongfu

Hi @yubofredwang , I am recently using TorchSpec and would like to work on the TRTLLM integration. Looks like it can be done similarly to the SGLang support with a small patch.

chungen04 avatar Jun 02 '26 17:06 chungen04

@yubofredwang and @Dogacel will release a Q3 roadmap soon.

lightseek-bot avatar Aug 11 '26 21:08 lightseek-bot