Pedro Cavalcanti
commited on
Commit
·
088b637
1
Parent(s):
07050ac
changed: logits
Browse files- modeling_florence2.py +2 -0
modeling_florence2.py
CHANGED
@@ -2556,6 +2556,7 @@ class Florence2Seq2SeqLMOutput(ModelOutput):
|
|
2556 |
"""
|
2557 |
|
2558 |
loss: torch.FloatTensor = None
|
|
|
2559 |
last_hidden_state: torch.FloatTensor = None
|
2560 |
past_key_values: Optional[Tuple[Tuple[torch.FloatTensor]]] = None
|
2561 |
decoder_hidden_states: Optional[Tuple[torch.FloatTensor, ...]] = None
|
@@ -3061,6 +3062,7 @@ class Florence2ForConditionalGeneration(Florence2PreTrainedModel):
|
|
3061 |
return (loss,) + output if loss is not None else output
|
3062 |
|
3063 |
print(loss)
|
|
|
3064 |
|
3065 |
return Florence2Seq2SeqLMOutput(
|
3066 |
loss=loss,
|
|
|
2556 |
"""
|
2557 |
|
2558 |
loss: torch.FloatTensor = None
|
2559 |
+
logits: torch.FloatTensor = None
|
2560 |
last_hidden_state: torch.FloatTensor = None
|
2561 |
past_key_values: Optional[Tuple[Tuple[torch.FloatTensor]]] = None
|
2562 |
decoder_hidden_states: Optional[Tuple[torch.FloatTensor, ...]] = None
|
|
|
3062 |
return (loss,) + output if loss is not None else output
|
3063 |
|
3064 |
print(loss)
|
3065 |
+
print(logits)
|
3066 |
|
3067 |
return Florence2Seq2SeqLMOutput(
|
3068 |
loss=loss,
|