[Error] ModernBERT기반 모델 사용할 때 발생하는 오류
P
paper Lee
from pylate import models
model = models.ColBERT(
model_name_or_path=model_name,
)
model.tokenizer.model_input_names = ["input_ids", "attention_mask"]model = ColBERTWrapper(model_name, model_kwargs={"torch_dtype": torch.float32}, device=device)
if hasattr(model.model[0].tokenizer, 'model_max_length'):
model.model[0].tokenizer.model_input_names = ['input_ids', 'attention_mask']
