Fine-Tuning Gemma 4 Edge Models for MATLAB Signal-Processing Code with SFT and QLoRA on a Laptop iGPU
Fine-tuning Gemma 4 Edge models improved checked MATLAB signal-processing code on a laptop iGPU, with an adapter adding 17–19% generation-time cost. Gains focused on conventions, not signal construction.
The study fine-tuned Gemma 4 Edge E2B and E4B on **66** checked examples covering 11 MATLAB signal-processing subtasks, then deployed int8 models with adapters through OpenVINO. E2B rose from 18/66 to 37/66 passing tasks; E4B with QLoRA rose from 32/66 to 47/66.
For a narrow offline coding workload, a small task-specific dataset and deterministic checks may make local adaptation practical. Inspect failure categories before expanding training data: the reported adapters mostly fixed conventions such as units, array shapes, and lag signs.
The study fine-tuned Gemma 4 Edge E2B and E4B on **66** checked examples covering 11 MATLAB signal-processing subtasks, then deployed int8 models with adapters through OpenVINO. E2B rose from 18/66 to 37/66 passing tasks; E4B with QLoRA rose from 32/66 to 47/66. For a narrow offline coding workload, a small task-specific dataset and deterministic checks may make local adaptation practical. Inspect failure categories before expanding training data: the reported adapters mostly fixed conventions such as units, array shapes, and lag signs. The adapters fixed few errors in building signals and noise, and cost **17–19%** of generation speed at runtime. Results are from one set of subtasks and held-out variants, not general MATLAB coding.
This provides a bounded example of local task adaptation producing measurable gains on checked coding tasks, while exposing runtime cost and error types that adapters did not fix. It makes the open-model customization case more concrete but does not establish broader coding ability or general deployment value.