You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @siddk, I loaded the "prism-dinosiglip-224px+7b" weights you uploaded on huggingface and tried to decode predicted texts from CausalLMOutputWithPast in the training code as follows:
for train_idx, batch in enumerate(dataloader):
with torch.autocast(
"cuda",
dtype=self.mixed_precision_dtype,
enabled=self.enable_mixed_precision_training,
):
output: CausalLMOutputWithPast = self.vlm(
input_ids=batch["input_ids"],
attention_mask=batch["attention_mask"],
pixel_values=batch["pixel_values"],
labels=batch["labels"],
multimodal_indices=batch["multimodal_indices"],
)
loss = output.loss
predicted_str = self.vlm.llm_backbone.tokenizer.decode(torch.argmax(output['logits'], dim=-1)[0], skip_special_tokens=True).strip()
I decode the logits of the first sequence of the batch but get a random response like "Unterscheidung in0 atrys d2 grassy3 dery02ro imagepet:4 yellow-,y grassiaans grass in p1 in,1es d and grasss Ves blackbl0 ,0,, d me we of black color,,ery ofch ofery garden plant grass flowers0 v,,,, v0eryies bird tur plantsclose grassy v". It's kind of weird.
The text was updated successfully, but these errors were encountered:
Hello @siddk, I loaded the "prism-dinosiglip-224px+7b" weights you uploaded on huggingface and tried to decode predicted texts from CausalLMOutputWithPast in the training code as follows:
I decode the logits of the first sequence of the batch but get a random response like "Unterscheidung in0 atrys d2 grassy3 dery02ro imagepet:4 yellow-,y grassiaans grass in p1 in,1es d and grasss Ves blackbl0 ,0,, d me we of black color,,ery ofch ofery garden plant grass flowers0 v,,,, v0eryies bird tur plantsclose grassy v". It's kind of weird.
The text was updated successfully, but these errors were encountered: