__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/base.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/config.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/http.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/protocol.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/serve.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/solution.py
# SPDX-License-Identifier: Apache-2.0

apps/framework/worker.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/captures.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/config.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/device_connector.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/host_actor.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/modules/__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/modules/recipe.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/modules/request_state.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/modules/root.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/modules/seed.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/modules/step.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/protocol.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen35ba3b_release/solution.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/captures.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/config.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/device_connector.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/host_actor.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/modules/__init__.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/modules/recipe.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/modules/request_state.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/modules/root.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/modules/seed.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/modules/step.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/protocol.py
# SPDX-License-Identifier: Apache-2.0

apps/qwen_core_refactor/solution.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/binding.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/distributed.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/attention_mask.py
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.

arch/ascend/llm/attention_metadata.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/admission.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/attention_preprocess.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/llm/better_qwen35/attention_program.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/chunk_wy.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/decode_kv.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/ascend/llm/better_qwen35/draft_metadata.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/fia.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/fia_metadata.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/fia_partition.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/gated_norm.py
# Adapt from https://github.com/fla-org/flash-linear-attention/blob/main/fla/modules/layernorm_gated.py
# Copyright (c) 2024, Tri Dao.
# Based on the Triton LayerNorm tutorial: https://triton-lang.org/main/getting-started/tutorials/05-layer-norm.html

arch/ascend/llm/better_qwen35/gates_scan.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/gdn_core.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/gdn_pool.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/gdn_program.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/host_metadata.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/kkt.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/ascend/llm/better_qwen35/mixed_layout.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/mlp_program.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/moe.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/native.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/oct24_pages.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/preprocess.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/qwen35_rms_norm.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/sampling.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/solve_tril.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/ascend/llm/better_qwen35/state_commit.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/state_slots.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/state_transition.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/step_ops.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/step_state.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/streams.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/triangle_merge.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/ascend/llm/better_qwen35/triton_helpers.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/ascend/llm/better_qwen35/vocabulary_program.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/better_qwen35/wy_head_major.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/ascend/llm/configuration.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/compressor.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/llm/dsv4/compressor_workspace.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/decoder_layer.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/dsa.py
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/llm/dsv4/indexer.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/llm/dsv4/mapped_prefetch.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/moe.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/llm/dsv4/prefill_expert_moe.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/prefill_grouped_moe.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/qkv_residency.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/qli_recall.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/rotary.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/llm/dsv4/sparse_residency.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/state_writes.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/dsv4/streaming_moe.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/forward_context.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/layernorm.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/llm/linear_methods.py
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.

arch/ascend/llm/native_capabilities.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/llm/triton_rms.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/process_context.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsa_route.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/ascend/request_parallel/dsa_scatter.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/request_parallel/dsv4/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/compact_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/compact_moe.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/compact_rows.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/compact_target.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/compiler.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/context.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/continuation_inputs.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/dense_prefill.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/device_tail.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/device_wave.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/direct_mapped_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/direct_mapped_selection.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/dspark.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/ep_view.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/expert_refill.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/fused_mapped_recall.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/gang_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/gang_ingress.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/gang_prefill.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/graph_schema.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/head_parallel_gang.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/hot_owner_prefill.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/implementation.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/inputs.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/live_inputs.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/mapped_host_residency.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/mapped_owner_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/builder.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/descriptors.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/device_dspark.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/device_preparation.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/dspark_invocation.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/fixed_program.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/mixed_target.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/pipeline_preparation.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/query_token.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/recall.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/shadow_rows.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/state_addressing.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/metadata/types.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.

arch/ascend/request_parallel/dsv4/metadata/verification.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/mixed_capture.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/moe.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/output_projection.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/request_parallel/dsv4/owner_ffn.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/pipeline_executor.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/pipeline_wave.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefill.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_backing_exchange.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_copy.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_copy_acl.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_device_exchange.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_host_relay.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_mapped_state.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_peer_session.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_target_handles.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_target_state.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/prefix_target_transfer.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/projection_state.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/qkv_residency.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/query_token_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/query_token_target.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/replicated_prefill.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/speculative.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/state_ipc.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/state_staging.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/state_transfer.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/wave_executor.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/wave_portfolio.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/dsv4/wave_resources.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/request_parallel/indexer_quant_scatter.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/runtime/aclgraph.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/collective.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/deployment.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/dispatch_workspace.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/runtime/mapped_host.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/pipeline.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/service.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/state_backend.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/runtime/tensor_parallel.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/vllm/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/vllm/moe_runtime/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/ascend/vllm/moe_runtime/expert_placement.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/experts_selector.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/fused_moe.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/moe_comm_method.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/comm_utils.py
# Copyright (c) 2024; NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/moe_mlp.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/moe_runtime_args.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/moe_stage_contracts.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/moe_stage_params.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/prepare_finalize.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/ops/request_owned_shared_overlap.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

arch/ascend/vllm/moe_runtime/ops/token_dispatcher.py
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024; NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/quant_method.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/quantization/method_adapters.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2023 The vLLM team.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/quantization/methods/base.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/quantization/methods/registry.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/quantization/methods/w8a8_dynamic.py
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

arch/ascend/vllm/moe_runtime/routed_experts.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/binding.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/_native/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/_native/flashmla/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/_native/ops.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/binding.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/attention.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/attention_metadata.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/attention.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/compressor.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/decoder_layer.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/flashinfer_sparse.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/flashmla_sparse.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/indexer.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/indexer_logits.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/indexer_query.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/indexer_topk.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/k_cache.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/kernels/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/kernels/cute_utils/__init__.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/NVIDIA/cutlass/blob/v4.3.2/include/cute/arch/copy_sm90_desc.hpp#L193-L197

arch/cuda/llm/dsv4/kernels/cute_utils/cvt.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/cutedsl_compressor.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/cutedsl_dequant_gather.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/cutedsl_indexer.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/flash_cute_utils.py
# SPDX-License-Identifier: BSD-3-Clause

arch/cuda/llm/dsv4/kernels/triton_dequant_gather.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/triton_inv_rope_fp8.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/triton_prepare_megamoe.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/kernels/triton_sparse_indices.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/mega_moe.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/moe.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/o_projection.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/dsv4/publication.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/rotary.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/dsv4/sparse_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/forward_context.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/layernorm.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/qwen35_gdn.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/qwen35_gdn_conv.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright (c) 2024, Tri Dao

arch/cuda/llm/qwen35_gdn_fla/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/qwen35_gdn_fla/chunk.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/chunk_delta_h.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/chunk_o.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/chunk_scaled_dot_kkt.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/cumsum.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/index.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/l2norm.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/op.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/solve_tril.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/utils.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_fla/wy_fast.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_recurrent.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Songlin Yang, Yu Zhang
# The original source code was licensed under the MIT license and included
# the following copyright notice:
# Copyright (c) 2023-2025, Songlin Yang, Yu Zhang

arch/cuda/llm/qwen35_gdn_state.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/qwen35_qk_projection.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

arch/cuda/llm/qwen35_vision_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/llm/qwen35_vision_attention_kernel.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/sgl-project/sglang/blob/97cb762bb65ebf05025eb342de03c184660427a3/python/sglang/srt/layers/attention/triton_ops/prefill_attention.py
# Copyright 2023-2024 SGLang Team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.
# https://github.com/ModelTC/lightllm/blob/f2a54f0912293f683bf1d1695fd12c4098a5bf82/lightllm/models/llama/triton_kernel/context_flashattention_nopad.py#L1

arch/cuda/runtime/cudagraph.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/serve/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/cuda/serve/qwen35_mtp.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/_native/__init__.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/_native/aiter_indexer.py
# SPDX-License-Identifier: MIT

arch/hygon/_native/flashmla/__init__.py
# SPDX-License-Identifier: MIT

arch/hygon/_native/flashmla/interface.py
# SPDX-License-Identifier: MIT

arch/hygon/_native/mhc.py
# SPDX-License-Identifier: MIT

arch/hygon/_native/versions.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/binding.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/flash_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/flashmla.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/activation.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/compressor.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/decoder_layer.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/indexer.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/model_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/moe.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/packed_cache.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/publication.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/rotary.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/sparse_attention.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/topology.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/dsv4/w8a8_moe.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/layernorm.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/rotary.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/llm/w8a8.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/ops.py
# SPDX-License-Identifier: Apache-2.0

arch/hygon/runtime.py
# SPDX-License-Identifier: Apache-2.0

arch/rocm/aiter.py
# SPDX-License-Identifier: Apache-2.0

arch/rocm/binding.py
# SPDX-License-Identifier: Apache-2.0

arch/rocm/llm/attention.py
# SPDX-License-Identifier: Apache-2.0

arch/rocm/llm/forward_context.py
# SPDX-License-Identifier: Apache-2.0

arch/rocm/llm/layernorm.py
# SPDX-License-Identifier: Apache-2.0

arch/rocm/runtime/hipgraph.py
# SPDX-License-Identifier: Apache-2.0

core/__init__.py
# SPDX-License-Identifier: Apache-2.0

core/error.py
# SPDX-License-Identifier: Apache-2.0

core/live_module.py
# SPDX-License-Identifier: Apache-2.0

core/meta_tensor.py
# SPDX-License-Identifier: Apache-2.0

core/state_shadow.py
# SPDX-License-Identifier: Apache-2.0

core/state_tensor.py
# SPDX-License-Identifier: Apache-2.0

llm/__init__.py
# SPDX-License-Identifier: Apache-2.0

llm/attention.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/attention_metadata.py
# SPDX-License-Identifier: Apache-2.0

llm/attention_support.py
# SPDX-License-Identifier: Apache-2.0

llm/attention_types.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/better_qwen35/__init__.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/attention.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/decoder.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/gdn.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/metadata.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/mlp.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/model.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/norm.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/state.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/state_layout.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/state_metadata.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/step_ops.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/vocabulary.py
# SPDX-License-Identifier: Apache-2.0

llm/better_qwen35/weights.py
# SPDX-License-Identifier: Apache-2.0

llm/collectives.py
# SPDX-License-Identifier: Apache-2.0

llm/configuration.py
# SPDX-License-Identifier: Apache-2.0

llm/context_backend.py
# SPDX-License-Identifier: Apache-2.0

llm/distributed.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/__init__.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/arch_layers.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/attention.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.
        # indexer-bearing layer. Refer: https://arxiv.org/abs/2603.12201

llm/dsv4/attention_layout.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/backbone.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

llm/dsv4/causal_lm.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

llm/dsv4/compressor.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/decoder_layer.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/device_dspark.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/device_metadata.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/draft_inputs.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/dspark.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/expert_placement.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/gang_exchange.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/head_parallel_gang.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/kernels/triton_compress_quant.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/kernels/triton_quant_utils.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/loading.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/mlp.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/llama/modeling_llama.py
# Copyright 2023 The vLLM team.
# Copyright 2023 DeepSeek-AI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

llm/dsv4/moe.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/moe_routing.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/numerical_inputs.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/oproj_residency.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/output_projection.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

llm/dsv4/prefix_state.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/qkv_residency.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/query_residents.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/query_token_gang.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/ragged_dspark.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/request_owned_metadata.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/request_owned_topology.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/route_geometry.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

llm/dsv4/simd_metadata.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/simd_states.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/speculative.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/state_geometry.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/state_requirements.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/state_writers.py
# SPDX-License-Identifier: Apache-2.0

llm/dsv4/torch_mhc.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/dsv4/torch_rotary.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/forward_context.py
# SPDX-License-Identifier: Apache-2.0

llm/framework.py
# SPDX-License-Identifier: Apache-2.0

llm/layers/__init__.py
# SPDX-License-Identifier: Apache-2.0

llm/layers/activation.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/base.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/linear.py
# SPDX-License-Identifier: Apache-2.0

llm/layers/linear_base.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/linear_parallel.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/linear_qkv.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/logits.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/norm.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/layers/parameters.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
        # see https://github.com/pytorch/pytorch/issues/75932

llm/layers/rotary.py
# SPDX-License-Identifier: Apache-2.0

llm/layers/vocab.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/loading/__init__.py
# SPDX-License-Identifier: Apache-2.0

llm/loading/checkpoint.py
# SPDX-License-Identifier: Apache-2.0

llm/loading/construction.py
# SPDX-License-Identifier: Apache-2.0

llm/loading/moe.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/loading/weights.py
# SPDX-License-Identifier: Apache-2.0

llm/moe_fixed_slots.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/owner_exchange.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/owner_identity.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/owner_layout.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/physical_owner_arena.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/physical_rows.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

llm/qwen2.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/qwen2/modeling_qwen2.py
# Copyright 2024 The Qwen team.
# Copyright 2023 The vLLM team.
# Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

llm/qwen35/__init__.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/attention.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/batch.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/gdn.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/gdn_state.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/model.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright 2025 The Hugging Face team
# SPDX-FileCopyrightText: Copyright 2025 The Qwen team

llm/qwen35/mtp.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/norm.py
# SPDX-License-Identifier: Apache-2.0

llm/qwen35/vision.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright 2025 The Hugging Face team
# SPDX-FileCopyrightText: Copyright 2025 The Qwen team

llm/request_owned_permutation.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Ascend project

llm/rotary.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/runtime_support.py
# SPDX-License-Identifier: Apache-2.0

llm/sampler.py
# SPDX-License-Identifier: Apache-2.0

llm/sampling.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

llm/tensor_programs.py
# SPDX-License-Identifier: Apache-2.0

runtime/__init__.py
# SPDX-License-Identifier: Apache-2.0

runtime/activation.py
# SPDX-License-Identifier: Apache-2.0

runtime/deployment.py
# SPDX-License-Identifier: Apache-2.0

runtime/distributed.py
# SPDX-License-Identifier: Apache-2.0

runtime/execution_backend.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/__init__.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/banks.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/execution.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/graph_backend.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/ingress.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/invocation.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/live_graph.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/meta_tensor.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/output_transfer.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/phase.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/pipeline.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph/shadow.py
# SPDX-License-Identifier: Apache-2.0

runtime/graph_memory.py
# SPDX-License-Identifier: Apache-2.0

runtime/live_runtime.py
# SPDX-License-Identifier: Apache-2.0

runtime/memory.py
# SPDX-License-Identifier: Apache-2.0

runtime/service.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/__init__.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/capacity.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/grouped_state.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/host_ipc_transfer.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/host_state.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/state_backend.py
# SPDX-License-Identifier: Apache-2.0

runtime/state/state_transfer.py
# SPDX-License-Identifier: Apache-2.0

serve/__init__.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/__init__.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/continuation.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_backing.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_controller.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_locality.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_placement.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_policy.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_refill.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/expert_transition.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/frozen_prefix.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/mixed_budget.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/mixed_forward.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/pipeline.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/prefill_budget.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/prefix_preparation.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/prefix_transfer.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/prefix_wire.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/ragged_wave.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/receipt.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/resources.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/result.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/scheduler.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/scheduler_selection.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/scheduler_trace.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/step_policy.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/transport.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/wave.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/worker_progress.py
# SPDX-License-Identifier: Apache-2.0

serve/dsv4/workload.py
# SPDX-License-Identifier: Apache-2.0

serve/fixed_greedy/__init__.py
# SPDX-License-Identifier: Apache-2.0

serve/fixed_greedy/contracts.py
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project

serve/fixed_greedy/scheme.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/__init__.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/__init__.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/publication.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/rejection.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/resources.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/root.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/scheduler.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/mtp/wave.py
# SPDX-License-Identifier: Apache-2.0

serve/qwen35/vision.py
# SPDX-License-Identifier: Apache-2.0
