Spaces:
Sleeping

PERDYPTO commited on
Commit
f78a5ff
·
verified ·
1 Parent(s): 89c6f00

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +3 -3
pipeline.py CHANGED
@@ -126,7 +126,7 @@ PYTHON_VERSIONS = [
126
  AST_ACCEPT_MODE = "ANY"
127
 
128
  # Parallelism – reduced for HF Space (2 vCPU, 16 GB RAM)
129
- MAX_WORKERS = 4
130
 
131
  # ------------------------------------------------------------
132
  # SHARD SIZE — CHANGED per request.
@@ -136,7 +136,7 @@ MAX_WORKERS = 4
136
  # ~1-1.4KB/row post-gzip this lands roughly in the 500MB-700MB
137
  # range per file, as you asked for.
138
  # ------------------------------------------------------------
139
- SHARD_ROWS = 500_000
140
 
141
  # Checkpoint frequency (in source records). Kept equal to
142
  # SHARD_ROWS so a checkpoint always lines up with a shard flush
@@ -183,7 +183,7 @@ DATASETS = [
183
  "repo_fields": ["max_stars_repo_name", "repo_name"],
184
  "path_fields": ["max_stars_repo_path", "path"],
185
  "license_fields": ["max_stars_repo_licenses", "license"],
186
- }
187
  {
188
  "name": "starcoderdata_python",
189
  "dataset": "bigcode/starcoderdata",
 
126
  AST_ACCEPT_MODE = "ANY"
127
 
128
  # Parallelism – reduced for HF Space (2 vCPU, 16 GB RAM)
129
+ MAX_WORKERS = 3
130
 
131
  # ------------------------------------------------------------
132
  # SHARD SIZE — CHANGED per request.
 
136
  # ~1-1.4KB/row post-gzip this lands roughly in the 500MB-700MB
137
  # range per file, as you asked for.
138
  # ------------------------------------------------------------
139
+ SHARD_ROWS = 1_000_000
140
 
141
  # Checkpoint frequency (in source records). Kept equal to
142
  # SHARD_ROWS so a checkpoint always lines up with a shard flush
 
183
  "repo_fields": ["max_stars_repo_name", "repo_name"],
184
  "path_fields": ["max_stars_repo_path", "path"],
185
  "license_fields": ["max_stars_repo_licenses", "license"],
186
+ },
187
  {
188
  "name": "starcoderdata_python",
189
  "dataset": "bigcode/starcoderdata",