Hello, when I use this project with verl, some error happens when loading model weights.
Model info: Qwen2.5-0.5B-Instruct
Error:
WorkerDict object at 0x7f648412eb60>)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/single_controller/ray/base.py", line 720, in func
return getattr(self.worker_dict[key], name)(*args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/single_controller/base/decorator.py", line 514, in inner
return func(*args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/utils/profiler/nvtx_profile.py", line 180, in wrapper
result = func(self, *args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/workers/fsdp_workers.py", line 741, in generate_sequences
with self.rollout_sharding_manager:
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/utils/profiler/performance.py", line 105, in f
return self.log(decorated_function, *args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/utils/profiler/performance.py", line 118, in log
output = func(*args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/workers/sharding_manager/fsdp_vllm.py", line 375, in enter
self.update_params(params, peft_config=peft_config)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/workers/sharding_manager/fsdp_vllm.py", line 536, in update_params
loaded_params = model.load_weights(
File "/usr/local/lib/python3.10/dist-packages/flash_rl/vllm_patch.py", line 489, in hacked_load_weights
loader._process_weights_after_loading(model, None, None)
File "/usr/local/lib/python3.10/dist-packages/flash_rl/vllm_patch.py", line 85, in hacked_process_weights_after_loading
original_process_weights_after_loading(model, model_config, target_device)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/loader.py", line 180, in _process_weights_after_loading
quant_method.process_weights_after_loading(module)
File "/usr/local/lib/python3.10/dist-packages/flash_rl/vllm_patch.py", line 109, in hacked_kvcache_process_weights_after_loading
return original_kvcache_process_weights_after_loading(self, layer)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/kv_cache.py", line 103, in process_weights_after_loading
if layer.q_scale > 0.0:
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1928, in getattr
raise AttributeError(
AttributeError: 'Attention' object has no attribute 'q_scale'. Did you mean: '_q_scale'?. Did you mean: '_return_value'?
Hello, when I use this project with verl, some error happens when loading model weights.
Model info: Qwen2.5-0.5B-Instruct
Error:
WorkerDict object at 0x7f648412eb60>)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/single_controller/ray/base.py", line 720, in func
return getattr(self.worker_dict[key], name)(*args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/single_controller/base/decorator.py", line 514, in inner
return func(*args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/utils/profiler/nvtx_profile.py", line 180, in wrapper
result = func(self, *args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/workers/fsdp_workers.py", line 741, in generate_sequences
with self.rollout_sharding_manager:
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/utils/profiler/performance.py", line 105, in f
return self.log(decorated_function, *args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/utils/profiler/performance.py", line 118, in log
output = func(*args, **kwargs)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/workers/sharding_manager/fsdp_vllm.py", line 375, in enter
self.update_params(params, peft_config=peft_config)
File "/root/epfs/code/verl-self-dev-flash_attn3/verl/workers/sharding_manager/fsdp_vllm.py", line 536, in update_params
loaded_params = model.load_weights(
File "/usr/local/lib/python3.10/dist-packages/flash_rl/vllm_patch.py", line 489, in hacked_load_weights
loader._process_weights_after_loading(model, None, None)
File "/usr/local/lib/python3.10/dist-packages/flash_rl/vllm_patch.py", line 85, in hacked_process_weights_after_loading
original_process_weights_after_loading(model, model_config, target_device)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/model_loader/loader.py", line 180, in _process_weights_after_loading
quant_method.process_weights_after_loading(module)
File "/usr/local/lib/python3.10/dist-packages/flash_rl/vllm_patch.py", line 109, in hacked_kvcache_process_weights_after_loading
return original_kvcache_process_weights_after_loading(self, layer)
File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/kv_cache.py", line 103, in process_weights_after_loading
if layer.q_scale > 0.0:
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1928, in getattr
raise AttributeError(
AttributeError: 'Attention' object has no attribute 'q_scale'. Did you mean: '_q_scale'?. Did you mean: '_return_value'?