Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unblock wwb cli usage despite broken onnx #1297

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions tools/who_what_benchmark/whowhatbench/wwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
import pandas as pd
from datasets import load_dataset
from diffusers import DiffusionPipeline
from optimum.exporters.tasks import TasksManager
from optimum.intel import OVPipelineForText2Image
from optimum.intel.openvino import OVModelForCausalLM, OVModelForVisualCausalLM
from optimum.utils import NormalizedConfigManager, NormalizedTextConfig
from optimum.intel.openvino import OVModelForCausalLM, OVModelForVisualCausalLM, OVPipelineForText2Image
from PIL import Image
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer, AutoProcessor, AutoModel, AutoModelForVision2Seq
import openvino as ov
Expand All @@ -26,14 +23,6 @@
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

eaidova marked this conversation as resolved.
Show resolved Hide resolved
TasksManager._SUPPORTED_MODEL_TYPE["stablelm-epoch"] = (
TasksManager._SUPPORTED_MODEL_TYPE["llama"]
)
NormalizedConfigManager._conf["stablelm-epoch"] = NormalizedTextConfig.with_args(
num_layers="num_hidden_layers",
num_attention_heads="num_attention_heads",
)


class GenAIModelWrapper:
"""
Expand Down
Loading