{ "": { "class": "InternVLChatModel" }, "vision_model": { "class": "InternVisionModel" }, "vision_model.embeddings": { "class": "InternVisionEmbeddings" }, "vision_model.embeddings.patch_embedding": { "class": "Conv2d", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder": { "class": "InternVisionEncoder" }, "vision_model.encoder.layers": { "class": "ModuleList" }, "vision_model.encoder.layers.0": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.0.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.0.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.0.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.0.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.0.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.0.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.0.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.0.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.0.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.0.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.0.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.0.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.0.drop_path1": { "class": "Identity" }, "vision_model.encoder.layers.0.drop_path2": { "class": "Identity" }, "vision_model.encoder.layers.1": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.1.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.1.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.1.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.1.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.1.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.1.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.1.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.1.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.1.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.1.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.1.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.1.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.1.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.1.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.2": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.2.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.2.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.2.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.2.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.2.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.2.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.2.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.2.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.2.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.2.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.2.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.2.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.2.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.2.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.3": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.3.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.3.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.3.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.3.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.3.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.3.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.3.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.3.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.3.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.3.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.3.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.3.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.3.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.3.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.4": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.4.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.4.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.4.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.4.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.4.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.4.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.4.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.4.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.4.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.4.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.4.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.4.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.4.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.4.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.5": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.5.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.5.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.5.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.5.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.5.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.5.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.5.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.5.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.5.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.5.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.5.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.5.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.5.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.5.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.6": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.6.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.6.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.6.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.6.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.6.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.6.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.6.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.6.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.6.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.6.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.6.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.6.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.6.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.6.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.7": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.7.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.7.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.7.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.7.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.7.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.7.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.7.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.7.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.7.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.7.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.7.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.7.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.7.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.7.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.8": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.8.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.8.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.8.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.8.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.8.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.8.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.8.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.8.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.8.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.8.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.8.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.8.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.8.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.8.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.9": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.9.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.9.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.9.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.9.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.9.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.9.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.9.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.9.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.9.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.9.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.9.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.9.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.9.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.9.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.10": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.10.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.10.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.10.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.10.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.10.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.10.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.10.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.10.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.10.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.10.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.10.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.10.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.10.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.10.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.11": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.11.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.11.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.11.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.11.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.11.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.11.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.11.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.11.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.11.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.11.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.11.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.11.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.11.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.11.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.12": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.12.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.12.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.12.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.12.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.12.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.12.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.12.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.12.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.12.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.12.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.12.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.12.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.12.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.12.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.13": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.13.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.13.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.13.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.13.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.13.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.13.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.13.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.13.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.13.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.13.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.13.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.13.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.13.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.13.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.14": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.14.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.14.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.14.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.14.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.14.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.14.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.14.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.14.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.14.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.14.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.14.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.14.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.14.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.14.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.15": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.15.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.15.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.15.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.15.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.15.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.15.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.15.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.15.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.15.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.15.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.15.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.15.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.15.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.15.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.16": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.16.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.16.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.16.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.16.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.16.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.16.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.16.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.16.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.16.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.16.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.16.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.16.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.16.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.16.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.17": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.17.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.17.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.17.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.17.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.17.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.17.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.17.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.17.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.17.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.17.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.17.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.17.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.17.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.17.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.18": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.18.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.18.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.18.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.18.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.18.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.18.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.18.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.18.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.18.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.18.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.18.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.18.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.18.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.18.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.19": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.19.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.19.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.19.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.19.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.19.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.19.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.19.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.19.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.19.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.19.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.19.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.19.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.19.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.19.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.20": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.20.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.20.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.20.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.20.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.20.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.20.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.20.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.20.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.20.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.20.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.20.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.20.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.20.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.20.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.21": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.21.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.21.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.21.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.21.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.21.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.21.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.21.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.21.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.21.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.21.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.21.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.21.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.21.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.21.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.22": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.22.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.22.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.22.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.22.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.22.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.22.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.22.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.22.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.22.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.22.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.22.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.22.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.22.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.22.drop_path2": { "class": "DropPath" }, "vision_model.encoder.layers.23": { "class": "InternVisionEncoderLayer" }, "vision_model.encoder.layers.23.attn": { "class": "InternAttention" }, "vision_model.encoder.layers.23.attn.qkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.23.attn.attn_drop": { "class": "Dropout" }, "vision_model.encoder.layers.23.attn.proj_drop": { "class": "Dropout" }, "vision_model.encoder.layers.23.attn.inner_attn": { "class": "FlashAttention" }, "vision_model.encoder.layers.23.attn.proj": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.23.mlp": { "class": "InternMLP" }, "vision_model.encoder.layers.23.mlp.act": { "class": "GELUActivation" }, "vision_model.encoder.layers.23.mlp.fc1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.23.mlp.fc2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "vision_model.encoder.layers.23.norm1": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.23.norm2": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "vision_model.encoder.layers.23.drop_path1": { "class": "DropPath" }, "vision_model.encoder.layers.23.drop_path2": { "class": "DropPath" }, "language_model": { "class": "InternLM2ForCausalLM" }, "language_model.model": { "class": "InternLM2Model" }, "language_model.model.tok_embeddings": { "class": "Embedding", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers": { "class": "ModuleList" }, "language_model.model.layers.0": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.0.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.0.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.0.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.0.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.0.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.0.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.0.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.0.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.0.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.0.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.0.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.1": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.1.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.1.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.1.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.1.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.1.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.1.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.1.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.1.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.1.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.1.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.1.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.2": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.2.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.2.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.2.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.2.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.2.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.2.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.2.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.2.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.2.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.2.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.2.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.3": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.3.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.3.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.3.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.3.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.3.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.3.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.3.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.3.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.3.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.3.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.3.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.4": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.4.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.4.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.4.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.4.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.4.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.4.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.4.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.4.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.4.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.4.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.4.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.5": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.5.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.5.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.5.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.5.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.5.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.5.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.5.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.5.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.5.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.5.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.5.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.6": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.6.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.6.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.6.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.6.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.6.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.6.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.6.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.6.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.6.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.6.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.6.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.7": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.7.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.7.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.7.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.7.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.7.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.7.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.7.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.7.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.7.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.7.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.7.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.8": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.8.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.8.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.8.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.8.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.8.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.8.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.8.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.8.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.8.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.8.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.8.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.9": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.9.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.9.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.9.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.9.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.9.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.9.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.9.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.9.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.9.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.9.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.9.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.10": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.10.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.10.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.10.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.10.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.10.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.10.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.10.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.10.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.10.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.10.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.10.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.11": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.11.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.11.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.11.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.11.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.11.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.11.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.11.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.11.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.11.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.11.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.11.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.12": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.12.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.12.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.12.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.12.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.12.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.12.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.12.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.12.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.12.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.12.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.12.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.13": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.13.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.13.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.13.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.13.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.13.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.13.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.13.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.13.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.13.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.13.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.13.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.14": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.14.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.14.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.14.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.14.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.14.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.14.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.14.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.14.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.14.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.14.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.14.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.15": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.15.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.15.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.15.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.15.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.15.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.15.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.15.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.15.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.15.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.15.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.15.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.16": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.16.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.16.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.16.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.16.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.16.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.16.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.16.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.16.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.16.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.16.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.16.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.17": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.17.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.17.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.17.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.17.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.17.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.17.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.17.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.17.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.17.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.17.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.17.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.18": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.18.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.18.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.18.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.18.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.18.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.18.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.18.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.18.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.18.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.18.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.18.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.19": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.19.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.19.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.19.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.19.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.19.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.19.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.19.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.19.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.19.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.19.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.19.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.20": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.20.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.20.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.20.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.20.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.20.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.20.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.20.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.20.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.20.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.20.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.20.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.21": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.21.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.21.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.21.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.21.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.21.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.21.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.21.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.21.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.21.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.21.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.21.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.22": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.22.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.22.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.22.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.22.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.22.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.22.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.22.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.22.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.22.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.22.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.22.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.23": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.23.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.23.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.23.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.23.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.23.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.23.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.23.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.23.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.23.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.23.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.23.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.24": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.24.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.24.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.24.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.24.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.24.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.24.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.24.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.24.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.24.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.24.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.24.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.25": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.25.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.25.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.25.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.25.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.25.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.25.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.25.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.25.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.25.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.25.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.25.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.26": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.26.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.26.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.26.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.26.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.26.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.26.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.26.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.26.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.26.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.26.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.26.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.27": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.27.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.27.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.27.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.27.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.27.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.27.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.27.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.27.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.27.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.27.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.27.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.28": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.28.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.28.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.28.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.28.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.28.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.28.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.28.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.28.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.28.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.28.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.28.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.29": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.29.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.29.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.29.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.29.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.29.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.29.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.29.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.29.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.29.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.29.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.29.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.30": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.30.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.30.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.30.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.30.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.30.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.30.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.30.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.30.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.30.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.30.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.30.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.31": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.31.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.31.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.31.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.31.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.31.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.31.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.31.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.31.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.31.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.31.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.31.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.32": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.32.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.32.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.32.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.32.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.32.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.32.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.32.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.32.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.32.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.32.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.32.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.33": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.33.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.33.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.33.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.33.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.33.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.33.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.33.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.33.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.33.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.33.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.33.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.34": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.34.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.34.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.34.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.34.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.34.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.34.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.34.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.34.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.34.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.34.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.34.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.35": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.35.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.35.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.35.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.35.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.35.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.35.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.35.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.35.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.35.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.35.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.35.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.36": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.36.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.36.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.36.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.36.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.36.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.36.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.36.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.36.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.36.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.36.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.36.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.37": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.37.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.37.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.37.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.37.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.37.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.37.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.37.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.37.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.37.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.37.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.37.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.38": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.38.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.38.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.38.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.38.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.38.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.38.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.38.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.38.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.38.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.38.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.38.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.39": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.39.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.39.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.39.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.39.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.39.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.39.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.39.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.39.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.39.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.39.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.39.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.40": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.40.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.40.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.40.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.40.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.40.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.40.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.40.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.40.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.40.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.40.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.40.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.41": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.41.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.41.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.41.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.41.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.41.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.41.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.41.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.41.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.41.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.41.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.41.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.42": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.42.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.42.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.42.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.42.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.42.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.42.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.42.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.42.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.42.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.42.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.42.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.43": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.43.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.43.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.43.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.43.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.43.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.43.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.43.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.43.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.43.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.43.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.43.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.44": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.44.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.44.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.44.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.44.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.44.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.44.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.44.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.44.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.44.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.44.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.44.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.45": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.45.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.45.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.45.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.45.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.45.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.45.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.45.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.45.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.45.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.45.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.45.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.46": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.46.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.46.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.46.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.46.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.46.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.46.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.46.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.46.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.46.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.46.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.46.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.47": { "class": "InternLM2DecoderLayer" }, "language_model.model.layers.47.attention": { "class": "InternLM2FlashAttention2" }, "language_model.model.layers.47.attention.wqkv": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.47.attention.wo": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.47.attention.rotary_emb": { "class": "InternLM2DynamicNTKScalingRotaryEmbedding" }, "language_model.model.layers.47.feed_forward": { "class": "InternLM2MLP" }, "language_model.model.layers.47.feed_forward.w1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.47.feed_forward.w3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.47.feed_forward.w2": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "language_model.model.layers.47.feed_forward.act_fn": { "class": "SiLU" }, "language_model.model.layers.47.attention_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.layers.47.ffn_norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.model.norm": { "class": "InternLM2RMSNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "language_model.output": { "class": "Linear", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "mlp1": { "class": "Sequential" }, "mlp1.0": { "class": "LayerNorm", "dtype": "torch.bfloat16", "quant_state": { "quant_type": null, "blocksize": null, "dtype": "None" } }, "mlp1.1": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } }, "mlp1.2": { "class": "GELU" }, "mlp1.3": { "class": "Linear4bit", "dtype": "torch.uint8", "quant_state": { "quant_type": "fp4", "blocksize": 64, "dtype": "torch.bfloat16" } } }