Skip to content

[Issue]: TypeError: kv_last_page_lens needs to be <class 'torch.Tensor'> but got <class 'float'> #514

@ChangLiu0709

Description

@ChangLiu0709

Problem Description

I'm trying to use the updated MLA for MTP from the PR: #505

Background:

  • Cloned recursively of the new repo.

  • Re-built it by:
    python3 setup.py develop

  • Launch the SGLang server using the command of sglang.launch_server and there is an error as below:

File "/sgl-workspace/sglang/aiter/aiter/jit/core.py", line 571, in check_args
raise TypeError(
TypeError: kv_last_page_lens needs to be <class 'torch.Tensor'> but got <class 'float'>

Wondering if anyone met this issue before and knows about the solution.

Operating System

Ubuntu 22.04.5 LTS

CPU

AMD EPYC 9654 96-Core Processor

GPU

AMD Instinct MI300X

ROCm Version

ROCm 6.3.0

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions