Skip to content

Commit

Permalink
fix mllama bf16 accuracy (#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Jan 8, 2025
1 parent d423fcd commit 513d3bc
Show file tree
Hide file tree
Showing 4 changed files with 1,618 additions and 252 deletions.
2 changes: 1 addition & 1 deletion notebooks/mllama-3.2/data_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def prepare_dataset_llm(mllm_id, opt_init_steps=50, max_train_samples=1000, file
calibration_data = pickle.load(f)
return calibration_data

mllm = OVMLlamaForConditionalGeneration(mllm_id, slice_lm_head=False)
mllm = OVMLlamaForConditionalGeneration(mllm_id, slice_lm_head=False, force_fp32_pkv=True)
processor = AutoProcessor.from_pretrained(mllm_id)

def collate_fn(example, image_column="image_url", text_column="caption"):
Expand Down
Loading

0 comments on commit 513d3bc

Please sign in to comment.