Commit
·
f153574
1
Parent(s):
f44c0a1
Reorder unsloth import for optimization clarity
Browse files- iconclass-vlm-sft.py +3 -2
iconclass-vlm-sft.py
CHANGED
|
@@ -28,6 +28,9 @@ Features:
|
|
| 28 |
- 🤗 Seamless HF Hub integration
|
| 29 |
"""
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
import argparse
|
| 32 |
import json
|
| 33 |
import logging
|
|
@@ -36,8 +39,6 @@ import sys
|
|
| 36 |
from datetime import datetime
|
| 37 |
from typing import Any, Dict
|
| 38 |
|
| 39 |
-
# Import unsloth first for optimizations
|
| 40 |
-
from unsloth import FastVisionModel, UnslothVisionDataCollator
|
| 41 |
|
| 42 |
import torch
|
| 43 |
from datasets import load_dataset
|
|
|
|
| 28 |
- 🤗 Seamless HF Hub integration
|
| 29 |
"""
|
| 30 |
|
| 31 |
+
# Import unsloth first for optimizations
|
| 32 |
+
from unsloth import FastVisionModel, UnslothVisionDataCollator
|
| 33 |
+
|
| 34 |
import argparse
|
| 35 |
import json
|
| 36 |
import logging
|
|
|
|
| 39 |
from datetime import datetime
|
| 40 |
from typing import Any, Dict
|
| 41 |
|
|
|
|
|
|
|
| 42 |
|
| 43 |
import torch
|
| 44 |
from datasets import load_dataset
|