Kaidris-ABAP-7B — Community Edition

A small, local ABAP coding model: modern ABAP (7.50+) classes, ABAP SQL, internal-table logic and ABAP Unit-testable code. It runs on one 16 GB GPU, or on CPU with the Q4 file, and nothing leaves your machine.

Free: Apache-2.0, commercial use included.

Coming next: Kaidris Forge. Our paid model, now in development. It will be released only once it scores at least twice this model on our hardest exams: multi-method business apps and problems needing techniques it was never shown. The numbers will be published with the release. It adds a write → compile → test → fix agent and a dedicated repair model. Price: $2,000 per user. Contact: kaidris.com

Results

pass@1, greedy, one answer per task. Every answer is compiled and its ABAP Unit tests are run by an open-source ABAP runtime (abaplint transpiler + open-abap), plus our own strictness lint. These are not scores from an SAP system; see How it was measured.

Model General ABAP benchmark (158 tasks) ABAP SQL, unseen schemas (165) ABAP SQL Dev (44) ABAP SQL Exam A (44)
Qwen2.5-Coder-7B-Instruct (base) 22 53 13 12
Qwen3.5-9B 17 — — —
Seed-Coder-8B-Instruct 18 — — —
oisee abap-v6 (7B) 24 46 9 13
Kaidris-ABAP-7B (this model, Q8_0) 51 149 (90%) 35 38
  • General ABAP benchmark: 158 HumanEval-style ABAP tasks (one class per task, checked by unit tests).
  • ABAP SQL, unseen schemas: 165 tasks on two business schemas this model never saw in training.
  • Dev and Exam A: held-out tasks on the training schemas.

Business-app exam (4 classes, 16 methods, 146 tests on unseen schemas): one shot, 8/16 methods right.

Limitations, said plainly

  • New techniques. Recursion, date arithmetic, remainder-exact allocation and similar are weak. On our Novel exam (9 module scenarios) it is no better than the base model. That is what Kaidris Forge is for.
  • Multi-method classes. Whole classes in one answer often have one wrong method. Ask for one method at a time.
  • Not checked on SAP. It has not been validated on a licensed SAP system. Always run your own ATC checks and unit tests.
  • SQL dialect. It writes ABAP SQL for classic tables; CDS / RAP are not covered yet.

Files

File Size Use ABAP SQL, unseen schemas
kaidris-abap-7b-Q8_0.gguf 7.5 GB best quality, 16 GB GPU 149/165
kaidris-abap-7b-Q5_K_M.gguf 5.1 GB 8 GB GPU 147/165
kaidris-abap-7b-Q4_K_M.gguf 4.4 GB laptops / CPU 147/165

Works with llama.cpp, LM Studio and Ollama. Example:

llama-server -m kaidris-abap-7b-Q8_0.gguf -ngl 99 -c 8192 --jinja

Prompt format (what it was trained on)

System:

You are an expert SAP ABAP developer. Write modern ABAP (7.50+). Answer with one complete ABAP class in a single ```abap code block. No explanations.

User:

Task:
Return how many rows of ZKD_ORDER have STATUS = iv_value (0 if none).
Table columns:
ZKD_ORDER: ORDER_ID (NUMC 8, key), CUST_ID (NUMC 6), ORDER_DATE (DATS), STATUS (CHAR 1), ...

Implement it in ABAP using exactly this class definition:
```abap
CLASS zcl_demo DEFINITION PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    CLASS-METHODS count_by_status
      IMPORTING iv_value TYPE zkd_order-status RETURNING VALUE(rv_count) TYPE i.
ENDCLASS.
```

Giving the table columns and the exact class definition matters most for good results.

How it was made (data provenance)

No SAP software, no SAP system output and no closed-model output were used to train this model.

  • Base: Qwen2.5-Coder-7B-Instruct (Apache-2.0), QLoRA fine-tune.
  • General ABAP (708 examples): problems from MBPP (CC-BY-4.0), LeetCode-style problems (Apache-2.0 dataset) and self-oss-instruct (ODC-BY); solutions written by Qwen3.8-27B (Apache-2.0); each one kept only if it compiled and passed its unit tests on the open-source runtime.
  • ABAP SQL (279 verified solutions): tasks on invented business tables (sales, inventory, HR, projects, billing, maintenance), written by Qwen3.8-27B, and kept only if every test passed on the open-source runtime (SQLite-backed) and our lint.
  • Evaluation tables: the two exam schemas, the business-app exam and the Novel exam were never used for training.

How it was measured

  • Runtime: the open-source runtime (abaplint transpiler and open-abap, MIT) executes ABAP and ABAP Unit; ABAP SQL runs on SQLite.
  • Known differences: it is close to a real system but not identical. We found 8 constructs where it rejects valid ABAP and documented each one. A lint pass adds checks it does not enforce (e.g. @ escaping, UP TO after INTO, 255-character lines).
  • Controls: every exam was validated first. Reference solutions must pass, empty or single-method-gutted solutions must fail, and planted subtle bugs must be caught.

Licence and attribution

  • Licence: Apache-2.0. The base model is Qwen2.5-Coder-7B-Instruct © Alibaba Cloud (Apache-2.0).
  • Training-problem sources: MBPP (CC-BY-4.0, Google Research), self-oss-instruct (ODC-BY, BigCode).
  • Trademarks: SAP and ABAP are trademarks of SAP SE. This model is not affiliated with, endorsed by or sponsored by SAP.

Built by Kaidris

Kaidris builds small, local, verifiable AI models. More at kaidris.com.

Downloads last month
49
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mastouri/Kaidris-ABAP-7B

Base model

Qwen/Qwen2.5-7B
Quantized
(262)
this model