Update README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445---license: mitdataset_info:features:- name: filenamedtype: string- name: cuda_sourcedtype: string- name: cuda_hostdtype: string- name: cuda_devicedtype: string- name: hip_sourcedtype: string- name: hip_hostdtype: string- name: hip_devicedtype: stringsplits:- name: trainnum_bytes: 18979794237num_examples: 70694- name: stacknum_bytes: 6087813411num_examples: 24170- name: synthnum_bytes: 11766271412num_examples: 40591- name: benchnum_bytes: 3676152num_examples: 40download_size: 10789629544dataset_size: 36837555212configs:- config_name: defaultdata_files:- split: trainpath: data/train-*- split: stackpath: data/stack-*- split: synthpath: data/synth-*- split: benchpath: data/bench-*---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126---license: mitdataset_info:features:- name: filenamedtype: string- name: cuda_sourcedtype: string- name: cuda_hostdtype: string- name: cuda_devicedtype: string- name: hip_sourcedtype: string- name: hip_hostdtype: string- name: hip_devicedtype: stringsplits:- name: trainnum_bytes: 18979794237num_examples: 70694- name: stacknum_bytes: 6087813411num_examples: 24170- name: synthnum_bytes: 11766271412num_examples: 40591- name: benchnum_bytes: 3676152num_examples: 40download_size: 10789629544dataset_size: 36837555212configs:- config_name: defaultdata_files:- split: trainpath: data/train-*- split: stackpath: data/stack-*- split: synthpath: data/synth-*- split: benchpath: data/bench-*---# 💻 CASS: CUDA–AMD Assembly and Source Mapping[CASS](https://huggingface.co/datasets/MBZUAI/CASS) is the **first large-scale dataset** for cross-architecture GPU transpilation, providing semantically aligned CUDA–HIP source pairs and their corresponding host/device assemblies for **NVIDIA (SASS)** and **AMD (RDNA3)** platforms. It enables research in:* 🔁 Source-to-source translation (CUDA ↔ HIP)* ⚙️ Assembly-level translation (SASS ↔ RDNA3)* 🧠 LLM-guided GPU code transpilation---## 📚 Dataset StructureEach sample contains the following fields:| Field | Description || ------------- | ------------------------------------------ || `filename` | Sample ID or file name || `cuda_source` | Original CUDA source code || `cuda_host` | Compiled x86 host-side assembly from CUDA || `cuda_device` | Compiled SASS (Nvidia GPU) device assembly || `hip_source` | Transpiled HIP source code (via HIPIFY) || `hip_host` | Compiled x86 host-side assembly from HIP || `hip_device` | Compiled RDNA3 (AMD GPU) device assembly |---## 🔀 Dataset Splits| Split | Description | # Examples || ------- | ----------------------------------------- | ---------- || `train` | Union of `synth`, `stack`, and `opencl` | 70,694 || `synth` | LLM-synthesized CUDA programs | 40,591 || `stack` | Scraped and filtered CUDA from StackV2 | 24,170 || `bench` | 40 curated eval tasks from 16 GPU domains | 40 |---## 📦 How to Load```pythonfrom datasets import load_dataset# 🧠 Load the full dataset (default config with all splits)cass = load_dataset("MBZUAI/cass", name="default")# Access a specific splittrain_data = cass["train"] # train = stack + synth + openclstack_data = cass["stack"]synth_data = cass["synth"]bench_data = cass["bench"]```---## 📈 Benchmark and EvaluationThe `bench` split includes 40 samples across 16 domains like:* 🧪 Physics Simulation* 📊 Data Structures* 📸 Image Processing* 🧮 Linear AlgebraAll samples have been manually verified for semantic equivalence across CUDA and HIP and come with executable device/host binaries.---## 📄 LicenseReleased under the **MIT license**.---## 🔗 Useful Links* 🤗 Hugging Face Collection: [CASS on Hugging Face](https://huggingface.co/collections/MBZUAI/cass-6825b5bf7414503cf16f87b2)* 📂 Code & Tools: [GitHub Repository](https://github.com/GustavoStahl/CASS)---Let me know if you'd like a shorter version, a version tailored for a dataset card (`dataset_card.json`), or to include GPU specs for compilation details.
README.md+126-45