Skip to content

Commit

Permalink
Fix wrong import
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Romeyn <[email protected]>
  • Loading branch information
marcromeyn committed Oct 30, 2024
1 parent f625091 commit 0d12fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nemo/collections/llm/gpt/data/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from nemo.collections.llm.gpt.data.dolly import DollyDataModule
from nemo.collections.llm.gpt.data.mock import MockDataModule
from nemo.collections.llm.gpt.data.squad import SquadDataModule
from nemo.collections.llm.gpt.data.hf_dataset import HFDatasetDataModule
from nemo.collections.llm.gpt.data.hf_dataset import HfDatasetDataModule


@run.cli.factory
Expand All @@ -43,7 +43,7 @@ def dolly() -> pl.LightningDataModule:
@run.cli.factory
@run.autoconvert
def hf_dataset(dataset: str) -> pl.LightningDataModule:
return HFDatasetDataModule(dataset=dataset, seq_length=4096, global_batch_size=16, micro_batch_size=2)
return HfDatasetDataModule(dataset=dataset, seq_length=4096, global_batch_size=16, micro_batch_size=2)

Check failure

Code scanning / CodeQL

Wrong name for an argument in a class instantiation Error

Keyword argument 'seq_length' is not a supported parameter name of
HfDatasetDataModule.__init__
.


__all__ = ["mock", "squad", "dolly", "hf_dataset"]

0 comments on commit 0d12fff

Please sign in to comment.