Download GR00T-WholeBodyControl/gear_sonic/trl/utils/data.py from Timsty/groot_deployment: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/Timsty/groot_deployment/resolve/main/GR00T-WholeBodyControl/gear_sonic/trl/utils/data.py
- Command line
-
hf download hf://Timsty/groot_deployment/GR00T-WholeBodyControl/gear_sonic/trl/utils/data.py
-
curl -L -o data.py https://huggingface.co/Timsty/groot_deployment/resolve/main/GR00T-WholeBodyControl/gear_sonic/trl/utils/data.py
528 Bytes
| """Lightweight dataset helpers (dummy datasets, episode attention masks).""" | |
| from datasets import Dataset | |
| def create_dummy_dataset(num_samples: int = 100) -> Dataset: | |
| """Create a dummy dataset with the specified number of samples. | |
| Args: | |
| num_samples (int): Number of samples to create in the dataset. | |
| Returns: | |
| Dataset: A HuggingFace Dataset containing dummy prompts. | |
| """ | |
| dummy_data = {"prompt": [f"Sample prompt {i}" for i in range(num_samples)]} | |
| return Dataset.from_dict(dummy_data) | |