Explain the purpose and fields of Core600
Browse files
README.md
CHANGED
|
@@ -9,7 +9,25 @@ configs:
|
|
| 9 |
|
| 10 |
# EC-Coder Core600
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## Example row
|
| 15 |
|
|
@@ -29,4 +47,4 @@ The two prompt fields in the first row are shortened here for readability.
|
|
| 29 |
|
| 30 |
## Run the benchmark
|
| 31 |
|
| 32 |
-
Download `evaluation/cases.json` and pass its local path to the evaluator with `--cases`. This file
|
|
|
|
| 9 |
|
| 10 |
# EC-Coder Core600
|
| 11 |
|
| 12 |
+
The test split contains 600 STM32F407 tasks. Each line in `data/test.jsonl` is one task, with case IDs from `790001` through `790600`. [Browse `data/test.jsonl`](https://huggingface.co/datasets/Multilingual-Multimodal-NLP/EC-Coder-Core600/blob/main/data/test.jsonl)
|
| 13 |
+
|
| 14 |
+
## What Core600 measures
|
| 15 |
+
|
| 16 |
+
Core600 tests whether a model can generate bare-metal C firmware that makes an STM32F407 behave as specified. Tasks cover 17 combinations of hardware blocks, including clock control, GPIO, serial interfaces, timers, and DMA. They ask for behaviors such as configuring peripherals in dependency order, changing selected register bits while preserving unrelated bits, and following conditional steps across execution phases.
|
| 17 |
+
|
| 18 |
+
The evaluator compiles each candidate with Arm GCC and runs it in Renode. A compiled program passes the semantic checks only when it reports the required checkpoints in order and the observed register states satisfy the task's conditions. This checks the firmware's behavior in simulation as well as whether it builds.
|
| 19 |
+
|
| 20 |
+
## JSONL fields
|
| 21 |
+
|
| 22 |
+
| Field | What it contains |
|
| 23 |
+
| --- | --- |
|
| 24 |
+
| `case_id` | Stable task identifier used to match a JSONL record to its evaluator input. |
|
| 25 |
+
| `requirement` | The embedded C task, including the hardware behavior and phase goals the program should implement. |
|
| 26 |
+
| `generation_prompt_patch` | Additional instructions supplied during generation, such as how to initialize trace output and call the checkpoint API. |
|
| 27 |
+
| `level` | The benchmark's task level label. All 600 records in this release are `L5`. |
|
| 28 |
+
| `family_id` | The hardware blocks associated with the task, such as `RCC+USART2+GPIOA+FLASH+SPI2+SysTick`. |
|
| 29 |
+
| `cluster_id` | Identifier for the scenario group that contains the task. |
|
| 30 |
+
| `difficulty_type` | The kind of challenge represented by the case, such as cross-peripheral dependencies, register-bit preservation, or phase planning. |
|
| 31 |
|
| 32 |
## Example row
|
| 33 |
|
|
|
|
| 47 |
|
| 48 |
## Run the benchmark
|
| 49 |
|
| 50 |
+
Download `evaluation/cases.json` and pass its local path to the evaluator with `--cases`. This file contains the complete records used by the evaluator, including checkpoint order, register readback conditions, and scoring rules. It retains the original SHA-256. The manifest records the dataset version and checksums. The other files in `evaluation/` document the coverage and validation of the scoring contracts. [Evaluation files](https://huggingface.co/datasets/Multilingual-Multimodal-NLP/EC-Coder-Core600/tree/main/evaluation) · [Evaluation runner](https://github.com/CSJianYang/Industrial-Coder/tree/main/evaluation/EmbedCGen)
|