File size: 3,808 Bytes
736d46c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Publishing scm-sql-dataset — one-shot runbook

Run these commands **from `Mtech-4th-sem-PROJECT/scm-sql-dataset/`** in a
PowerShell window. Every step is idempotent; a failed step can be re-run.

Assumed identities:
- GitHub: `AniruddhaPKawarase`
- Hugging Face: `AniruddhaAI`

## Step 0 — one-time tool installs

Install if not already present:

```powershell
# GitHub CLI (auth + repo creation from terminal)
winget install --id GitHub.cli

# Hugging Face CLI + huggingface_hub Python library
pip install -U "huggingface_hub[cli]"
```

Then authenticate once:

```powershell
gh auth login          # follow the browser prompt; pick HTTPS + "yes to git"
huggingface-cli login  # paste a token from https://huggingface.co/settings/tokens (Write access)
```

## Step 1 — push to GitHub

```powershell
cd "C:\Users\ANIRUDDHA ASUS\Downloads\Myself\Mtech-4th-sem-PROJECT\scm-sql-dataset"

git init -b main
git add .
git commit -m "SCM-SQL v1.0 — 500 pairs / 556 turn-level trials / 4 domains / 6 complexity levels"

# Create the public repo AND push in one shot
gh repo create AniruddhaPKawarase/scm-sql-dataset `
    --public `
    --description "SCM-SQL: 500-pair supply-chain NL-to-SQL evaluation set (BITS Pilani WILP dissertation, 2026)" `
    --source=. `
    --remote=origin `
    --push
```

Verify: browse to https://github.com/AniruddhaPKawarase/scm-sql-dataset

## Step 2 — push to Hugging Face

Hugging Face datasets live at https://huggingface.co/datasets/<user>/<name>
and use their own git remote.

```powershell
cd "C:\Users\ANIRUDDHA ASUS\Downloads\Myself\Mtech-4th-sem-PROJECT\scm-sql-dataset"

# Create the dataset repo on the Hub (idempotent — safe to re-run)
huggingface-cli repo create scm-sql --type dataset

# Add HF as an extra remote alongside GitHub
git remote add hf https://huggingface.co/datasets/AniruddhaAI/scm-sql

# Push to HF. Uses your huggingface-cli login credentials.
git push hf main
```

Verify: https://huggingface.co/datasets/AniruddhaAI/scm-sql

**Dataset card**: the top of `README.md` already contains the YAML
frontmatter that Hugging Face expects — task categories, language,
tags, licence, size — so the dataset page auto-populates.

## Step 3 — verify Hugging Face `datasets` loader works

Once the HF push completes, from *any* machine with `pip install datasets`:

```python
from datasets import load_dataset
ds = load_dataset("AniruddhaAI/scm-sql", split="test")
print(len(ds), "pairs")
print(ds[0])
```

If the dataset doesn't load out-of-the-box, add a tiny loader script:

```powershell
# Only if the auto-loader fails
python examples/load_dataset.py     # confirms local YAML loads fine
```

Hugging Face may auto-detect the YAML file; if it insists on a parquet
or JSONL form, run:

```powershell
python - << 'PY'
import yaml, json
from pathlib import Path
pairs = yaml.safe_load(Path("data/pilot_500.yaml").read_text(encoding="utf-8"))["pairs"]
with open("data/pilot_500.jsonl", "w", encoding="utf-8") as f:
    for p in pairs:
        f.write(json.dumps(p, ensure_ascii=False) + "\n")
print(len(pairs), "records converted")
PY

git add data/pilot_500.jsonl
git commit -m "data: add JSONL mirror for HF auto-loader"
git push hf main
git push origin main
```

## Step 4 — tag the release

Tag `v1.0` on GitHub so the citation URL points at a stable snapshot:

```powershell
git tag -a v1.0 -m "SCM-SQL v1.0 initial public release"
git push origin v1.0
git push hf v1.0
```

Then edit the GitHub release page: https://github.com/AniruddhaPKawarase/scm-sql-dataset/releases/new?tag=v1.0

## Rollback

If anything is wrong after pushing, you can force-push a fix or delete
the repo:

```powershell
gh repo delete AniruddhaPKawarase/scm-sql-dataset --confirm
huggingface-cli repo delete AniruddhaAI/scm-sql --type dataset --confirm
```