Skip to content

Commit

Permalink
fix exaone import (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen authored Nov 27, 2024
1 parent 4b10b31 commit 0d1906f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions awq/models/exaone.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
from awq.utils.fused_utils import fuse_qkv
from awq.modules.fused.block import LlamaLikeBlock
from awq.modules.fused.model import LlamaLikeModel
from transformers.models.exaone.modeling_exaone import (
ExaoneBlock as OldExaoneBlock,
ExaoneForCausalLM as OldExaoneForCausalLM,
)
try:
from transformers.models.exaone.modeling_exaone import (
ExaoneBlock as OldExaoneBlock,
ExaoneForCausalLM as OldExaoneForCausalLM,
)
except:
OldExaoneBlock = None
OldExaoneForCausalLM = None
from awq.modules.fused.norm import FasterTransformerRMSNorm


Expand Down

0 comments on commit 0d1906f

Please sign in to comment.