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

Remove vllm.logger.init_logger dependency #53

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions vllm_hpu_extension/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

@cache
def lazy_logger():
from vllm.logger import init_logger
return init_logger(__name__)
import logging
return logging.getLogger(__name__)


def get_hw():
Expand Down
4 changes: 2 additions & 2 deletions vllm_hpu_extension/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import os
import torch.nn.functional as F
import math
import logging
import habana_frameworks.torch.core as htcore

from vllm.logger import init_logger
from vllm_hpu_extension.capabilities import capabilities

logger = init_logger(__name__)
logger = logging.getLogger(__name__)
HPUFusedRMSNorm = None
try:
from habana_frameworks.torch.hpex.normalization import FusedRMSNorm
Expand Down
4 changes: 2 additions & 2 deletions vllm_hpu_extension/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
from typing import Any, List
import psutil
import torch
import logging
from habana_frameworks.torch import torch

from vllm_hpu_extension.utils import is_fake_hpu
from vllm.logger import init_logger
from vllm.utils import get_vllm_instance_id

logger = init_logger(__name__)
logger = logging.getLogger(__name__)


class FileWriter(threading.Thread):
Expand Down