Revert "[Kernel] add custom moe ops for prefill" (#4806)

Reverts vllm-project/vllm-ascend#4194 as it broke CI in
https://github.com/vllm-project/vllm-ascend/actions/runs/20030369087/job/57437687382?pr=4791

Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
Mengqing Cao
2025-12-08 23:20:32 +08:00
committed by GitHub
parent 432b861cae
commit 7e70da9fb7
39 changed files with 2 additions and 5562 deletions

View File

@@ -28,28 +28,4 @@
return PyModule_Create(&module); \
}
class TrochBindException : public std::exception
{
private:
std::string message = {};
public:
explicit TrochBindException(const char *name, const char *file, const int line, const std::string &error)
{
message = std::string("Failed: ") + name + " error " + file + ":" + std::to_string(line) +
" error message or error code is '" + error + "'";
}
const char *what() const noexcept override
{
return message.c_str();
}
};
#define TORCH_BIND_ASSERT(cond) \
; \
do { \
if (not(cond)) { \
throw TrochBindException("Assertion", __FILE__, __LINE__, #cond); \
} \
} while (0)