NVFP4 first 3 problems release

#11
.gitignore DELETED
@@ -1,3 +0,0 @@
1
- __pycache__/
2
- .venv/
3
- .hf.env
 
 
 
 
LICENSE DELETED
@@ -1,237 +0,0 @@
1
- June 9 Researcher Reciprocity License
2
- Version 1.0
3
- dated June 9, 2026
4
-
5
- This is a license (the "License") between you ("You") and GPU Mode and the
6
- KernelBot dataset contributors ("Licensor"). This License adapts the Open
7
- Responsible AI License Data ("Open RAIL-D") pattern for a dataset artifact and
8
- adds the Researcher Reciprocity use restriction in Attachment A. It is intended
9
- to have an open and permissive character while preserving reciprocal research
10
- access when the Dataset is used to train or improve AI systems.
11
-
12
- If you train on it, you let us generate.
13
-
14
- Section I: Preamble
15
-
16
- KernelBot is a competition platform for writing heterogeneous GPU code. The
17
- Dataset contains submissions, metadata, benchmark results, and related materials
18
- from KernelBot competitions.
19
-
20
- Licensor wishes to promote collaboration, open research, education,
21
- benchmarking, and broad reuse of the Dataset. Licensor also wishes to avoid a
22
- one-way bargain in which researchers and contributors publish ideas and code
23
- that are used to improve AI systems, while the providers of those AI systems
24
- then prohibit those same researchers from generating outputs, evaluating the
25
- systems, benchmarking them, publishing research, or exploring their own ideas.
26
-
27
- This License therefore grants broad rights to use the Dataset, subject to
28
- attribution and the use-based restriction in Attachment A.
29
-
30
- Section II: Definitions
31
-
32
- 1. "License" means these terms and conditions for use, reproduction, and
33
- Distribution.
34
-
35
- 2. "Dataset" means the files, records, metadata, documentation, and other
36
- materials distributed with this License.
37
-
38
- 3. "Output" means the results of operating a model, service, application, or
39
- other system.
40
-
41
- 4. "Model" means any machine-learning or artificial-intelligence based
42
- assemblies, including model weights, checkpoints, parameters, optimizer states,
43
- adapters, embedding systems, agents, APIs, hosted services, or other systems
44
- that are trained, tuned, evaluated, benchmarked, or otherwise used in connection
45
- with the Dataset.
46
-
47
- 5. "Derivatives of the Dataset" means all modifications, transformations,
48
- annotations, translations, extracts, subsets, compilations, arrangements, or
49
- other works based on the Dataset.
50
-
51
- 6. "Derivatives of a Model" means all modifications to a Model, works based on
52
- a Model, or any other model that is created or initialized by transfer of
53
- patterns of weights, parameters, activations, embeddings, outputs, or other
54
- representations of the Model, including distillation methods and methods based
55
- on synthetic data generated by the Model.
56
-
57
- 7. "Training Use" means using the Dataset, in whole or in part, to train,
58
- pretrain, fine-tune, post-train, align, distill, evaluate for training,
59
- benchmark for training, generate synthetic data for training, construct
60
- embeddings for training, rank or filter examples for training, or otherwise
61
- improve the weights, behavior, capabilities, or performance of a Model or
62
- Derivatives of a Model.
63
-
64
- 8. "Covered Model" means any Model or Derivatives of a Model that is trained,
65
- fine-tuned, distilled, aligned, evaluated for training, benchmarked for
66
- training, or otherwise improved through Training Use of the Dataset.
67
-
68
- 9. "Distribution" means any transmission, reproduction, publication, hosting,
69
- or other sharing of the Dataset, Derivatives of the Dataset, a Covered Model, or
70
- Derivatives of a Covered Model to a third party, including making any of them
71
- available by electronic or remote means, such as API-based or web access.
72
-
73
- 10. "Licensor" means GPU Mode, the dataset maintainers, and any contributor who
74
- has authority to license their contribution under these terms.
75
-
76
- 11. "You" or "Your" means an individual or legal entity exercising permissions
77
- granted by this License or making use of the Dataset for any purpose.
78
-
79
- 12. "Third Parties" means individuals or legal entities that are not under
80
- common control with Licensor or You.
81
-
82
- 13. "Authorized Researchers" means GPU Mode, the dataset maintainers, dataset
83
- contributors, and any researchers or organizations that GPU Mode designates in
84
- writing for purposes of generating outputs from, evaluating, benchmarking,
85
- auditing, criticizing, or publishing research about a Covered Model.
86
-
87
- 14. "Ordinary Users" means the general class of users to whom You make a
88
- Covered Model available, including through a public product, commercial product,
89
- research release, API, hosted service, preview, beta, or gated access program.
90
-
91
- Section III: Intellectual Property Rights
92
-
93
- 2. Grant of Copyright License. Subject to the terms and conditions of this
94
- License, each Licensor grants You a worldwide, non-exclusive, no-charge,
95
- royalty-free copyright license to reproduce, prepare derivative works of,
96
- publicly display, publicly perform, sublicense, and distribute the Dataset and
97
- Derivatives of the Dataset.
98
-
99
- 3. No Patent License. This License does not grant any patent license.
100
-
101
- Section IV: Conditions of Usage, Distribution, and Redistribution
102
-
103
- 4. Distribution and Redistribution. You may reproduce and distribute copies of
104
- the Dataset or Derivatives of the Dataset in any medium, with or without
105
- modifications, provided that You meet the following conditions:
106
-
107
- 4.1. You must give Third Party recipients of the Dataset or Derivatives of the
108
- Dataset a copy of this License or a clear link to it.
109
-
110
- 4.2. You must retain reasonable copyright, license, and attribution notices,
111
- excluding notices that do not pertain to any part of the Dataset or Derivatives
112
- of the Dataset.
113
-
114
- 4.3. You must give reasonable attribution to GPU Mode and the KernelBot dataset.
115
- Reasonable attribution includes, where practical, the dataset name, a link to
116
- the dataset source, and any citation requested in the Dataset documentation.
117
-
118
- 4.4. You must cause any modified files, datasets, or documentation that You
119
- Distribute to carry prominent notices stating that You changed them.
120
-
121
- 4.5. You may add Your own copyright statement to Your modifications and may
122
- provide additional or different license terms for Your independent additions,
123
- annotations, analyses, software, models, outputs, or other works, provided that
124
- Your use, reproduction, and Distribution of the Dataset otherwise complies with
125
- this License.
126
-
127
- 5. Use-Based Restrictions. The restriction set forth in Attachment A is a
128
- use-based restriction. You may not use the Dataset, Derivatives of the Dataset,
129
- Covered Models, or Derivatives of Covered Models for the restricted use
130
- specified in Attachment A.
131
-
132
- For Training Use, the use-based restriction in Attachment A must be included as
133
- an enforceable provision in any legal agreement, terms of use, acceptable use
134
- policy, license, or other terms governing the use or Distribution of a Covered
135
- Model or Derivatives of a Covered Model. You must give notice to subsequent
136
- users that the Covered Model or Derivatives of the Covered Model are subject to
137
- Attachment A.
138
-
139
- 6. Outputs. Except as stated in this License, Licensor claims no rights in the
140
- Output You generate using a Covered Model. You are accountable for the Output
141
- You generate and its subsequent uses. No use of the Output may contravene this
142
- License.
143
-
144
- Section V: Other Provisions
145
-
146
- 7. No Endorsement. Nothing in this License permits You to use Licensor's names,
147
- logos, trademarks, or service marks to imply endorsement, sponsorship, or
148
- approval.
149
-
150
- 8. Third-Party Rights. The Dataset may include material submitted by third
151
- parties. This License applies only to rights that Licensor has authority to
152
- license. You are responsible for complying with any third-party rights, privacy
153
- obligations, laws, or regulations that apply to Your use.
154
-
155
- 9. Disclaimer of Warranty. Unless required by applicable law or agreed to in
156
- writing, Licensor provides the Dataset on an "AS IS" BASIS, WITHOUT WARRANTIES
157
- OR CONDITIONS OF ANY KIND, either express or implied, including warranties or
158
- conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR
159
- PURPOSE, ACCURACY, AVAILABILITY, OR ABSENCE OF DEFECTS. You are solely
160
- responsible for determining the appropriateness of using or redistributing the
161
- Dataset and assume any risks associated with Your exercise of permissions under
162
- this License.
163
-
164
- 10. Limitation of Liability. To the maximum extent permitted by law, in no event
165
- and under no legal theory, whether in tort, contract, or otherwise, unless
166
- required by applicable law or agreed to in writing, shall any Licensor or
167
- contributor be liable to You for damages, including direct, indirect, special,
168
- incidental, consequential, exemplary, or punitive damages arising as a result of
169
- this License or out of the use or inability to use the Dataset, even if such
170
- Licensor or contributor has been advised of the possibility of such damages.
171
-
172
- 11. Accepting Warranty or Additional Liability. While redistributing the Dataset
173
- or Derivatives of the Dataset, You may choose to offer, and charge a fee for,
174
- acceptance of support, warranty, indemnity, or other liability obligations or
175
- rights consistent with this License. However, in accepting such obligations, You
176
- may act only on Your own behalf and on Your sole responsibility, not on behalf
177
- of any Licensor or contributor, and only if You agree to indemnify, defend, and
178
- hold each Licensor and contributor harmless for any liability incurred by, or
179
- claims asserted against, such Licensor or contributor by reason of Your
180
- accepting any such warranty or additional liability.
181
-
182
- 12. Termination. If You violate this License, Your rights under it terminate
183
- automatically. For violations other than violations of Attachment A, Your rights
184
- are reinstated if You cure the violation within 30 days after discovering it or
185
- receiving written notice from Licensor. For violations of Attachment A involving
186
- a Covered Model, Your Training Use rights terminate automatically as to the
187
- affected Covered Model and may be reinstated only if Licensor provides written
188
- reinstatement or waiver.
189
-
190
- 13. Severability. If any provision of this License is held invalid, illegal, or
191
- unenforceable, the remaining provisions remain valid as if the provision had not
192
- been set forth. The unenforceable provision will be interpreted or reformed only
193
- to the minimum extent necessary to make it enforceable while preserving its
194
- purpose.
195
-
196
- 14. Additional Permission. Licensor may grant additional permissions,
197
- exceptions, waivers, commercial terms, or private licenses in writing. Those
198
- permissions apply only to the recipient and scope stated in the written grant.
199
-
200
- End of Terms and Conditions
201
-
202
- Attachment A
203
- Use Restriction: Researcher Reciprocity for Training Use
204
-
205
- You agree not to use the Dataset or Derivatives of the Dataset for Training Use
206
- if You make the resulting Covered Model or Derivatives of the Covered Model
207
- available under terms, policies, technical measures, access rules, account
208
- restrictions, acceptable-use rules, or other conditions that prohibit, penalize,
209
- or materially burden Authorized Researchers from:
210
-
211
- 1. generating outputs from the Covered Model;
212
-
213
- 2. evaluating, auditing, red-teaming, or benchmarking the Covered Model;
214
-
215
- 3. comparing the Covered Model to other systems;
216
-
217
- 4. publishing research, criticism, measurements, benchmark results, or analysis
218
- concerning the Covered Model; or
219
-
220
- 5. using the Covered Model to explore, test, or develop their own research
221
- ideas.
222
-
223
- This access must be available on materially equal terms to those offered to
224
- Ordinary Users of the Covered Model, subject only to neutral limits that apply
225
- equally to Ordinary Users, such as generally applicable rate limits, payment
226
- terms, safety rules, security rules, and laws.
227
-
228
- Any terms, policies, technical measures, access rules, account restrictions,
229
- acceptable-use rules, or other conditions that conflict with this Attachment A
230
- make the Covered Model ineligible for the Training Use grant unless Licensor has
231
- waived the conflict in writing.
232
-
233
- You may not suspend, ban, throttle, sue, threaten, or otherwise retaliate
234
- against Authorized Researchers solely because they engage in the activities
235
- listed in this Attachment A, provided that their activity complies with
236
- generally applicable law and neutral safety or security rules that are also
237
- applied to Ordinary Users.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,135 +1,27 @@
1
  ---
2
  configs:
3
- - config_name: amd_submissions
4
  data_files: "submissions.parquet"
5
- - config_name: amd_successful_submissions
6
  data_files: "successful_submissions.parquet"
7
- - config_name: amd_1_1m_competition
8
- data_files: "amd_1_1m_competition_submissions.parquet"
9
- - config_name: helion_b200_nebius
10
- data_files: "helion_b200_nebius_submissions.parquet"
11
- - config_name: trimul_submissions
12
- data_files: "trimul_submissions.parquet"
13
- - config_name: nvidia_nvfp4_submissions
14
- data_files: "nvidia_nvfp4_submissions.parquet"
15
- - config_name: pmpp_v2_submissions
16
- data_files: "pmpp_v2_submissions.parquet"
17
- - config_name: linalg_submissions
18
- data_files: "linalg_submissions.parquet"
19
  - config_name: leaderboards
20
  data_files: "leaderboards.parquet"
21
  tags:
22
  - code
23
- license: other
24
  ---
25
 
26
- # KernelBot Competition Data
27
 
28
- This dataset contains GPU kernel submissions from the KernelBot competition platform. Submissions are optimized GPU kernels written for specific hardware targets.
29
 
30
- ## Data Files
31
-
32
- ### AMD MI300 Submissions
33
- | File | Description |
34
- |------|-------------|
35
- | `submissions.parquet` | All AMD competition submissions |
36
- | `successful_submissions.parquet` | AMD submissions that passed correctness tests |
37
- | `deduplicated_submissions.parquet` | AMD submissions deduplicated by (user, code) |
38
- | `deduplicated_successful_submissions.parquet` | Deduplicated passing AMD submissions |
39
-
40
- **AMD Problems:** fp8-gemm, moe (mixture of experts), mla-decode, all2all, gemm+reducescatter, allgather+gemm, mxfp4-mm, moe-mxfp4, mixed-mla
41
-
42
- ### AMD 1.1M Competition
43
- | File | Size | Description |
44
- |------|------|-------------|
45
- | `amd_1_1m_competition_submissions.parquet` | ~699 MB | Deduplicated submissions with code for `amd-mxfp4-mm` (763), `amd-moe-mxfp4` (764), and `amd-mixed-mla` (765) |
46
-
47
- ### Trimul
48
- | File | Size | Description |
49
- |------|------|-------------|
50
- | `trimul_submissions.parquet` | ~120 MB | Deduplicated submissions with code for `trimul` (leaderboard 496) |
51
-
52
- `trimul` is a separate mixed-GPU problem and is not grouped with the AMD competition exports.
53
-
54
- ### Helion B200_Nebius
55
- | File | Size | Description |
56
- |------|------|-------------|
57
- | `helion_b200_nebius_submissions.parquet` | ~4 MB | Deduplicated submissions with code for `causal_conv1d` (766), `fp8_quant` (767), `gated_deltanet_chunk_fwd_h` (768), `gated_deltanet_chunk_fwd_o` (769), and `gated_deltanet_recompute_w_u` (770) |
58
-
59
- **Measurement note:** these problems were run on `B200_Nebius`, and the measurements for this problem set are brittle. Treat leaderboard scores from this export with extra caution.
60
-
61
- ### NVIDIA Blackwell NVFP4 Submissions
62
- | File | Size | Description |
63
- |------|------|-------------|
64
- | `nvidia_nvfp4_submissions.parquet` | ~1.4 GB | NVFP4 submissions deduplicated by (user, code), with full code content |
65
-
66
-
67
- **NVFP4 Problems:** gemv (leaderboard 595), gemm (597), dual_gemm (598), modal_dual_gemm (697), group_gemm (730)
68
-
69
- **Note on Dual GEMM:** There are two variants of the dual_gemm problem. Midway through the competition, on-prem hardware measurements became unreliable, so a second leaderboard was created on Modal infrastructure. The Modal measurements (leaderboard 697, `modal_nvfp4_dual_gemm`) are more trustworthy.
70
-
71
- **Note:** Scores are execution time in seconds. **Lower is better.**
72
-
73
- ### PMPP v2 Submissions
74
- | File | Size | Description |
75
- |------|------|-------------|
76
- | `pmpp_v2_submissions.parquet` | ~28 MB | All PMPP v2 submissions with full code content |
77
-
78
- **PMPP v2 Problems:** conv2d_v2 (537), grayscale_v2 (538), histogram_v2 (539), matmul_v2 (540), prefixsum_v2 (541), sort_v2 (542), vectoradd_v2 (543), vectorsum_v2 (544)
79
-
80
- ### Linear Algebra Submissions
81
- | File | Size | Description |
82
- |------|------|-------------|
83
- | `linalg_submissions.parquet` | ~552 MB | Deduplicated submissions with code for `qr_v2` (leaderboard 774) |
84
-
85
- This export includes only `qr_v2`; the earlier `qr` leaderboard (773) is not included.
86
-
87
- ## Helper Scripts
88
-
89
- - `analyze_submissions.py` - Python functions for analyzing submissions
90
- - `skills.md` - Documentation for data processing workflows
91
-
92
- ### Quick Start
93
-
94
- ```python
95
- from analyze_submissions import load_submissions, top_contestants, author_progression
96
-
97
- # Load NVIDIA NVFP4 data
98
- df = load_submissions()
99
-
100
- # Get top 20 for a problem
101
- leaders = top_contestants(df, problem_name='nvfp4_gemm', n=20)
102
-
103
- # See a user's progression over time
104
- progression = author_progression(df, user_name='username', problem_name='nvfp4_gemm')
105
- ```
106
-
107
- ## Learn More
108
-
109
- - Competition platform: [gpumode.com](https://gpumode.com)
110
- - Reference kernels and problem specs: [github.com/gpu-mode/reference-kernels](https://github.com/gpu-mode/reference-kernels)
111
-
112
- ## License
113
-
114
- This dataset is licensed under the [June 9 Researcher Reciprocity License](LICENSE).
115
-
116
- You are free to use, share, analyze, transform, and redistribute the material for research, education, benchmarking, publication, commercial analysis, and other lawful purposes, provided you give appropriate credit.
117
-
118
- This license adapts the Open RAIL-D structure and adds one specific use restriction: training, fine-tuning, distillation, synthetic-data generation for training, embedding for training, or otherwise using this dataset to improve an AI model or AI service requires Researcher Reciprocity.
119
-
120
- > If you train on it, you let us generate.
121
-
122
- Covered AI model and service providers may not use this dataset while imposing terms that prevent GPU Mode, dataset contributors, or authorized researchers from generating outputs, evaluating models, benchmarking, publishing research, or exploring their own research ideas on materially equal terms to ordinary users.
123
-
124
- **Attribution:** Please cite GPU Mode and link to this dataset. For academic papers, use the citation below.
125
-
126
- ## Citation
127
 
128
  If you use this dataset in your work, please cite:
129
 
130
  ```bibtex
131
  @inproceedings{
132
- kernelbot2025,
133
  title={KernelBot: A Competition Platform for Writing Heterogeneous {GPU} Code},
134
  author={Alex L Zhang and Matej Sirovatka and Erik Schultheis and Benjamin Horowitz and Mark Saroufim},
135
  booktitle={Championing Open-source DEvelopment in ML Workshop @ ICML25},
 
1
  ---
2
  configs:
3
+ - config_name: submissions
4
  data_files: "submissions.parquet"
5
+ - config_name: successful_submissions
6
  data_files: "successful_submissions.parquet"
 
 
 
 
 
 
 
 
 
 
 
 
7
  - config_name: leaderboards
8
  data_files: "leaderboards.parquet"
9
  tags:
10
  - code
11
+ license: mit
12
  ---
13
 
14
+ This is the dataset that was created from the first and second AMD $100K kernel competitions, containing roughly 110K kernels for fp8-gemm, moe, mla, all2all, gemm+reducescatter, and allgather+gemm optimized to run on MI300. Learn more at gpumode.com/v2/news
15
 
16
+ To see the full list of kernel competitions we've ran and are running you can checkout https://github.com/gpu-mode/reference-kernels which also contains details on reference kernels and their input shapes and distributions
17
 
18
+ We are planning on adding kernels optimized for NVFP4 on Blackwell next
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  If you use this dataset in your work, please cite:
21
 
22
  ```bibtex
23
  @inproceedings{
24
+ zhang2025kernelbot,
25
  title={KernelBot: A Competition Platform for Writing Heterogeneous {GPU} Code},
26
  author={Alex L Zhang and Matej Sirovatka and Erik Schultheis and Benjamin Horowitz and Mark Saroufim},
27
  booktitle={Championing Open-source DEvelopment in ML Workshop @ ICML25},
amd_1_1m_competition_submissions.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5d17a675708ebcebb2ed55a3065ebf5adbe5d3a5ea3e9b40a5a67c03bdd7cf68
3
- size 733476516
 
 
 
 
docs.md DELETED
@@ -1,195 +0,0 @@
1
- # Kernelbot Data Processing Skills
2
-
3
- This document describes how to extract and process submission data from the Kernelbot database.
4
-
5
- ## Database Connection
6
-
7
- The production database is hosted on Heroku. **NEVER run write operations (INSERT, UPDATE, DELETE) on this database.**
8
-
9
- ```bash
10
- # Get DATABASE_URL from Heroku
11
- heroku config:get DATABASE_URL --app discord-cluster-manager
12
- ```
13
-
14
- ## Database Schema
15
-
16
- The relevant tables are in the `leaderboard` schema:
17
-
18
- | Table | Description |
19
- |-------|-------------|
20
- | `leaderboard.leaderboard` | Problem definitions (id, name, deadline, task, description) |
21
- | `leaderboard.submission` | User submissions (id, leaderboard_id, user_id, code_id, submission_time, status) |
22
- | `leaderboard.runs` | Execution results (submission_id, score, passed, mode, runner, result) |
23
- | `leaderboard.user_info` | User details (id, user_name) |
24
- | `leaderboard.gpu_type` | GPU types per problem (leaderboard_id, gpu_type) |
25
- | `leaderboard.code_files` | Actual submission code content (old_code text, code bytea) |
26
-
27
- ## Key Problem IDs
28
-
29
- ### NVFP4 Problems
30
- - **595**: nvfp4_gemv
31
- - **597**: nvfp4_gemm
32
- - **598**: nvfp4_dual_gemm
33
- - **730**: nvfp4_group_gemm
34
-
35
- ### AMD Problems
36
- - **398**: amd-identity
37
- - **399**: amd-fp8-mm
38
- - **430**: amd-mixture-of-experts
39
- - **463**: amd-mla-decode
40
- - **563**: amd-all2all
41
- - **564**: amd-gemm-rs
42
- - **565**: amd-ag-gemm
43
- - **763**: amd-mxfp4-mm
44
- - **764**: amd-moe-mxfp4
45
- - **765**: amd-mixed-mla
46
-
47
- ### Other Completed Public Problems
48
- - **496**: trimul
49
-
50
- ### PMPP v2 Problems
51
- - **537**: conv2d_v2
52
- - **538**: grayscale_v2
53
- - **539**: histogram_v2
54
- - **540**: matmul_v2
55
- - **541**: prefixsum_v2
56
- - **542**: sort_v2
57
- - **543**: vectoradd_v2
58
- - **544**: vectorsum_v2
59
-
60
- ### Released Helion / B200_Nebius Problems
61
- - **766**: causal_conv1d
62
- - **767**: fp8_quant
63
- - **768**: gated_deltanet_chunk_fwd_h
64
- - **769**: gated_deltanet_chunk_fwd_o
65
- - **770**: gated_deltanet_recompute_w_u
66
-
67
- ### Linear Algebra Problems
68
- - **774**: qr_v2
69
-
70
- ## Additional Export Files
71
-
72
- - `amd_1_1m_competition_submissions.parquet`: deduplicated submissions with code for leaderboards 763, 764, and 765
73
- - `trimul_submissions.parquet`: deduplicated submissions with code for leaderboard 496
74
- - `helion_b200_nebius_submissions.parquet`: deduplicated submissions with code for leaderboards 766, 767, 768, 769, and 770
75
- - `pmpp_v2_submissions.parquet`: all submissions with code for leaderboards 537, 538, 539, 540, 541, 542, 543, and 544
76
- - `linalg_submissions.parquet`: deduplicated submissions with code for leaderboard 774 (`qr_v2`)
77
-
78
- `trimul` is exported separately because it spans multiple GPU families and is not part of the AMD 1.1M competition set.
79
- The Helion export is released separately because it targets `B200_Nebius`; measurements for that problem set are brittle and should be interpreted cautiously.
80
-
81
- ## Run Modes
82
-
83
- | Mode | Description | Has Score? |
84
- |------|-------------|------------|
85
- | `test` | Correctness tests | No |
86
- | `benchmark` | Performance benchmarks (internal) | No |
87
- | `leaderboard` | Official leaderboard runs | **Yes** |
88
- | `profile.0-3` | Profiling runs | No |
89
-
90
- **Important:**
91
- - Use `mode = 'leaderboard'` when joining runs to get scores.
92
- - **Lower scores are better** (scores are execution time in seconds).
93
-
94
- ## SQL Queries
95
-
96
- All SQL queries are in `queries.sql`. Key queries:
97
- - List all problems
98
- - Check submission counts
99
- - Export deduplicated submissions with code
100
- - Get top N submissions
101
- - Get user progression over time
102
-
103
- ## Adding Support for a New Problem
104
-
105
- ### Step 1: Find the Problem ID
106
- Use the "LIST ALL PROBLEMS" query from `queries.sql`.
107
-
108
- ### Step 2: Check Submission Counts
109
- Use the "CHECK SUBMISSION COUNTS" query from `queries.sql`.
110
-
111
- ### Step 3: Export Deduplicated Submissions
112
- Use the "EXPORT DEDUPLICATED SUBMISSIONS WITH CODE" query from `queries.sql`.
113
-
114
- ```python
115
- import pandas as pd
116
- import psycopg2
117
-
118
- DATABASE_URL = "..." # from heroku config:get
119
- conn = psycopg2.connect(DATABASE_URL)
120
-
121
- # Read query from queries.sql and modify problem IDs as needed
122
- with open('queries.sql') as f:
123
- # Find and use the export query section
124
- pass
125
-
126
- df = pd.read_sql(query, conn)
127
- df.to_parquet('new_problem_submissions.parquet', index=False)
128
- ```
129
-
130
- ### Step 4: Verify Data Quality
131
- ```python
132
- from analyze_submissions import load_submissions, leaderboard_summary
133
-
134
- df = load_submissions('new_problem_submissions.parquet')
135
- print(leaderboard_summary(df))
136
- ```
137
-
138
- ## Accessing Submission Code
139
-
140
- The parquet files include the full code content for each submission:
141
-
142
- ```python
143
- from analyze_submissions import load_submissions
144
-
145
- df = load_submissions()
146
-
147
- # Get a specific user's best submission
148
- user_subs = df[(df['user_name'] == 'gau.nernst') & (df['problem_name'] == 'nvfp4_gemv')]
149
- best = user_subs.sort_values('score').head(1)
150
-
151
- # Access the code
152
- code = best['code'].values[0]
153
- print(code)
154
- ```
155
-
156
- ## Helper Functions
157
-
158
- Use `analyze_submissions.py`:
159
-
160
- ```python
161
- from analyze_submissions import (
162
- load_submissions, # Load parquet file
163
- author_progression, # See user's submissions over time
164
- top_contestants, # Get leaderboard rankings
165
- leaderboard_summary, # Summary stats per problem
166
- user_stats, # Stats for a specific user
167
- format_score # Format score with units (us, ms, s)
168
- )
169
- ```
170
-
171
- ## Environment Setup
172
-
173
- ```bash
174
- uv venv .venv
175
- source .venv/bin/activate
176
- uv pip install pandas pyarrow psycopg2-binary
177
- ```
178
-
179
- ## Files
180
-
181
- | File | Description |
182
- |------|-------------|
183
- | `nvidia_nvfp4_submissions.parquet` | Deduplicated NVIDIA NVFP4 submissions with code (~1.4 GB) |
184
- | `queries.sql` | All SQL queries for data extraction |
185
- | `scripts/nvfp4/analyze_submissions.py` | Helper functions library |
186
- | `scripts/nvfp4/get_fastest_submission.py` | Print user's fastest submission |
187
- | `scripts/nvfp4/query_submissions.py` | List submission IDs or query specific ID |
188
-
189
- ## Review Checklist Before Pushing
190
-
191
- 1. Verify submission counts match expectations
192
- 2. Check for any anomalies in scores (negative, extremely large, etc.)
193
- 3. Confirm deduplication worked correctly
194
- 4. Test helper functions work with the new data
195
- 5. Run `python scripts/nvfp4/query_submissions.py` to verify
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
helion_b200_nebius_submissions.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ef17fb074e94a7b2bc29e76e7be2fdd71bf9bafbf02fe9d6980e22bc5b3028e1
3
- size 394272
 
 
 
 
leaderboards.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a509dbbfbbdb3aac0bada0ecb6d75bb2bab9e60e68ad33ee1d8219c76ebcc026
3
- size 24386
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa6456b3a46d2f4edcd6b507f1edd09b0a9ff86178219645b027463ed48768a6
3
+ size 29735
linalg_submissions.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:801278ca4622da2ebdd87a3ba3e1a0f94ee559b7c9806d2850f359af22beaae4
3
- size 578409185
 
 
 
 
nvidia_nvfp4_submissions.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:879e36863d84c199e3e0c583d8260f423937d905d47c8a55644788fcee877d66
3
- size 2245275232
 
 
 
 
pmpp_v2_submissions.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:41038bda611044cb5c75f6db14c643e00268732c3eb7c0b7284f5c1e16df5dcc
3
- size 29372536
 
 
 
 
queries.sql DELETED
@@ -1,130 +0,0 @@
1
- -- Kernelbot Database Queries
2
- -- All queries are READ ONLY. Never run INSERT/UPDATE/DELETE on production.
3
- -- Scores are execution time in seconds. Lower is better.
4
-
5
- --------------------------------------------------------------------------------
6
- -- LIST ALL PROBLEMS
7
- --------------------------------------------------------------------------------
8
- SELECT
9
- l.id,
10
- l.name,
11
- l.deadline,
12
- l.description,
13
- array_agg(g.gpu_type) as gpu_types
14
- FROM leaderboard.leaderboard l
15
- LEFT JOIN leaderboard.gpu_type g ON l.id = g.leaderboard_id
16
- GROUP BY l.id, l.name, l.deadline, l.description
17
- ORDER BY l.id;
18
-
19
- --------------------------------------------------------------------------------
20
- -- PROBLEM IDS
21
- --------------------------------------------------------------------------------
22
- -- NVFP4: 595 (gemv), 597 (gemm), 598 (dual_gemm), 697 (modal_dual_gemm), 730 (group_gemm)
23
- -- AMD: 398 (identity), 399 (fp8-mm), 430 (moe), 463 (mla-decode),
24
- -- 563 (all2all), 564 (gemm-rs), 565 (ag-gemm), 763 (mxfp4-mm),
25
- -- 764 (moe-mxfp4), 765 (mixed-mla)
26
- -- Separate mixed-GPU export: 496 (trimul)
27
- -- Released Helion/B200_Nebius export: 766 (causal_conv1d), 767 (fp8_quant),
28
- -- 768 (gated_deltanet_chunk_fwd_h), 769 (gated_deltanet_chunk_fwd_o),
29
- -- 770 (gated_deltanet_recompute_w_u)
30
- -- Linear algebra export: 774 (qr_v2)
31
-
32
- --------------------------------------------------------------------------------
33
- -- CHECK SUBMISSION COUNTS FOR A PROBLEM
34
- --------------------------------------------------------------------------------
35
- SELECT
36
- COUNT(*) as total_submissions,
37
- COUNT(DISTINCT user_id) as unique_users
38
- FROM leaderboard.submission
39
- WHERE leaderboard_id = 595; -- Replace with problem ID
40
-
41
- --------------------------------------------------------------------------------
42
- -- EXPORT DEDUPLICATED SUBMISSIONS WITH CODE
43
- -- Deduplicates by (user_id, code_id), keeping the fastest score
44
- --------------------------------------------------------------------------------
45
- WITH ranked AS (
46
- SELECT
47
- s.id as submission_id,
48
- s.leaderboard_id,
49
- l.name as problem_name,
50
- s.user_id,
51
- u.user_name,
52
- s.code_id,
53
- s.file_name,
54
- s.submission_time,
55
- s.status,
56
- r.score,
57
- r.passed,
58
- r.mode,
59
- r.runner,
60
- COALESCE(c.old_code, convert_from(c.code, 'UTF8')) as code,
61
- ROW_NUMBER() OVER (
62
- PARTITION BY s.leaderboard_id, s.user_id, s.code_id
63
- ORDER BY r.score ASC NULLS LAST
64
- ) as rn
65
- FROM leaderboard.submission s
66
- JOIN leaderboard.leaderboard l ON s.leaderboard_id = l.id
67
- LEFT JOIN leaderboard.user_info u ON s.user_id = u.id
68
- LEFT JOIN leaderboard.runs r ON s.id = r.submission_id AND r.mode = 'leaderboard'
69
- LEFT JOIN leaderboard.code_files c ON s.code_id = c.id
70
- WHERE s.leaderboard_id IN (595, 597, 598) -- Replace with problem IDs
71
- )
72
- SELECT
73
- submission_id, leaderboard_id, problem_name, user_id, user_name,
74
- code_id, file_name, submission_time, status, score, passed, mode, runner, code
75
- FROM ranked
76
- WHERE rn = 1
77
- ORDER BY problem_name, score ASC NULLS LAST;
78
-
79
- --------------------------------------------------------------------------------
80
- -- CHECK RUN MODES AND SCORES
81
- --------------------------------------------------------------------------------
82
- SELECT
83
- r.mode,
84
- COUNT(*) as cnt,
85
- COUNT(r.score) as has_score,
86
- MIN(r.score) as min_score,
87
- MAX(r.score) as max_score
88
- FROM leaderboard.runs r
89
- JOIN leaderboard.submission s ON r.submission_id = s.id
90
- WHERE s.leaderboard_id IN (595, 597, 598)
91
- GROUP BY r.mode
92
- ORDER BY cnt DESC;
93
-
94
- --------------------------------------------------------------------------------
95
- -- GET TOP N SUBMISSIONS FOR A PROBLEM
96
- --------------------------------------------------------------------------------
97
- SELECT
98
- u.user_name,
99
- r.score,
100
- s.submission_time
101
- FROM leaderboard.submission s
102
- JOIN leaderboard.runs r ON s.id = r.submission_id AND r.mode = 'leaderboard'
103
- LEFT JOIN leaderboard.user_info u ON s.user_id = u.id
104
- WHERE s.leaderboard_id = 595 -- Replace with problem ID
105
- AND r.passed = true
106
- AND r.score IS NOT NULL
107
- ORDER BY r.score ASC
108
- LIMIT 20;
109
-
110
- --------------------------------------------------------------------------------
111
- -- GET USER'S SUBMISSIONS OVER TIME (progression)
112
- --------------------------------------------------------------------------------
113
- SELECT
114
- s.submission_time,
115
- r.score,
116
- r.passed
117
- FROM leaderboard.submission s
118
- JOIN leaderboard.runs r ON s.id = r.submission_id AND r.mode = 'leaderboard'
119
- JOIN leaderboard.user_info u ON s.user_id = u.id
120
- WHERE u.user_name = 'gau.nernst' -- Replace with username
121
- AND s.leaderboard_id = 595 -- Replace with problem ID
122
- ORDER BY s.submission_time ASC;
123
-
124
- --------------------------------------------------------------------------------
125
- -- GET CODE FOR A SPECIFIC SUBMISSION
126
- --------------------------------------------------------------------------------
127
- SELECT
128
- COALESCE(c.old_code, convert_from(c.code, 'UTF8')) as code
129
- FROM leaderboard.code_files c
130
- WHERE c.id = 79741; -- Replace with code_id
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
scripts/nvfp4/analyze_submissions.py DELETED
@@ -1,168 +0,0 @@
1
- #!/usr/bin/env python3
2
- """
3
- Helper functions for analyzing kernelbot submissions.
4
-
5
- Usage:
6
- from analyze_submissions import load_submissions, author_progression, top_contestants
7
- """
8
-
9
- import pandas as pd
10
- from pathlib import Path
11
-
12
-
13
- def format_score(score, unit='us'):
14
- """
15
- Format score with appropriate units.
16
-
17
- Args:
18
- score: Score in seconds
19
- unit: 'us' for microseconds, 'ms' for milliseconds, 'auto' for automatic
20
-
21
- Returns:
22
- Formatted string with units
23
- """
24
- if pd.isna(score):
25
- return 'N/A'
26
-
27
- if unit == 'auto':
28
- if score < 0.001: # Less than 1ms, show in microseconds
29
- return f"{score * 1_000_000:.2f} µs"
30
- elif score < 1: # Less than 1s, show in milliseconds
31
- return f"{score * 1_000:.3f} ms"
32
- else:
33
- return f"{score:.4f} s"
34
- elif unit == 'us':
35
- return f"{score * 1_000_000:.2f} µs"
36
- elif unit == 'ms':
37
- return f"{score * 1_000:.3f} ms"
38
- else:
39
- return f"{score:.6f} s"
40
-
41
-
42
- def load_submissions(parquet_path: str = None) -> pd.DataFrame:
43
- """Load deduplicated submissions from parquet file."""
44
- if parquet_path is None:
45
- parquet_path = Path(__file__).parent.parent.parent / "nvidia_nvfp4_submissions.parquet"
46
- return pd.read_parquet(parquet_path)
47
-
48
-
49
- def author_progression(df: pd.DataFrame, user_id: str = None, user_name: str = None,
50
- problem_name: str = None) -> pd.DataFrame:
51
- """
52
- Get submissions from an author sorted by time to see their progression.
53
-
54
- Args:
55
- df: DataFrame of submissions
56
- user_id: Filter by user ID (Discord ID)
57
- user_name: Filter by username (partial match, case-insensitive)
58
- problem_name: Filter by problem name
59
-
60
- Returns:
61
- DataFrame sorted by submission_time showing the author's journey
62
- """
63
- result = df.copy()
64
-
65
- if user_id:
66
- result = result[result['user_id'] == user_id]
67
-
68
- if user_name:
69
- result = result[result['user_name'].str.contains(user_name, case=False, na=False)]
70
-
71
- if problem_name:
72
- result = result[result['problem_name'] == problem_name]
73
-
74
- return result.sort_values('submission_time')
75
-
76
-
77
- def top_contestants(df: pd.DataFrame, problem_name: str = None, n: int = 20,
78
- passing_only: bool = True) -> pd.DataFrame:
79
- """
80
- Get top contestants sorted by their best score (fastest time).
81
-
82
- Args:
83
- df: DataFrame of submissions
84
- problem_name: Filter by problem name (required for meaningful results)
85
- n: Number of top contestants to return
86
- passing_only: Only include passing submissions
87
-
88
- Returns:
89
- DataFrame with top contestants and their best scores
90
- """
91
- result = df.copy()
92
-
93
- if problem_name:
94
- result = result[result['problem_name'] == problem_name]
95
-
96
- if passing_only:
97
- result = result[result['passed'] == True]
98
-
99
- # Filter out rows with NA scores
100
- result = result.dropna(subset=['score'])
101
-
102
- if result.empty:
103
- return pd.DataFrame(columns=['user_name', 'user_id', 'score', 'submission_time', 'problem_name'])
104
-
105
- # Get best score per user
106
- best_scores = result.loc[result.groupby('user_id')['score'].idxmin()]
107
-
108
- return best_scores.sort_values('score').head(n)[
109
- ['user_name', 'user_id', 'score', 'submission_time', 'problem_name']
110
- ]
111
-
112
-
113
- def leaderboard_summary(df: pd.DataFrame, score_unit='us') -> pd.DataFrame:
114
- """
115
- Get summary statistics for each problem.
116
-
117
- Args:
118
- df: DataFrame of submissions
119
- score_unit: 'us' for microseconds, 'ms' for milliseconds, 's' for seconds
120
-
121
- Returns:
122
- DataFrame with submission counts, unique users, score ranges
123
- """
124
- summary = df.groupby('problem_name').agg({
125
- 'submission_id': 'count',
126
- 'user_id': 'nunique',
127
- 'score': ['min', 'median', 'max'],
128
- 'passed': 'sum'
129
- })
130
-
131
- summary.columns = ['submissions', 'unique_users', 'best_score', 'median_score',
132
- 'worst_score', 'passing_count']
133
-
134
- # Convert scores to specified unit
135
- if score_unit == 'us':
136
- multiplier = 1_000_000
137
- summary['best_score'] = (summary['best_score'] * multiplier).round(2)
138
- summary['median_score'] = (summary['median_score'] * multiplier).round(2)
139
- summary['worst_score'] = (summary['worst_score'] * multiplier).round(2)
140
- elif score_unit == 'ms':
141
- multiplier = 1_000
142
- summary['best_score'] = (summary['best_score'] * multiplier).round(3)
143
- summary['median_score'] = (summary['median_score'] * multiplier).round(3)
144
- summary['worst_score'] = (summary['worst_score'] * multiplier).round(3)
145
-
146
- return summary
147
-
148
-
149
- def user_stats(df: pd.DataFrame, user_id: str = None, user_name: str = None) -> pd.DataFrame:
150
- """
151
- Get statistics for a specific user across all problems.
152
- """
153
- result = df.copy()
154
-
155
- if user_id:
156
- result = result[result['user_id'] == user_id]
157
- elif user_name:
158
- result = result[result['user_name'].str.contains(user_name, case=False, na=False)]
159
-
160
- return result.groupby('problem_name').agg({
161
- 'submission_id': 'count',
162
- 'score': 'min',
163
- 'passed': 'sum'
164
- }).rename(columns={
165
- 'submission_id': 'num_submissions',
166
- 'score': 'best_score',
167
- 'passed': 'passing_count'
168
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
scripts/nvfp4/get_fastest_submission.py DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Print gau.nernst's fastest submission code to stdout."""
3
-
4
- import pandas as pd
5
- from pathlib import Path
6
-
7
- df = pd.read_parquet(Path(__file__).parent.parent.parent / 'nvidia_nvfp4_submissions.parquet')
8
-
9
- # Get fastest submission across all problems
10
- best = df[df['user_name'] == 'gau.nernst'].sort_values('score').head(1)
11
-
12
- problem = best['problem_name'].values[0]
13
- score_us = best['score'].values[0] * 1_000_000
14
-
15
- print(f"User: gau.nernst")
16
- print(f"Problem: {problem}")
17
- print(f"Score: {score_us:.2f} µs")
18
- print(f"Submission ID: {best['submission_id'].values[0]}")
19
- print("\n=== CODE ===\n")
20
- print(best['code'].values[0])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
scripts/nvfp4/query_submissions.py DELETED
@@ -1,57 +0,0 @@
1
- #!/usr/bin/env python3
2
- """
3
- Query submissions by user/problem or by submission ID.
4
-
5
- Usage:
6
- python query_submissions.py # Show all submission IDs for gau.nernst on gemv
7
- python query_submissions.py --id 187476 # Show code for specific submission ID
8
- python query_submissions.py --user gau.nernst --problem nvfp4_gemm
9
- """
10
-
11
- import argparse
12
- import pandas as pd
13
- from pathlib import Path
14
-
15
- df = pd.read_parquet(Path(__file__).parent.parent.parent / 'nvidia_nvfp4_submissions.parquet')
16
-
17
- parser = argparse.ArgumentParser()
18
- parser.add_argument('--id', type=int, help='Submission ID to query')
19
- parser.add_argument('--user', default='gau.nernst', help='Username to filter')
20
- parser.add_argument('--problem', default='nvfp4_gemv', help='Problem name to filter')
21
- args = parser.parse_args()
22
-
23
- if args.id:
24
- # Query specific submission
25
- sub = df[df['submission_id'] == args.id]
26
- if sub.empty:
27
- print(f"Submission {args.id} not found")
28
- else:
29
- row = sub.iloc[0]
30
- score_us = row['score'] * 1_000_000 if pd.notna(row['score']) else 'N/A'
31
- print(f"ID: {row['submission_id']}")
32
- print(f"User: {row['user_name']}")
33
- print(f"Problem: {row['problem_name']}")
34
- print(f"Score: {score_us:.2f} µs" if isinstance(score_us, float) else f"Score: {score_us}")
35
- print(f"\n=== CODE ===\n")
36
- print(row['code'])
37
- else:
38
- # List all submission IDs for user/problem
39
- subs = df[(df['user_name'] == args.user) & (df['problem_name'] == args.problem)]
40
- subs = subs.sort_values('score')
41
-
42
- ids = subs['submission_id'].tolist()
43
- scores = [(row['submission_id'], row['score'] * 1_000_000 if pd.notna(row['score']) else None)
44
- for _, row in subs.iterrows()]
45
-
46
- print(f"User: {args.user} | Problem: {args.problem} | Count: {len(ids)}")
47
- print(f"\nSubmission IDs (sorted by score, fastest first):")
48
- print(ids)
49
-
50
- # Get fastest/slowest with valid scores
51
- valid_scores = [(sid, sc) for sid, sc in scores if sc is not None]
52
- if valid_scores:
53
- print(f"\nFastest: {valid_scores[0][0]} ({valid_scores[0][1]:.2f} µs)")
54
- print(f"Slowest: {valid_scores[-1][0]} ({valid_scores[-1][1]:.2f} µs)")
55
- print(f"\nQuery a specific submission: python query_submissions.py --id {valid_scores[0][0]}")
56
- else:
57
- print("\nNo submissions with scores found")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trimul_submissions.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e5e4e2c8583855f279af719b938f464c01cf791dd3515c3ceb3e10ced124d292
3
- size 125936487