Repository navigation
Releases
Releases · JXW666NB/TGAI-ORV
tgai-orv 1.0.30
PyTorch-free LLM training / inference engine — train and infer with one codebase.
Install
pip install tgai-orv==1.0.30
What's new since 1.0.28
1.0.29 — trainer now implements the real V3 architecture (opt-in)
--attn-res [--attn-res-block N]:BlockAttnRes four-stage layer loop--moe-post-norm:RMSNorm on the routed output before the shared expert--qk-norm:QK-Norm on global layers before RoPE (CSA layer already has it)forward_lossandforward_logitsare now bit-identical on the same weights;
vs PyTorch full-V3: logits rel diff 3.4e-6, step-0 loss diff 1.8e-6
1.0.30 — K3 quantile balancing + pad_token_id
--moe-balance quantile:sigmoid affinity + renormalisation inside the selected set- per-step expert-bias update after
opt.step()
- per-step expert-bias update after
--pad-id N:nn.Embedding(padding_idx)semantics (row stays zero, no gradient)- Operator-level parity vs PyTorch: routing/gates 1.19e-7, bias update bit-identical (0.0)
- 1.5B-parameter run on a single V100: 20.16 GiB peak, 0.40 s/step
1.0.28
MANIFEST.inkeeps repository-only directories out of the PyPI sdist
Verified
- Local suite: 1198 passed / 66 skipped
- Default path (no new flags) is bit-identical to 1.0.26:
11.698156 / 11.659061 / 11.651151 / 11.706464 - Parity reports:
docs/V3_FAITHFUL_PARITY.md,docs/PYT_COMPARE_2026-11-24.md