and infrastructure
to training and inference at scale
Research
High-velocity research, from experimental prototypes to controlled testing at scale.
- Reinforcement learning
- Reward modelling
- Post-training
- RL environments
- Long-horizon RL
- Evals
Engineering
Engineering spanning research tooling, training frameworks and production systems, in Python, Rust and Go.
Infrastructure spanning GPU, TPU and Trainium clusters, for research, training and inference.
- def group_advantages(rewards, eps=1e-4):
- # advantage is the reward’s z-score within its group
- mean = rewards.mean(dim=-1, keepdim=True)
- std = rewards.std(dim=-1, keepdim=True)
- return (rewards – mean) / (std + eps)
- def policy_loss(logprobs, old_logprobs, advantages, mask, clip=0.2):
- ratio = (logprobs – old_logprobs).exp()
- unclipped = ratio * advantages
- clipped = ratio.clamp(1 – clip, 1 + clip) * advantages
- per_token = -torch.min(unclipped, clipped)
- return (per_token * mask).sum() / mask.sum().clamp(min=1)
- def kl_to_ref(logprobs, ref_logprobs, mask):
- return (((ref_logprobs – logprobs).exp() – 1) * mask).sum() / mask.sum()
- fn select_replica(replicas: &[Replica], req: &Request) -> Option<usize> {
- let candidate = replicas
- .iter()
- .enumerate()
- .filter(|(_, r)| r.healthy && r.queue_depth < r.max_queue)
- .min_by_key(|(_, r)| {
- let prefill = r.prefill_cost(req.prompt_tokens);
- let reuse = r.prefix_match(&req.prefix_hash);
- projected_ttft(r.queue_depth, prefill, reuse)
- })
- .map(|(i, _)| i);
- // no healthy replica under queue limit: shed rather than queue
- candidate.or_else(|| fallback_replica(replicas, req))
- }
- export const load = async () => {
- const res = await fetch(“/api/runs?status=active”);
- return { runs: await res.json() };
- };
- export const curves = (run) =>
- run.steps.map((s) => ({
- step: s.global_step,
- reward: s.reward_mean,
- kl: s.kl_to_ref,
- entropy: s.entropy,
- }));
- export const diverged = (run) =>
- curves(run).some((p) => !Number.isFinite(p.reward));
Projects
Post-training platforms
Asynchronous online RL, from research experiments to frontier-scale distributed training
RL environments
Single-step to long-horizon agentic environments across code, SWE, terminal and tool use, with synthetic tasks and graders
Data pipelines
Petabyte-scale ingestion and task pools, with deduplication, decontamination, filtering and indexing
Accelerator clusters
GPU, TPU and Trainium clusters, node health, gang scheduling and goodput-optimised inference serving
AI research
RL/ML research for the UK Government’s innovation agency (Innovate UK) in partnership with the Alan Turing Institute.
AI research
AI standards
Developed AI systems featured as case studies published by the British Standards Institution (BSI), the UK’s national standards body.
AI standards
Product engineering
An ML-driven workflow platform engineered through to acquisition by a frontier AI lab.
Product engineering
Cross-sector work
Work across regulated and high-assurance environments, from research to scale.
Cross-sector work
Clusters at scale
GPU, TPU and Trainium clusters for research, training and inference, running at 92% goodput with automated repair cutting interruptions 3.4x.
Clusters at scale
Experience
Experience includes RL/ML research for the UK Government's innovation agency in partnership with the Alan Turing Institute, an ML-driven platform acquired by a frontier AI lab, and work featured as case studies by the British Standards Institution (BSI).

