Zhiyang Chen

Results issues of Zhiyang Chen

https://arxiv.org/pdf/2103.02228.pdf 也用了Bellman-Ford-Moore algorithm. 除了Uniswap,还加上了Bancor和MakerDAO

While evaluating OpenTracer, when attempting to trace transactions initiated by EOAs, OpenTracer raised some errors: Steps to Reproduce: Run OpenTracer on transaction 0xf11644d89e999eb462a87415698c1d08b18b132857d6c453ae13601ea324e54d

### Describe the bug With `apply_router_weight_on_input=True`, the base fused MoE multiplies the router weight w into the gate_up GEMM and not into the down GEMM ([fused_moe.py#L713](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/srt/layers/moe/moe_runner/triton_utils/fused_moe.py#L713), [fused_moe.py#L996](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/srt/layers/moe/moe_runner/triton_utils/fused_moe.py#L996)). Llama 4 uses...

### Describe the bug For MHA models (`kv_group_num == 1`), `decode_attention_fwd` runs `_fwd_kernel_stage1`. It computes the scores as `tl.sum((q[None, :] * k).to(tl.float32), 1)` ([decode_attention.py#L342-L344](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/kernels/ops/attention/decode_attention.py#L342-L344)). The element product `q * k`...

### Describe the bug `extend_attention_fwd_unified` is the extend kernel that the Triton backend uses for all extend batches when deterministic inference is on ([triton_backend.py#L1913-L1915](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/srt/layers/attention/triton_backend.py#L1913-L1915)). In target-verify batches it gets the...

### Describe the bug `launch_reshape_and_cache_flash` has two separate optional arguments, `k_scale` and `v_scale`. The launcher sets `USE_SCALE=(k_scale is not None)` ([cache_ops.py#L212-L213](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/kernels/ops/kvcache/cache_ops.py#L212-L213)) and passes `key` as the value-scale pointer when `v_scale`...

### Describe the bug `_w8a8_block_fp8_matmul` computes `a_ptrs = A + offs_am * stride_am + ...` and `c_ptrs = C + stride_cm * offs_cm + ...` with int32 `offs_am` and `offs_cm`...

### Describe the bug The csgmv LoRA backend (the default LoRA backend) maps tokens through an int32 `permutation` ([chunked_backend.py#L237](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/srt/lora/backend/chunked_backend.py#L237)). The shrink kernel computes `x + s_offset_physical * x_stride_0` ([chunked_sgmv_shrink.py#L84-L92](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/kernels/ops/lora/dense/chunked_sgmv_shrink.py#L84-L92); split-K...

### Describe the bug `_invoke_moe_lora_shrink_splitk` sets `BLOCK_SIZE_N = min(config["BLOCK_SIZE_N"], max(16, N))`, with `N = slices * max_lora_rank` ([virtual_experts.py#L233-L236](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/kernels/ops/lora/moe/virtual_experts.py#L233-L236)). The fallback config does the same ([virtual_experts.py#L576-L583](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/kernels/ops/lora/moe/virtual_experts.py#L576-L583)). When N is below 64...

### Describe the bug `sigmoid_gate_topk_renorm` computes `probs = sigmoid(active)` in fp32 and normalizes them as `probs / sum(probs)` ([sigmoid_gate_topk_renorm.py#L115-L119](https://github.com/sgl-project/sglang/blob/b2cc023f23e14e6482490238968e018573847d0c/python/sglang/kernels/ops/moe/sigmoid_gate_topk_renorm.py#L115-L119)). For logits near -100, `sigmoid` underflows to 0 for all selected...