Under reviewPreprintActionable Interpretability Workshop · CoLM 2026

LayerRoPE

Depth Encodings Enable Deeper, More Stable and Efficient Transformers

TL;DRTransformer norm weights carry an emergent depth encoding: in 16 pre-trained LLMs, a layer’s depth can be read from its norm weights γ alone. LayerRoPE makes this encoding explicit, with a depth-conditioned magnitude and RoPE-style rotation of one shared gain. At Pre-Norm’s cost, it outperforms mHC and Attention Residuals on DepthBench, and reaches Pre-Norm’s 1.3B loss with 3.4× less compute. Surprisingly, it does this by amplifying residual variance (and regulating block I/O), rather than damping it.

variance residual stream xℓ xℓ+1 RMSNorm ÷ RMS(x) ⊙ γℓ Attention / MLP ⊙ γℓ writes scale up reads scale down γL−1 γ0 γ γ γℓ LayerRoPE γℓ = γ ⊙c er(ℓ)+iθ(ℓ) shared mag + rot
The LayerRoPE block. Each block’s read and write gains γℓ come from one shared γ, scaled and rotated with depth; LayerRoPE learns to scale reads down and writes up.
DepthBench · 400M · 16–32 layers
LayerRoPE on a plain Pre-Norm backbone outperforms mHC and Attention Residuals, at Pre-Norm’s cost
It adds no memory I/O, activation memory or pipeline communication, and no FLOPs by DepthBench’s count. Added to Block Attention Residuals, it has the lowest loss of all twelve methods at every width–depth shape, setting a new loss–cost Pareto frontier.
See the DepthBench results ↓
MethodLossMemory I/OActivations
LayerRoPE + Block AttnRes2.6802.1×8×
HC2.71211×4×
LayerRoPE + Pre-Norm2.7151×1×
mHC2.71911×4×
Block AttnRes2.7242.1×8×
AttnRes2.7294.7×48×
Pre-Norm2.7681×1×
Loss: mean over the five shapes. Memory I/O and activation memory per token, relative to Pre-Norm. HC: Hyper-Connections; AttnRes: Attention Residuals.
16 / 16
pre-trained LLMs encode depth in their norm weights, readable to within about one layer
3.4×
less compute to reach Pre-Norm’s 1.3B loss
512
layers, and the only method with strong convergence and near-monotonic improvement with depth
3–10×
lower learning-rate sensitivity, at every scale and on both Pre/Peri-Norm backbones
1 Finding

Norm weights encode depth

A Transformer has one learned per-layer gain that acts directly on what each block reads from, or writes to, the residual stream: the normalization weight γℓ ∈ ℝᵈ. It scales the reads in Pre-Norm models, the writes in Post-Norm models, and both in Peri-Norm models. Every γℓ starts identical and is untied across layers, so any dependence on depth it shows is learned.
Across 16 open-weight LLMs from 9 families (dense, mixture-of-experts, parallel-branch and hybrid linear-attention; Pre-, Peri- and Post-Norm), the norm weights shift with depth in both magnitude and direction, systematically enough that a layer’s depth can be read from γℓ alone:

Magnitude is depth-conditioned. The mean and upper percentiles of γ shift systematically with depth: rising in 10 of the 16 models, and U-shaped in the other 6.
Direction is depth-conditioned. We observe that the normalized gain \gamma_\ell / \lVert \gamma_\ell \rVert also shifts steadily with depth. MDS projections, shown below, order the layers along a coherent arc: a clear directional shift with depth. This is not a rigid rotation, however. See1
Depth, decoded. We test this directly: fit how γℓ varies with depth on all other layers, decode the held-out layer’s depth, and compare against shuffled depths. Direction alone recovers depth to within a median of 1.1 layers, against 11.1 when shuffled, and beats every shuffle in every model (Figure 2).

Figure 1
An emergent depth encoding in the norm weights
Model
(a) Magnitude with depth{{ f1.meta }}
γ value, per layer
{{ t.label }}
{{ t.base }}
{{ vio.tip.title }}
{{ t.text }}
Layer index · dashed line: mean{{ vio.note }}
(b) Direction with depth{{ f1.meta }}
MDS projection of per-layer γ, one ray per layer
{{ l.label }}
{{ rot.tip.title }}
{{ t.text }}
firstlast layer{{ rot.note }}
Figure 1 · {{ f1.name }}. (a) Per-layer distribution of MLP-block RMSNorm weights γ: the magnitude shifts systematically with depth, in some cases near-monotonically. (b) MDS projection of the same per-layer γ vectors, reflected so the first layer points right: successive layers occupy neighbouring positions, tracing a depth-ordered arc that shows a steady directional shift. Angles are measured in the 2-D projection around the layers’ centre, not between the γ vectors themselves. The readout gives each model’s decoding error (Figure 2). In Qwen2.5, Qwen3.5 and Gemma the arc is hard to see, yet depth still decodes from their norm weights.
Figure 2
Depth, decoded from the norm weights alone
{{ g.label }}
{{ dec.rd.title }} {{ d.k }} {{ d.v }}{{ d.n }}
{{ r.name }}
{{ t.label }}
Error decoding a held-out layer’s depth, in layers (lower is better)
Figure 2. For each layer of each model, we fit how γℓ varies with depth on all other (interior) layers and decode the held-out layer’s depth from its direction (filled) or its magnitude (hollow) alone. Grey ticks repeat this with shuffled depths (median over 10⁴ shuffles). In the MLP norms, direction beats every shuffle in every model (p < 10⁻⁴); the attention norms encode depth too. Hover a row for its numbers.
2 Method

LayerRoPE: an explicit depth encoding

LayerRoPE makes this depth encoding explicit. Instead of storing L independent vectors γℓ, it generates every layer’s gain from one shared γ ∈ ℝᵈ per site, through a depth-conditioned magnitude and a rotation spread across RoPE’s frequency spectrum:

γℓ = γ ⊙ c(ℓ), c(ℓ, j) = e^r(ℓ) · e^(iθ(ℓ, j))(1)
Magnitude r(ℓ) = α + β log(ℓ+1) Rotation θ(ℓ, j) = exp(α + β log(ℓ+1)) · b₀^(−2j/d)
x ← x + γ_out ⊙ F(γ_in ⊙ x̂)(2)

LayerRoPE can thus be simply interpreted as a depth-conditioned scaling and rotation of γ in the complex plane. Reading the real gain as d/2 complex pairs \tilde\gamma_j = \gamma_{2j} + i\,\gamma_{2j+1}, the magnitude scales all pairs equally through a log-linear schedule (the shared trajectory found above), while the rotation spreads a per-layer base angle across pairs with RoPE’s fixed spectrum, b₀ being the base frequency.

LayerRoPE sits at four sites, the read and the write of every attention and MLP block (Eq. 2), so it regulates how each block reads from and writes to the residual stream, rather than the stream itself. Four scalars per site replace O(Ld) per-layer gain parameters with O(d).

Figure 3 · Interactive
The learned depth encoding
{{ t.label }}
shared γ
θ
Layer ℓ{{ dial.L }}of 24 · 1.3B model
Magnitude{{ dial.mag }}{{ dial.rel }}
Rotation{{ dial.ang }}highest-frequency pair
Across the rotation spectrum · pair j turns by θ(ℓ)·b₀^(−2j/d), b₀ = 100
{{ s.ang }}
{{ s.f }}
layer 0drag, or use ← →layer 23
Figure 3. Learned schedules from the trained 1.3B models. Left: one feature pair of the shared γ (dotted, at ×1) mapped to its gain at layer ℓ: scaled by e^r(ℓ) (radius, log scale) and rotated by θ(ℓ); faint rays trace every other layer. Reads shrink with depth while writes grow. Right: the same layer across the rotation spectrum.

Essentially free

4d + 16parameters replace 2Ld per-layer gains: 90K fewer than Pre-Norm and 188K fewer than Peri-Norm at 1.3B.
≤ 0.013%extra training FLOPs over Pre-Norm, ≈ 0 over Peri-Norm. No matrix multiplications; LayerRoPE is input-independent and computed once per forward pass.
One configfor every scale: depth slopes initialised at a fixed β, base frequency. Only the learning rate is tuned, as for every baseline.
LAYERROPE.PY · REFERENCE PYTORCH SNIPPET
import torch, torch.nn as nn

class LayerRoPE(nn.Module):
    """Depth-conditioned gains for one site (e.g. the attention read).
    One shared γ and four scalars replace L per-layer gain vectors."""

    def __init__(self, d, n_layers, base=100.0, beta_init=-0.5):
        super().__init__()
        self.gamma = nn.Parameter(torch.ones(d))  # shared γ
        self.a_mag = nn.Parameter(torch.zeros(()))
        self.b_mag = nn.Parameter(torch.tensor(beta_init))
        self.a_rot = nn.Parameter(torch.zeros(()))
        self.b_rot = nn.Parameter(torch.tensor(beta_init))
        j = torch.arange(d // 2)
        self.register_buffer("freq", base ** (-2 * j / d))    # RoPE spectrum
        self.register_buffer("log_l", torch.log(torch.arange(1.0, n_layers + 1)))

    def forward(self):                  # input-independent: once per pass
        r = self.a_mag + self.b_mag * self.log_l                 
        theta = torch.exp(self.a_rot + self.b_rot * self.log_l) 
        ang = theta[:, None] * self.freq                         
        c = torch.polar(torch.exp(r)[:, None].expand_as(ang), ang)
        g = torch.view_as_complex(self.gamma.view(-1, 2))        
        return torch.view_as_real(g * c).flatten(1)  # One LayerRoPE module per site
sites = [LayerRoPE(d, n_layers) for _ in range(4)]
attn_read, attn_write, mlp_read, mlp_write = (site() for site in sites)

# normalize(h) = h / RMS(h), i.e. RMSNorm without its own learned weight:
for layer, block in enumerate(blocks):
    h = h + attn_write[layer] * block.attn(normalize(h) * attn_read[layer])
    h = h + mlp_write[layer] * block.mlp(normalize(h) * mlp_read[layer])
Illustrative re-implementation of Eq. (1); see the paper for the exact configuration.
3 Results

Deeper, more stable and more efficient

Scaling ladder · 58M → 1.3B

Lowest loss at every scale

We train LLaMA-style models from 58M to 1.3B parameters on C4 at 4× the Chinchilla budget, up to 107B tokens. Every method, from Pre-, Post- and Peri-Norm to Layer-Norm Scaling (LNS) and LayerRoPE, gets its own learning rate, swept until the optimum is bracketed and extrapolated to 1.3B; LayerRoPE’s own hyperparameters stay fixed across scales.

LayerRoPE attains the lowest loss at every scale with the steepest compute exponent.

Figure 4
Compute scaling on a 4× Chinchilla ladder
{{ g.label }}{{ g.note }}
Final C4 validation loss
{{ t.label }}
{{ t.base }}{{ t.exp }}
{{ l.label }}
{{ cmp.tip.title }}
{{ t.text }}
Training compute (FLOPs) · top: model size
Figure 4. Every method at its own tuned learning rate. Curves are a joint fit L(C) = E + A_m C^{-\alpha_m} with a shared irreducible loss E = 1.81; the legend gives each exponent \alpha_m. Post-Norm is not fit: its best 554M run plateaus at > 4 nats and its 1.3B run fails to converge. 
Table 1
Zero-shot downstream accuracy
MethodARC-eHellaS.PIQABoolQOBQAWino.LMB.MMLUAvg ↑LMB ppl↓
{{ r.name }} {{ c.v }}
Table 1. {{ tbl.note }} Bold: best per column; underlined: second best.
DepthBench · 400M · width vs. depth

Outperforming mHC and Attention Residuals, at Pre-Norm’s cost

DepthBench fixes the parameter count at 400M and trades width for depth, from 16 layers of width 1216 to 32 layers of width 896. It compares ten methods under one recipe, each at its tuned learning rate: five that keep a single residual stream, and five that widen it into several streams or let each layer read earlier ones (Hyper-Connections, mHC, Attention Residuals, Block Attention Residuals and MoDA). We tune LayerRoPE once, at one shape, and apply it unchanged to two backbones, sweeping only its learning rate, as DepthBench does for every baseline.

On a plain Pre-Norm backbone, LayerRoPE has the lowest loss of all single-stream methods at every shape, and outperforms mHC and Attention Residuals on average while adding none of their costs. Added to Block Attention Residuals, it gives the lowest loss of all twelve methods at every shape, advancing the loss–cost Pareto frontier.

Figure 5
Loss at every width–depth shape
{{ g.label }}
Final evaluation loss
{{ t.label }}
{{ t.base }}
{{ t.exp }}
{{ l.label }}
{{ db.tip.title }}
{{ t.text }}
Depth L and width d at a fixed 400M parameters (deeper and narrower to the right)
Figure 5. Final evaluation loss on DepthBench’s held-out FineWeb-Edu split at each shape, every method at its tuned learning rate. One LayerRoPE configuration, tuned on Pre-Norm at 24 layers, is used at every shape and on both backbones. Baselines are DepthBench’s released checkpoints, evaluated with the same code as LayerRoPE. Hover the legend to isolate a method.
Figure 6
A new loss–cost Pareto frontier
At Pre-Norm’s cost−0.026lower loss: LayerRoPE + Pre-Norm vs. LNS, the best baseline at that cost
Lowest loss overall−0.032lower loss: LayerRoPE + Block AttnRes vs. HC, the best baseline at any cost
{{ g.label }}
gain from LayerRoPE
Final evaluation loss, mean over the five shapes
{{ t.label }}
{{ t.base }}
{{ l.label }}
{{ dbp.tip.title }}
{{ t.text }}
{{ dbp.xlabel }}
Figure 6. Mean loss over the five shapes against four costs of the residual pathway, counted as DepthBench counts them and, for memory and communication, as published for each method. LayerRoPE adds no cost to its backbone. The Pareto frontier is the lowest loss attainable at no more than a given cost: dashed for the baselines, red with LayerRoPE added, the gain shaded; arrows mark the two drops above. MoDA (+11.7–12.5% FLOPs) is omitted.
Depth · 48 → 512 layers

Strong convergence all the way to 512 layers

To isolate the curse of depth, we fix a narrow backbone (width 128) and vary only the number of layers, from 48 to 512 (18M–111M parameters), adding DeepNet, designed for very deep Transformers, as a baseline. Every other baseline degrades or fails with depth: Post-Norm diverges from 192 layers, Peri-Norm and LNS degrade beyond 96, and Pre-Norm stops improving after 256 and regresses at 512. DeepNet improves with depth, but remains well above LayerRoPE throughout.

LayerRoPE reaches the lowest loss at every depth, and an exhaustive per-depth learning-rate sweep confirms it, with every method at its own best rate.

Figure 7
Depth scaling
{{ g.label }}
Final validation loss
{{ t.label }}
{{ t.base }}
{{ l.label }}
{{ depth.tip.title }}
{{ t.text }}
Number of layers (log scale)
Figure 7. Fixed width 128, 48–512 layers (17.8M–111.1M parameters), 2.6B C4 tokens. Shared LR: one peak rate of 10⁻³ for every method; points are the mean of two seeds, bars span both (single seed at 512). Tuned LR: each method at its best rate from a per-depth sweep (one seed). The upper strip collects diverged runs.
Stability · 58M, 368M, 1.3B

A wider learning-rate basin, and later divergence

Sweeping the peak learning rate over two to three orders of magnitude, with and without LayerRoPE on both backbones, changes the loss curve in three ways:

  • 01Better optimum
  • 02Wider basin
  • 03Later divergence
Figure 8
Learning-rate basins
{{ g.label }}
Final validation loss
{{ t.label }}
{{ t.base }}{{ t.exp }}
{{ l.label }}
{{ lr.tip.title }}
{{ t.text }}
Peak learning rate
LR sensitivity · lower is better
Mean excess loss over the swept rates (Wortsman et al., 2024). ● with LayerRoPE, ● without; the number is the reduction in LR sensitivity.
{{ s.scale }}
{{ s.ratio }}
00.71.4
Figure 8. Final validation loss against peak learning rate with (solid) and without (dotted) LayerRoPE, at 58M, 368M and 1.3B scales. Rings identify the tuned optima LR for each scale. Runs with losses too high for the panel, or diverged, are omitted. Right: LR sensitivity drops 3–10× in every setting.
Residual scaling · 58M, 134M

Ahead of residual-scaling methods, and stable at higher rates

We also compare against methods that rescale the residual branches: Scaled Initialization and DS-Init, which shrink them at initialization, and LayerScale and SkipInit (ReZero’s scalar gate), which scale them by learned gains. Each is trained under the ladder protocol, its learning rate swept until the optimum is bracketed. LayerRoPE outperforms all of them at both scales; at 134M, LayerScale’s and SkipInit’s learned gains do not improve on Pre-Norm. Each diverges one learning-rate step above its optimum, while LayerRoPE trains stably at 4–8× higher rates.

Table 2
Against residual-scaling methods
Method58M loss134M lossHighest stable LR
LayerRoPE3.1182.8306.4×10⁻²
Layer-Norm Scaling3.1452.8581.6×10⁻²
Scaled Initialization3.1692.8921.6×10⁻²
DS-Init3.1672.8998×10⁻³
Pre-Norm3.1722.9088×10⁻³
LayerScale3.1672.9108×10⁻³
SkipInit3.1582.9108×10⁻³
Table 2. Validation loss of every method at its tuned learning rate under the scaling-ladder protocol, one seed per run (seed-to-seed standard deviations on the ladder are at most 0.016 at these scales). Highest stable LR: the largest peak rate on the ×2 sweep grid that trained without diverging, at 134M. Bold: best per column; underlined: second best.
Transfer · no tuning

Beyond language models: looped models and ViTs

With no tuning of their recipes, LayerRoPE carries over to two architectures far from the language-model ladder: a looped latent language model and Vision Transformers.

Looped language models

Parcae · FineWeb-Edu · T = 8

Parcae applies a recurrent block of layers T times to a latent state between an input and an output block. We train it at 140M, 370M and 770M parameters with its official recipe, beside a non-looped GPT of the same size, and apply LayerRoPE at every layer (each layer’s depth index is its position in the network, independent of the loop iteration), with magnitude slopes initialised at zero. Parcae + LayerRoPE is the best model on nearly every metric: lower validation perplexity, markedly lower Lambada perplexity at 140M and 370M, and higher average downstream accuracy.

Table 3 · Figure 9
Parcae with and without LayerRoPE
140M11.2B tokens
370M29.6B tokens
770M61.6B tokens
ModelVal ppl ↓LMB ppl ↓Avg ↑Val ppl ↓LMB ppl ↓Avg ↑Val ppl ↓LMB ppl ↓Avg ↑
GPT20.28105.629.915.0137.240.612.8020.847.0
Parcae18.6681.233.014.2232.543.412.4918.650.1
+ LayerRoPE18.3667.334.914.0528.044.012.0918.450.6
{{ g.label }}
Validation loss over training · 770M
{{ t.label }}
{{ t.base }}
{{ l.label }}
{{ loop.tip.title }}
{{ t.text }}
Training tokens
Table 3 · Figure 9. Above: FineWeb-Edu validation perplexity, Lambada perplexity, and average downstream accuracy (ARC-Easy, HellaSwag 0- and 10-shot, PIQA, Lambada, SQuAD, CoQA, BIG-bench QA WikiData; three few-shot seeds). GPT is a non-looped baseline with the same parameter count and recipe. Left: validation loss over training at 770M, omitting the first ~1B tokens; hover to compare.

Vision Transformers

ImageNet-1k · DeiT recipe

We train ViT-T and ViT-S on ImageNet-1k for 300 epochs with the DeiT recipe and apply LayerRoPE naively at every block, conditioning the gains γ of the pre-norm LayerNorms while keeping their centring and bias, with the magnitude slope initialised at zero. LayerRoPE improves both ViTs on every metric.

Table 4
Vision Transformers on ImageNet-1k
ViT-TDeiT · 300 epochs
MetricViT-T+ LayerRoPEΔ
Top-1 (%)72.2173.08+0.87
Top-5 (%)91.2691.62+0.36
Val. loss1.2111.171−0.040
ViT-SDeiT · 300 epochs
MetricViT-S+ LayerRoPEΔ
Top-1 (%)79.8080.38+0.58
Top-5 (%)94.8995.26+0.37
Val. loss0.8970.865−0.032
Table 4. Each metric is the best over training. Δ is the change from adding LayerRoPE.
4 What drives the gains

The depth encoding itself

Where does LayerRoPE’s improvement come from? Freeze its depth slopes, so that every layer applies the same gain, and it loses 93% of its improvement over Pre-Norm and 99% over Peri-Norm. Gating each block without depth conditioning recovers at most an eighth. Learned scalars without it recover at most a third, even when tuned over 16 initializations and free at every layer, where they could express any schedule LayerRoPE learns.

The encoding is needed on both sides of each block: depth-encoding only the reads or only the writes keeps most of the gain but not all, and only both together learn to damp reads and amplify writes. Magnitude and rotation are complementary, and one shared γ performs as well as separate per-layer gains.

What LayerRoPE contributes is not its gains, nor their freedom across layers, but tying them to depth.

Figure 10
How much of LayerRoPE’s improvement each variant keeps
With the depth encoding
{{ r.label }}{{ r.sub }} {{ r.val }}
Without it
{{ r.label }}{{ r.sub }} {{ r.val }}
Figure 10. Share of LayerRoPE’s improvement over its backbone that each variant keeps, at 134M (one recipe, one seed; backbone loss {{ abl.base }}). Without the depth encoding: LayerRoPE with its depth slopes frozen at zero, alone or with its scalars trained from the best of several initializations (shared across layers, or free at every layer); and Pre-Norm with learned output gains and shared scalars (gating). Reads- and writes-only variants keep one shared gain on the other side.
5 Mechanism

A wider stream, not a narrower one

Prior remedies such as Layer-Norm Scaling and Peri-Norm damp the residual stream directly. LayerRoPE’s learned schedule does the opposite.

LayerRoPE does not shrink the residual pipe; it widens it, while regulating the blocks that read from and write to it.

Figure 11
Residual-stream variance through a 1.3B model
{{ t.base }}
{{ l.label }}
{{ vr.tip.title }}
{{ t.text }}
Layer (24 layers)
Figure 11. Variance of the residual stream after each layer, on 512 C4 validation samples. Ribbon height ∝ Var1/3\mathrm{Var}^{1/3}, color ∝ log⁡Var\log \mathrm{Var}, on one shared scale across both views; final values at right.

How? LayerRoPE lets the residual stream grow in variance and norm, and instead regulates it at the inputs and outputs of each computational block.
Measuring just the learned magnitude gains, we see:

Read

LayerRoPE learns to attenuate what each block reads from the residual stream.

Write

LayerRoPE learns to amplify each block's write backs into the residual stream.

Figure 12
Read less, write more: learned multipliers at 1.3B
Pre-Norm + LayerRoPE Peri-Norm + LayerRoPE Layer-Norm Scaling (fixed)
Read · block input multiplier
{{ t.label }}
{{ t.base }}
{{ l.label }}
Write · residual output multiplier
{{ t.label }}
{{ t.base }}
{{ l.label }}
{{ mult.roTitle }} {{ o.t }}
Figure 12. Learned magnitude multipliers e^α (ℓ+1)^β at each site (log scale), labelled with the learned slope β, against Layer-Norm Scaling’s fixed input multiplier. Both slopes start at −0.5; the write slopes turn positive. Hover either panel to compare a layer.

LayerRoPE’s behaviour, of residual-stream amplification with regulation of each block’s I/O, is therefore a learned property.

The two gains are not reciprocal: the damped reads contain the growth of the writes, cutting the net read × write amplification by up to 7×. Building this opposition in at initialization trains worse than letting LayerRoPE learn it: LayerRoPE starts with both sides damped and learns to amplify its writes.

Takeaway

Transformers have long been told where each token sits in the sequence. They also benefit from knowing where each layer sits in depth.

Regulate the blocks, not the stream. Depth stability, our results suggest, depends less on how large the residual stream grows than on whether each block can scale what it reads and writes to its depth.

LayerRoPE’s explicit depth encoding provides exactly this regulation, while widening the residual stream.

Citation

BibTeX
@misc{srivastava2026layerrope,
  title         = {LayerRoPE: Depth Encodings Enable Deeper, More Stable and Efficient Transformers},
  author        = {Srivastava, Shikhar and Kanan, Christopher},
  year          = {2026},
  eprint        = {2610.09179},
  archivePrefix = {arXiv},
  url           = {https://arxiv.org/abs/2610.09179}
}
Acknowledgements

This work was partly supported by NSF EFRI Award 2317706 and NSF CAREER Awards 2047556/2326491. The views and conclusions contained herein are those of the authors and should not be interpreted as representing any sponsor’s official policies or endorsements. We gratefully acknowledge use of the research computing resources of the Empire AI Consortium, Inc, with support from Empire State Development of the State of New York, the Simons Foundation, and the Secunda Family Foundation. This work was also supported in part by compute credits provided by Modal Labs through the Modal for Academics program.