Spaces:
Paused
Paused
|
Download gemma/diffusion/hackable_diffusion_adapter/data/README.md from Jit89/bmap-gemma-engine: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/Jit89/bmap-gemma-engine/resolve/main/gemma/diffusion/hackable_diffusion_adapter/data/README.md
- Command line
-
hf download hf://spaces/Jit89/bmap-gemma-engine/gemma/diffusion/hackable_diffusion_adapter/data/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Jit89/bmap-gemma-engine/resolve/main/gemma/diffusion/hackable_diffusion_adapter/data/README.md
1.2 kB
Data Pipelines for Hackable Diffusion (HD) Text
This package contains all data loading, preprocessing, and dataset-specific pipelines for the Hackable Diffusion text SFT project.
Package Structure
data.py: Common data utilities, transforms (likeCanvasChunkerandSequenceTargetShift), and shared pipeline helpers.pubmedqa/: Dataset pipeline for the PubMedQA medical Q&A task.sudoku/: Dataset pipeline for the Sudoku puzzle solving task.
Key Components
Shared Transforms (data.py)
CanvasChunker: Splices a long response token sequence into multiple, fixed-size "canvas" chunks. This is required for the localized diffusion process, allowing the model to denoise specific parts of the text iteratively.SequenceTargetShift: Shifts sequences to prepare targets for the encoder loss.
Dataset-Specific Pipelines
Each subfolder contains:
- A data loader or custom
DataSource(e.g.,JsonlDataSourcefor PubMedQA,Bagzwrapper for Sudoku). - A conversion script (
convert_*.py) to preprocess raw data into the format expected by the pipeline. - A
README.mdexplaining the dataset structure.