Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair committed Nov 11, 2024
1 parent dfb567d commit 530bc44
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/lorax_server/utils/logits_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Dict, List, Optional, Union

import torch
from loguru import logger
from transformers import (
LogitsProcessor,
LogitsWarper,
Expand Down Expand Up @@ -175,8 +174,6 @@ def __call__(self, input_ids: torch.Tensor, scores: torch.Tensor) -> torch.Tenso
scores -= token_freq * self.frequency_penalty_tensor
scores -= mask * self.presence_penalty_tensor

logger.info(f"!!! Presence penalty: {self.presence_penalty_tensor} {mask}")

return scores

def filter(self, indices):
Expand Down

0 comments on commit 530bc44

Please sign in to comment.