There is a newer version of the record available.

Published November 2023 | Version v2
Model Open

Better Python Programming for all: With the focus on Maintainability and Code Style

Authors/Creators

Description

The use of Large Language Models tailored for coding tasks has brought the quality of the code they generate into sharp focus, with concern for its maintainability and adherence to coding standards. Current studies have primarily centred on the functionality of Code LLMs, measured by their ability to pass predefined tests. This research seeks to shift this focus, improving Code LLMs to produce Python code that is not only functional but also maintainable and stylistically consistent.

We propose a refined experimental approach to fine-tune Code LLMs with the custom extended dataset we curated to aid in training and a more nuanced evaluation of these models. This method specifically targets the often-overlooked dimensions of maintainability and Code Style. While our findings improve code quality in Python, they also offer insights that could apply to other programming languages and various qualities of code generation. 

Files

python_optimisation_train_sft.ipynb

Files (3.5 GB)

Name Size Download all
md5:fee0114d0dfaa4e5ff0ca0049a3adca9
21.7 kB Preview Download
md5:066c53b50d8fc22cd01656d28446ed98
55.5 kB Preview Download
md5:f5b6b7ca6d3abae8888093e60c5d9032
56.9 kB Preview Download
md5:2b0505af3edad7ae7825ab4b5b39b3ca
23.8 kB Preview Download
md5:b3ea339984dc61079d55376b67e4fb66
32.2 kB Preview Download
md5:36cb5c22226465582d2996cc49e74138
28.0 MB Preview Download
md5:aee37e4b644e68198d28ecb45af3b1b2
197.9 MB Preview Download
md5:995d492874b806c0a9863fccc26b04d7
28.3 MB Preview Download
md5:fff2b81b3736d3b5943d81390065382e
26.8 MB Preview Download
md5:c3803d81074c67f0f70360c24dbc19d2
2.9 MB Preview Download
md5:ad2a45dc64d92abde3753a8676be7670
29.4 kB Preview Download
md5:436b7bb03e3e76f8ed656bd9f3ae8321
29.4 kB Preview Download
md5:719c609ce9a16e62af28cca0ba64e9a5
12.2 MB Preview Download
md5:aeee460543473b09e7beb174c7806197
94.8 MB Preview Download
md5:d5b242a29cdc40fa66e79fa3ed7ff0db
12.1 MB Preview Download
md5:6ad8307eb9de19f40a130daf3493271e
778.0 MB Preview Download
md5:c7f2b8fd703b8ba4fe3ec0c24652d6d9
778.3 MB Preview Download
md5:f11c3ff0600c89367f2790fb535bf483
777.3 MB Preview Download
md5:9089b6579722fda476b5edfab5ba8575
777.8 MB Preview Download