29 1 month ago

ABAP coding assistant fine-tuned for modern ABAP 7.4+ syntax

ollama run oisee/qwen-coder-abap

Models

View all →

Readme

qwen-coder-abap

Fine-tuned Qwen2.5-Coder-7B for modern ABAP development.
Generates clean, modern ABAP 7.4+ code while avoiding legacy patterns.

Model Details

Field Value
Base Model Qwen2.5-Coder-7B-Instruct
Fine-tuning ORPO (Odds Ratio Preference Optimization)
Training Data 1k+ ABAP preference pairs
Quantization Q4_K_M
License Apache 2.0

Usage

ollama run oisee/qwen-coder-abap "Convert READ TABLE to modern ABAP"

What it does

Promotes modern ABAP patterns:

  • Inline declarations: DATA(lv_var) = value
  • Table expressions: lt_table[ key = value ]
  • NEW operator: NEW zcl_class( param = value )
  • String templates: |Hello { lv_name }|
  • VALUE constructor: VALUE #( ( id = 1 ) ( id = 2 ) )
  • FILTER/REDUCE: FILTER #( lt_data WHERE status = 'A' )

Avoids legacy patterns:

  • READ TABLE … INTO
  • CREATE OBJECT
  • CONCATENATE … INTO
  • MOVE-CORRESPONDING
  • DATA: with colon

Example

Input:

Convert: READ TABLE lt_data INTO ls_row WITH KEY id = 1.

Output:

DATA(ls_row) = lt_data[ id = 1 ].

Benchmark Results

Metric Base Model Fine-tuned
Modern patterns 18 23
Legacy patterns 7 2
Net score +11 +21
Inference time 74.7s 23.5s

License

Apache 2.0 (inherited from Qwen2.5-Coder)

Links