Update qwen.py for Qwen-VL
add transformer.visual as outside layer for the adaptation to Qwen-VL
This commit is contained in:
parent
604c96144f
commit
7c39a3a315
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ from ._base import *
|
||||||
class QwenGPTQForCausalLM(BaseGPTQForCausalLM):
|
class QwenGPTQForCausalLM(BaseGPTQForCausalLM):
|
||||||
layer_type = "QWenBlock"
|
layer_type = "QWenBlock"
|
||||||
layers_block_name = "transformer.h"
|
layers_block_name = "transformer.h"
|
||||||
outside_layer_modules = ["transformer.wte", "transformer.wpe", "transformer.ln_f"]
|
outside_layer_modules = ["transformer.wte", "transformer.wpe", "transformer.ln_f", "transformer.visual"]
|
||||||
inside_layer_modules = [
|
inside_layer_modules = [
|
||||||
["attn.c_attn"],
|
["attn.c_attn"],
|
||||||
["attn.c_proj"],
|
["attn.c_proj"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue