Skip to content

Commit

Permalink
fix(pre_commit): 🎨 auto format pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 25, 2024
1 parent 4629547 commit 20f418f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions maestro/trainer/models/qwen2_vl/loaders.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from transformers.pipelines.base import Dataset

from maestro.trainer.common.data_loaders.datasets import JSONLDataset
Expand All @@ -17,18 +16,7 @@ def __getitem__(self, idx):
suffix = data["suffix"]
return {
"messages": [
{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": prefix}
]
},
{
"role": "assistant",
"content": [
{"type": "text", "text": suffix}
]
}
{"role": "user", "content": [{"type": "image", "image": image}, {"type": "text", "text": prefix}]},
{"role": "assistant", "content": [{"type": "text", "text": suffix}]},
]
}

0 comments on commit 20f418f

Please sign in to comment.