mirror of
https://github.com/hanzoai/gym-v1.git
synced 2026-10-30 18:35:21 +00:00
37 lines
961 B
Python
37 lines
961 B
Python
#!/usr/bin/env python
|
|
import argparse
|
|
from dataset import get_dataset
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(
|
|
description="Download dataset files for DistributedSim"
|
|
)
|
|
parser.add_argument(
|
|
"--dataset", type=str, default="owt", help="Dataset identifier (default: owt)"
|
|
)
|
|
parser.add_argument(
|
|
"--proportion",
|
|
type=float,
|
|
default=1.0,
|
|
help="Proportion of dataset to download (0.0-1.0)",
|
|
)
|
|
parser.add_argument(
|
|
"--max_workers",
|
|
type=int,
|
|
default=8,
|
|
help="Number of threads to use for downloading (default: 8)",
|
|
)
|
|
|
|
args = parser.parse_args()
|
|
|
|
# Call get_dataset which will download and cache the data
|
|
# We discard the returned dataset since we only want to download
|
|
_, _ = get_dataset(args.dataset, 0, args.proportion, max_workers=args.max_workers)
|
|
|
|
print("Dataset download complete!")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|