davanstrien HF Staff commited on
Commit
b2e767b
·
1 Parent(s): f41c899

Remove trust_remote_code parameter from sample_dataset_to_parquet function

Browse files
Files changed (1) hide show
  1. atlas-export.py +1 -4
atlas-export.py CHANGED
@@ -76,7 +76,6 @@ def sample_dataset_to_parquet(
76
  dataset_id: str,
77
  sample_size: int,
78
  split: str = "train",
79
- trust_remote_code: bool = False,
80
  ) -> tuple[Path, Path]:
81
  """Sample dataset and save to local parquet file."""
82
  from datasets import load_dataset
@@ -84,9 +83,7 @@ def sample_dataset_to_parquet(
84
  logger.info(f"Pre-sampling {sample_size} examples from {dataset_id}...")
85
 
86
  # Load with streaming to avoid loading entire dataset
87
- ds = load_dataset(
88
- dataset_id, streaming=True, split=split, trust_remote_code=trust_remote_code
89
- )
90
 
91
  # Shuffle and sample
92
  ds = ds.shuffle(seed=42)
 
76
  dataset_id: str,
77
  sample_size: int,
78
  split: str = "train",
 
79
  ) -> tuple[Path, Path]:
80
  """Sample dataset and save to local parquet file."""
81
  from datasets import load_dataset
 
83
  logger.info(f"Pre-sampling {sample_size} examples from {dataset_id}...")
84
 
85
  # Load with streaming to avoid loading entire dataset
86
+ ds = load_dataset(dataset_id, streaming=True, split=split)
 
 
87
 
88
  # Shuffle and sample
89
  ds = ds.shuffle(seed=42)