Skip to content

Commit

Permalink
fix(nyz): fix import bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
PaParaZz1 committed Jan 27, 2025
1 parent 702f244 commit 1295987
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ding/utils/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
from .dataloader import AsyncDataLoader
from .dataset import NaiveRLDataset, D4RLDataset, HDF5Dataset, BCODataset, \
create_dataset, hdf5_save, offline_data_save_type
from .rlhf_online_dataset import OnlineRLDataset
from .rlhf_offline_dataset import OfflineRLDataset
2 changes: 1 addition & 1 deletion ding/utils/data/tests/test_rlhf_offline_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from datasets import load_dataset, concatenate_datasets
from rl.data.offlinerl_dataset import OfflineRLDataset
from ding.utils.data import OfflineRLDataset
from transformers import AutoTokenizer


Expand Down
2 changes: 1 addition & 1 deletion ding/utils/data/tests/test_rlhf_online_dataset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from datasets import load_dataset
from transformers import AutoTokenizer
from rl.data.onlinerl_dataset import OnlineRLDataset
from ding.utils.data import OnlineRLDataset


@pytest.fixture
Expand Down

0 comments on commit 1295987

Please sign in to comment.