File size: 5,903 Bytes
e9ac851
9a3bbad
 
a767de1
 
9a3bbad
a767de1
9a3bbad
a767de1
 
 
 
 
 
9a3bbad
a767de1
9941f2a
 
a767de1
 
 
 
 
 
 
 
 
 
 
 
9941f2a
a767de1
b341c0b
 
a767de1
b341c0b
 
 
 
91b5a73
a767de1
 
 
 
 
 
e9ac851
9a3bbad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
---
license: apache-2.0
task_categories:
- text-generation
- question-answering
language:
- en
tags:
- transit
- gtfs
- transportation
- public-transit
- instruction-tuning
- synthetic
size_categories:
- 1K<n<10K
dataset_info:
  features:
  - name: instruction
    dtype: string
  - name: response
    dtype: string
  - name: category
    dtype: string
  - name: template_id
    dtype: string
  - name: feed_id
    dtype: string
  - name: provider
    dtype: string
  splits:
  - name: train
    num_bytes: 904730
    num_examples: 3154
  - name: test
    num_bytes: 97857
    num_examples: 347
  download_size: 274812
  dataset_size: 1002587
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
---

# UmarTransit-Instruct-3k

A synthetic instruction-tuning dataset for **public transit systems** and **GTFS (General Transit Feed Specification)**, containing 3,306 question-answer pairs generated from 15 real-world open GTFS feeds across 10 countries.

Built to train domain-specific language models like [UmarTransit-1B](https://huggingface.co/umarfarookm/UmarTransit-1B).

> **Data Disclaimer:** This dataset was generated **exclusively from publicly available, open-source GTFS feeds** published by transit agencies for public use via the [Mobility Database](https://mobilitydatabase.org/). **No private, proprietary, or NDA-protected data** from any client, employer, or organization was used.

## Dataset Details

| Property | Value |
|----------|-------|
| **Total pairs** | 3,306 |
| **Training split** | 2,971 (90%) |
| **Test split** | 335 (10%) |
| **Categories** | 8 task categories |
| **Templates** | 45 question templates |
| **GTFS feeds** | 15 feeds from 10 countries |
| **Format** | JSONL (one JSON object per line) |
| **Language** | English |
| **License** | Apache 2.0 |

## Usage

```python
from datasets import load_dataset

dataset = load_dataset("umarfarookm/UmarTransit-Instruct-3k")

# Access splits
train = dataset["train"]
test = dataset["test"]

# Example
print(train[0]["instruction"])
print(train[0]["response"])
```

## Data Format

Each record contains:

```json
{
  "instruction": "How many routes does Chicago Transit Authority (CTA) have?",
  "response": "Chicago Transit Authority (CTA) operates 133 routes. 4 are Tram/Streetcar/Light rail routes...",
  "category": "agency_overview",
  "template_id": "agency_route_count_v1",
  "feed_id": "389",
  "provider": "Chicago Transit Authority (CTA)"
}
```

| Field | Description |
|-------|-------------|
| `instruction` | The user question |
| `response` | The expected answer |
| `category` | Task category (1 of 8) |
| `template_id` | Which template generated this pair |
| `feed_id` | Source GTFS feed ID from Mobility Database |
| `provider` | Transit agency name |

## Task Categories

| Category | Count | Description |
|----------|-------|-------------|
| agency_overview | 1,075 | Agency transit modes, route counts, timezones |
| stop_info | 911 | Stop locations, coordinates, accessibility |
| schedule | 636 | Trip schedules, departure/arrival times |
| route_info | 457 | Route descriptions, types, trip counts |
| transfer | 161 | Transfer connections, types, wait times |
| network_stats | 30 | Aggregate network statistics |
| gtfs_knowledge | 22 | GTFS specification concepts and definitions |
| comparative | 14 | Cross-agency comparisons |

## Source GTFS Feeds

All feeds are publicly available through the [Mobility Database](https://mobilitydatabase.org/).

| Country | City/Region | Agency | Feed ID |
|---------|-------------|--------|---------|
| US | Los Angeles | LA Metro | 29 |
| US | Chicago | CTA | 389 |
| US | Boston | MBTA | 437 |
| US | Phoenix | Valley Metro | 1086 |
| US | Austin | Capital Metro | 1029 |
| US | Portland | TriMet | 1077 |
| Canada | Toronto | TTC | 247 |
| Germany | Berlin | VBB | 782 |
| France | Paris | Ile-de-France Mobilites | 865 |
| Netherlands | National | OVapi | 1292 |
| Belgium | National | NMBS/SNCB | 732 |
| Finland | Helsinki | HSL | 686 |
| Denmark | National | Rejseplanen | 150 |
| Australia | Perth | Transperth | 1026 |
| New Zealand | Auckland | Auckland Transport | 147 |

## Generation Process

1. **Download** 15 open GTFS feeds from the Mobility Database
2. **Clean** raw CSV data into normalized Parquet format
3. **Extract** feed statistics (routes, stops, trips, transfers, schedules)
4. **Generate** Q&A pairs using 45 templates across 8 categories
5. **Validate** all pairs for format, content quality, and factual accuracy
6. **Split** into train/test (90/10, stratified by category)

All scripts are open-source: [github.com/umarfarookm/transit-foundation-model](https://github.com/umarfarookm/transit-foundation-model)

## Quality Validation

- **Format errors:** 0 / 3,306
- **Duplicate instructions:** 0
- **Factual accuracy:** 100% (275 spot-checks against source data)
- **Average instruction length:** 66 characters
- **Average response length:** 136 characters

## Trained Model

This dataset was used to train [UmarTransit-1B](https://huggingface.co/umarfarookm/UmarTransit-1B), which shows a **+74% improvement** over the base model (Qwen2.5-1.5B-Instruct) on a 193-question benchmark evaluation.

## Limitations

- **English only** — no multilingual coverage
- **Static schedules** — no real-time or delay data
- **Template-based** — all Q&A pairs follow fixed templates, limiting response diversity
- **15 feeds** — does not cover all transit agencies worldwide
- **Small scale** — 3,306 pairs is modest compared to general instruction datasets

## Citation

```bibtex
@dataset{umartransit_instruct_3k,
  author = {Umar Farook M},
  title = {UmarTransit-Instruct-3k: Transit and GTFS Instruction Dataset},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/umarfarookm/UmarTransit-Instruct-3k}
}
```