File size: 766 Bytes
e4cef63 9f5aefb e4cef63 c780f59 e4cef63 c780f59 5fe4705 c780f59 b1c9f54 c780f59 5fe4705 | 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 | ---
title: Kernel Writer
aemoji: 🧠
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
---
# Kernel Writer
CUDA kernel optimization
## Run locally
```bash
pip install -r requirements.txt
python app.py
```
OpenEnv API is served at `/reset`, `/step`, `/state`, and the Gradio UI is at `/ui`.
## Hugging Face Space setup
Set the OpenAI key in Space **Settings → Variables and secrets** as:
- `OPENAI_API_KEY`
Optional:
- `MODEL_NAME` (default: `gpt-5.4`)
- `API_BASE_URL` (default: `https://api.openai.com/v1`)
## Submission validation
Use the validator script with the **runtime URL**:
```bash
chmod +x scripts/validate-submission.sh
./scripts/validate-submission.sh https://aaloksan-kernel.hf.space .
```
|