Skip to content

Releases

RLX 0.2.0

Choose a tag to compare

@ncdrone ncdrone released this 03 Dec 22:11

RLX 0.2.0 release notes

RLX 0.2.0 adds the trainers to the rlx program: rlx train picks the trainer from the model directory, rlx data prepare makes the training files, and rlx score reads the result three ways. It trains adapters (LoRA) on Inkling 2 Mini on one DGX Spark (GB10) and on GLM-5.3-Flash and DeepSeek-V4-Flash on two. The two boxes talk over TCP by default and RDMA is optional. Licence: Apache-2.0.

What you can do

Model Run it Train an adapter Boxes
Inkling 2 Mini yes yes 1
GLM-5.3-Flash yes yes 2
DeepSeek-V4-Flash trainer scoring passes yes 2
Bonsai 27B yes no; an adapter trained with PyTorch and PEFT runs with rlx run --adapter 1

Generation with a trained adapter

A GLM-5.3-Flash or DeepSeek-V4-Flash adapter can be scored by the trainer but not yet used for generation: rlx run --adapter on a GLM-5.3-Flash directory is not in this release, and nor is generation with a DeepSeek-V4-Flash adapter. Training and scoring work for both. An adapter trained with PyTorch and PEFT on Bonsai 27B, and an adapter trained on Inkling 2 Mini, run with rlx run --adapter.

Measured

  • TCP against RDMA, DeepSeek-V4-Flash: the first 100 training steps and a whole scoring pass over TCP were bit-identical to the RDMA run. The step was 2.5% slower (7,442 ms against 7,262 ms) over the same 200 Gb/s cable; a slower network will wait longer. Not measured for GLM-5.3-Flash.
  • DeepSeek-V4-Flash, two boxes: adapters on the attention output projection of the top four layers, rank 32, 808 steps. On 2,000 held-out questions the count of right answers with the label mix removed went from 1,148.8 to 1,224.2: +75, 95% interval +38 to +112. A second run reproduced the first bit for bit (every evaluation line, the checkpoint files at steps 400, 800 and 808, the final scoring pass). 7.2 s a step (555 tok/s). Memory: head box 81 GiB planned, tail box about 93 GiB measured.
  • GLM-5.3-Flash, two boxes: the validated recipe (the attention projections on layers 39 to 44, 24 sites, rank 32) gave +124 on the same measure, interval +86 to +164. Memory: head 96 GiB, tail 71 GiB of plan plus the training state.
  • Inkling 2 Mini, one box, the validated run on the real model and the MedMCQA data set: 378 steps. Held-out loss within 0.003 nats of the PyTorch curve at every measured step (final 1.8802 against 1.8786); the adapter through the serving engine within 0.001 nats of the trainer's own figure. 1,081 tok/s; peak memory 29.1 GiB. Earlier, on a public intent set (banking77, 500 held-out rows): 382 right with the stock model, 405 after training on RLX, at 1,193 tok/s against 653.2 tok/s for PyTorch + PEFT (steps only) and 29.6 GiB against 62.6 GiB; see the README.
  • Scoring: rlx score prints the raw count, the count with the label mix removed (a mean over 20 random halvings, so it varies by a few rows with the random split), the cross entropy, and for each pair the difference with its 95% interval. Trust the paired difference first. --choices-form one gave the same picks as the four-sequence form on a trained adapter (0 of 2,000 differed at two checkpoints) in a quarter of the time.
  • Training energy of the DeepSeek-V4-Flash run is not reported: one power meter gave stale readings during it. The two scoring passes were measured: 33.4 Wh before and 28.8 Wh after (0.0291 and 0.0235 Wh per right answer with the label mix removed).

Known issues

  • (a) Inkling 2 Mini GPU decode picks a different expert than the CPU reference on near-ties in the router, so the two ink2_gpu_decode reference-agreement tests fail: whole_token_gpu_decode_matches_the_interpreter (post-loop mean error 0.0767 against a bound of 0.063) and generation_of_24_tokens_gpu_against_the_interpreter (the argmax differs at the second generated token, on a near-tie). The measured effect on loss in an earlier run was 0.003 nats; a trained adapter's held-out loss through this path matches the trainer's within 0.001.
  • (b) ink2_gpu_adapters::live_adapters fails on a speed check only. The test checks the gap between the stock model and a run with live adapters on all layers, each scored against the test's own reference rate: a measured memory-bus rate of 234.9 GB/s over the bytes the run reads per token (41.0 tok/s for the stock model). The stock model reaches 83.0% of its reference rate and the adapter run 80.3% of its own: a gap of 2.7 points against a bound of 1.5.
  • (c) Three GPU checks of the Inkling 2 Mini trainer that compare against CPU-reference files were not run for this release.
  • (d) rlx plan refuses an Inkling 2 Mini directory with model_type "inkling2_loop" has its own config type.
  • (e) Test code and some doc examples still carry default paths of the maintainers' machines.
  • (f) Training energy for the DeepSeek-V4-Flash run is not reported (see Measured).
  • (g) The engine's CPU reference backend allocated memory in every step when a program was built after the row-gather operator was added; the decode path was affected. A one-line fix is in this release.
  • (h) Two tests of rlx-ref, grad_deepseek_v4_cut and grad_deepseek_v4_attention_backward, take hours in the unoptimised test stage of scripts/gates.sh: the attention test passed after 3,488 s, and the cut test had not finished after 10,504 s. Built optimised (cargo test --release -p rlx-ref --test <name>) on the release tree, the cut test passes in 356 s with its 234 figure lines identical to earlier runs, and the attention test passes in 241 s. See CONTRIBUTING.md.
  • (i) The test plan_only_succeeds_on_the_tiny_deepseek_v4_fixture (the commands tests of rlx-cli) is ignored: the tiny test fixture's config lacks keys that the DeepSeek-V4-Flash trainer's memory plan reads. This is a gap in the test fixture, not a fault of the trainer.

Not in this release

Bonsai training; the trainers' options as structured help; an example result on public data.