22 lines
3.2 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% 摘要
\begin{center}
{\zihao{3}\textbf{\thesistitle}}\par
{\zihao{-4}\songti \quad \classname \quad \studentname \par
指导教师:\adviser}
\end{center}
% 中文摘要
\begin{onecolabstract}
\noindent{}{\zihao{4}\textbf{摘要}}{\quad \songti \zihao{-4}大语言模型Large Language ModelsLLMs在通用代码生成任务中表现出色但在处理包含专有知识的企业私有代码库时其性能往往受限。针对此问题本文提出并实现了一个基于文档驱动的自适应编码大模型微调框架。该框架的核心创新在于首先通过深度解析技术文档Markdown格式自动抽取信息并结合预设模板生成高质量的指令微调Supervised Fine-TuningSFT训练语料其次利用参数高效微调技术如量化低秩微调Quantized Low-Rank AdaptationQLoRA对预训练的编码大模型以qwen2.5为例进行针对性优化使其精准适配私有库特有的语法结构与编程范式最后整合了包括数据持久化SQLite+TinyDB、训练监控TensorBoard和交互式前端Gradio在内的完整工作流。实验结果表明该框架能够有效提升大模型在私有库代码生成任务上的准确性和实用性为实现企业级软件开发的智能化和高效化提供了一套自动化、可扩展的解决方案。
}\par
\noindent{}{\zihao{4}\textbf{关键词}}{\quad \zihao{-4}\songti 大语言模型;代码生成;模型微调;文档驱动
}\par
\end{onecolabstract}
% 英文摘要
\begin{onecolabstract}
\noindent{}{ \zihao{4} \textbf{ABSTRACT}}{\quad \zihao{-4}While Large Language Models (LLMs) demonstrate impressive performance in general code generation, their efficacy often diminishes when dealing with enterprise private code repositories that contain proprietary knowledge. To address this challenge, this paper proposes and implements a **document-driven adaptive fine-tuning framework for large code models**. The framework introduces several key innovations: Firstly, it employs deep parsing techniques on technical documentation (in Markdown format) to automatically extract information and combine it with predefined templates, thereby generating high-quality Supervised Fine-Tuning (SFT) training data. Secondly, it leverages parameter-efficient fine-tuning techniques, such as Quantized Low-Rank Adaptation (QLoRA), to specifically optimize a pre-trained large code model (exemplified by Qwen2.5). This optimization enables the model to accurately adapt to the unique syntax, structures, and programming paradigms inherent in private libraries. Finally, the framework integrates a comprehensive workflow encompassing data persistence (using SQLite and TinyDB), training monitoring (via TensorBoard), and an interactive frontend (built with Gradio). Experimental results indicate that this framework significantly enhances the accuracy and practical utility of LLMs in private library code generation tasks, offering an automated and scalable solution for intelligent and efficient enterprise software development.
}\par
\noindent{}{ \zihao{4}\textbf{KEYWORDS}}{\quad \zihao{-4}Large Language Models; Code Generation; Model Fine-tuning; Document-Driven
}\par
\end{onecolabstract}