Skip to content
Merged
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
9 changes: 3 additions & 6 deletions tensorrt_llm/inputs/registry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import enum
import random
import traceback
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from typing import (Any, Callable, Dict, List, Optional, Protocol, Tuple, Type,
Expand Down Expand Up @@ -697,8 +698,6 @@ def input_processor_wrapper(
input_processor.multimodal_hashing_supported = True
return prompt_token_ids, extra_processed_inputs
except Exception as e:
import traceback
traceback.print_exc()
logger.warning(f"Multimodal hashing failed: {e}.")
if try_multimodal_hashing:
# if trying for first time, fall back to basic input processor
Expand All @@ -708,19 +707,17 @@ def input_processor_wrapper(
try:
return input_processor(inputs, sampling_params)
except Exception as e2:
import traceback
traceback.print_exc()
logger.warning(f"Basic input processor failed: {e}.")
logger.debug(traceback.format_exc())
raise e2
else:
raise e
else:
try:
return input_processor(inputs, sampling_params)
except Exception as e:
import traceback
traceback.print_exc()
logger.warning(f"Basic input processor failed: {e}.")
logger.debug(traceback.format_exc())
raise e

return input_processor_wrapper