repowisedeepseek-ai/deepinfer

deepseek-ai / deepinfer

pythonmain9bd9cf251.6K linessynced 1d ago

Code health

8.1out of 10Good

Explore this codebase

Do next · 3

3 things worth doing in the week to Oct 21, the last indexed commit.

Worth planning

  • Break up _fused_norm_rope_hadamard_cast_store_kvcache (CCN 133, 359 lines)

    deepinfer/model_executor/layers/tilelang_ops/cuda/fused_transform.py:612

    _fused_norm_rope_hadamard_cast_store_kvcache nests deeply; easier to read and change once split, which also removes a duplicate; changed 1 time in 90 days.

    gain
    up to +2.0 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 133, 359 lines, nests 7 deep
    severity
    high
    worth a check
  • Break up _fused_sample (CCN 110, 319 lines)

    deepinfer/model_executor/layers/tilelang_ops/cuda/fused_sample.py:326

    _fused_sample nests deeply; easier to read and change once split, which also removes a duplicate; changed 1 time in 90 days.

    gain
    up to +0.9 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 110, 319 lines, nests 7 deep
    severity
    high
    worth a check
  • Break up _fused_sample (CCN 79, 445 lines)

    deepinfer/model_executor/layers/tilelang_ops/asc/fused_sample.py:377

    _fused_sample nests deeply; easier to read and change once split, which also removes a duplicate; changed 1 time in 90 days.

    gain
    up to +1.9 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 79, 445 lines, nests 8 deep
    severity
    high
    worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report

Everything we found

5 areas