Skip to content

Commit

Permalink
[Platform] add dispatch key (#17)
Browse files Browse the repository at this point in the history
### What this PR does / why we need it?
Add dispatch key for NPU, so that the log could be print correctly.

Now
```
executor_base.py:110] # CPU blocks: 220478, # CPU blocks: 21845
```

After this pr
```
executor_base.py:110] # NPU blocks: 220478, # CPU blocks: 21845
```

### Does this PR introduce _any_ user-facing change?
N/A

### How was this patch tested?
CI passed and log printed as above

Signed-off-by: MengqingCao <[email protected]>
  • Loading branch information
MengqingCao authored Feb 21, 2025
1 parent 5f46501 commit dd425d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vllm_ascend/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class NPUPlatform(Platform):
simple_compile_backend: str = "npu"
ray_device_key: str = "NPU"
device_control_env_var: str = "ASCEND_RT_VISIBLE_DEVICES"
dispatch_key: str = "PrivateUse1"

supported_quantization: list[str] = ["ascend"]

Expand Down

0 comments on commit dd425d6

Please sign in to comment.