I only used xla for getting the hlo graph and basic graph optimizations, then I parsed the full graph to iree pjrt for compilation and runtime. I noticed that during decode, a different NCCL collective channel is created each iteration, which means a total of 33 different channels (one for prefill, 32 for decode) are created. Is this a jit cache miss problem, or should I use jax.lax.scan instead of a python loop for the decode step?
I only used xla for getting the hlo graph and basic graph optimizations, then I parsed the full graph to iree pjrt for compilation and runtime. I noticed that during decode, a different NCCL collective channel is created each iteration, which means a total of 33 different channels (one for prefill, 32 for decode) are created. Is this a jit cache miss problem, or should I use jax.lax.scan instead of a python loop for the decode step?