Main2main upgrade to vllm 0317 afternoon (#7409)
### What this PR does / why we need it?
1.fix "TypeError: get_attn_backend() remove variable": [Refactor
`check_and_update_config`](https://github.com/vllm-project/vllm/pull/35122)
2.fix [Rename `compile_ranges_split_points` to
`compile_ranges_endpoints`](https://github.com/vllm-project/vllm/pull/36027)
3.fix "RuntimeError: device_allocator not a DeviceAllocator":[Replace
memory related torch.cuda
APIs"](https://github.com/vllm-project/vllm/pull/37031)
4.fix [Support multiple KV groups in OffloadingSpec
](https://github.com/vllm-project/vllm/pull/36610) removed
self.offloaded_block_size and changed self.gpu_block_size from a scalar
to a tuple of per-group block sizes, adding block_size_factor.
5.fix [Consolidate
SupportsEagle](https://github.com/vllm-project/vllm/pull/36063) renamed
get_eagle3_aux_hidden_state_layers() to
get_eagle3_default_aux_hidden_state_layers() and added a
supports_eagle3() guard before calling it.
### Does this PR introduce _any_ user-facing change?
NA
### How was this patch tested?
E2E
- vLLM version: v0.17.0
- vLLM main:
8a680463fa
---------
Signed-off-by: leo-pony <nengjunma@outlook.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -92,9 +92,12 @@ class LlamaXliteModel(XliteModel):
|
||||
|
||||
vision_config = getattr(vllm_config.model_config.hf_config, "vision_config", None)
|
||||
rope_parameters = getattr(hf_config, "rope_parameters", {})
|
||||
config.deepstack_num_level = len(getattr(vision_config, "deepstack_visual_indexes", []))
|
||||
config.mrope_section = rope_parameters.get("mrope_section", [])
|
||||
config.mrope_interleaved = rope_parameters.get("mrope_interleaved", False)
|
||||
if hasattr(config, "deepstack_num_level"):
|
||||
config.deepstack_num_level = len(getattr(vision_config, "deepstack_visual_indexes", []))
|
||||
if hasattr(config, "mrope_section"):
|
||||
config.mrope_section = rope_parameters.get("mrope_section", [])
|
||||
if hasattr(config, "mrope_interleaved"):
|
||||
config.mrope_interleaved = rope_parameters.get("mrope_interleaved", False)
|
||||
return config
|
||||
|
||||
def _build_model(self, runnable: nn.Module, vllm_config: VllmConfig, config: ModelConfig) -> Model:
|
||||
|
||||
Reference in New Issue
Block a user