Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
auto_gptq / modeling / gemma.py
Size: Mime:
from logging import getLogger

from ._base import BaseGPTQForCausalLM


logger = getLogger(__name__)


class GemmaGPTQForCausalLM(BaseGPTQForCausalLM):
    layer_type = "GemmaDecoderLayer"
    layers_block_name = "model.layers"
    outside_layer_modules = ["model.embed_tokens", "model.norm"]
    inside_layer_modules = [
        ["self_attn.k_proj", "self_attn.v_proj", "self_attn.q_proj"],
        ["self_attn.o_proj"],
        ["mlp.up_proj", "mlp.gate_proj"],
        ["mlp.down_proj"],
    ]


__all__ = ["GemmaGPTQForCausalLM"]