Releases
v1.3.13
Compare
Sorry, something went wrong.
No results found
Breaking
Remove GenerationRequest class and generate_with_request method
Change default attention backend priority from flash>cuda>torch to cuda>flash>torch
JsonlStore.load() requires explicit transform= for eager mode (auto-creation moved to DatasetFactory)
CUDA graph capture enabled by default at Executor init
Features
CUDA graph capture for decode forward step (1.75-2.11x speedup)
attn_paged_decode kernel out_buf parameter for graph-safe output
supports_graph() on AttentionBackend ABC, overridden by CudaBackend
ASTR_BACKEND env var for default backend override (cuda|flash|torch_native)
timed() context manager (ASTRAI_TIMED=1) for per-phase wall-clock profiling
Backend supports() static method on each backend class
FlashAttnBackend decode uses flash_attn_with_kvcache for contiguous cache (1.40x vs torch_native)
Refactors
Merge streaming/non-streaming generation into single _generate(stream=bool)
Replace flash-attn double-checked locking with @functools.lru_cache
Extract _write_and_gather_kv() shared between TorchNative/FlashAttn backends
Replace isinstance(get_backend(), CudaBackend) with get_backend().supports_graph()
Add _BindState dataclass + _is_steady_increment() shared between Executor/PagePool
CudaBackend.supports() now includes torch.cuda.is_available() guard
Replace bare-tuple _decode_cache with DecodeSteadyState dataclass
Break JsonlStore → preprocessing circular dependency (transform routing moved to DatasetFactory)
Fixes
FlashAttnBackend dtype guard in _backend_supports (was missing fp32 check)
Scheduler test fixture uses bf16 model instead of fp32 (avoids 3-step fallback)
test_default_backend_resolves_to_available renamed from misleading _torch_native
Docs
Sync all documentation with current codebase (class diagrams, backend hierarchy, API references)
Fix python -m scripts.tools.server → direct script call
You can’t perform that action at this time.