Skip to content

Commit

Permalink
HF PR accepted.
Browse files Browse the repository at this point in the history
- Removed granite config.
- Updated test with offiicial model
  • Loading branch information
shawntan committed Aug 28, 2024
1 parent 1dcb38d commit 45d1e3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 202 deletions.
2 changes: 1 addition & 1 deletion tests/models/test_granite.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .utils import check_logprobs_close

MODELS = [
"mayank-mishra/granite-3b-mup",
"ibm/PowerLM-3b",
]


Expand Down
4 changes: 2 additions & 2 deletions vllm/model_executor/models/granite.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
default_weight_loader, kv_cache_scales_loader, maybe_remap_kv_scale_name)
from vllm.model_executor.sampling_metadata import SamplingMetadata
from vllm.sequence import IntermediateTensors, SamplerOutput
# from transformers import GraniteConfig
from vllm.transformers_utils.configs.granite import GraniteConfig
from transformers import GraniteConfig
from vllm.utils import is_hip

from .interfaces import SupportsLoRA
Expand Down Expand Up @@ -216,6 +215,7 @@ def __init__(
cache_config=cache_config,
prefix=f"{prefix}.self_attn",
)

self.mlp = GraniteMLP(
hidden_size=self.hidden_size,
intermediate_size=config.intermediate_size,
Expand Down
199 changes: 0 additions & 199 deletions vllm/transformers_utils/configs/granite.py

This file was deleted.

0 comments on commit 45d1e3b

Please # to comment.