Update modeling_hubert_kmeans.py
Browse files
modeling_hubert_kmeans.py
CHANGED
|
@@ -280,7 +280,7 @@ class HubertKmeansModel(PreTrainedModel):
|
|
| 280 |
|
| 281 |
# Return in processor format
|
| 282 |
return BatchEncoding({
|
| 283 |
-
"input_values": outputs.input_ids
|
| 284 |
"input_ids": outputs.input_ids,
|
| 285 |
"attention_mask": inputs.get("attention_mask"),
|
| 286 |
})
|
|
|
|
| 280 |
|
| 281 |
# Return in processor format
|
| 282 |
return BatchEncoding({
|
| 283 |
+
"input_values": outputs.input_ids, # Return tokens as input_values for compatibility
|
| 284 |
"input_ids": outputs.input_ids,
|
| 285 |
"attention_mask": inputs.get("attention_mask"),
|
| 286 |
})
|