docs(report): 添加实验结果章节和图片资源

- 新增实验结果章节(results.tex),包含实验条件介绍和训练指标变化图表
- 添加训练前后对比图片(before_train.png, after_train.png)
- 在main.tex中添加必要的LaTeX包支持(subcaption, booktabs等)
This commit is contained in:
carry 2025-05-26 01:33:00 +08:00
parent 76c494d086
commit b6cba12aa0
5 changed files with 1091 additions and 0 deletions

View File

@ -0,0 +1,85 @@
% 实验结果
\section{实验结果}
\begin{frame}
\frametitle{实验条件介绍}
\begin{itemize}
\item 硬件配置
\begin{itemize}
\item 笔记本型号Lenovo Legion R7000P 2021H
\item CPUAMD Ryzen 7 5800H
\item GPUNVIDIA GeForce RTX 3060 Laptop GPU6GB显存
\item 内存16GB DDR4
\end{itemize}
\item 软件环境
\begin{itemize}
\item 操作系统Ubuntu 22.04 LTS通过WSL2运行
\item Python版本3.11.6
\item 深度学习框架PyTorch 2.1.0+cu121
\end{itemize}
\item 微调模型unsloth官方qwen-2.5-3b-4bit量化模型\href{https://huggingface.co/unsloth/Qwen2.5-3B-Instruct-bnb-4bit}{https://huggingface.co/unsloth/Qwen2.5-3B-Instruct-bnb-4bit})
\item 仓库文档unsloth官方仓库文档\href{https://docs.unsloth.ai/}{https://docs.unsloth.ai/}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{训练指标变化}
\begin{figure}[h]
\centering
\begin{tikzpicture}
\begin{axis}[
xlabel=Step,
ylabel=Loss,
width=\textwidth,
height=0.8\textheight]
\addplot[mark=none] table[x=Step,y=loss,col sep=comma] {./figures/training_data.csv};
\end{axis}
\end{tikzpicture}
\caption{训练损失变化曲线}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{训练指标变化}
\begin{figure}[h]
\centering
\begin{tikzpicture}
\begin{axis}[
xlabel=Step,
ylabel=Grad Norm,
width=\textwidth,
height=0.8\textheight]
\addplot[mark=none] table[x=Step,y=grad_norm,col sep=comma] {./figures/training_data.csv};
\end{axis}
\end{tikzpicture}
\caption{梯度范数变化曲线}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{训练指标变化}
\begin{figure}[h]
\centering
\begin{tikzpicture}
\begin{axis}[
xlabel=Step,
ylabel=Learning Rate,
width=\textwidth,
height=0.8\textheight]
\addplot[mark=none] table[x=Step,y=learning_rate,col sep=comma] {./figures/training_data.csv};
\end{axis}
\end{tikzpicture}
\caption{学习率变化曲线}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{微调效果验证}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.45\textwidth]{./pic/before_train.png}
\hspace{0.05\textwidth}
\includegraphics[width=0.45\textwidth]{./pic/after_train.png}
\caption{训练前后对比}
\end{figure}
\end{frame}

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,11 @@
\usepackage{listings}
\usepackage{xcolor}
\usepackage{fontawesome5}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
% 设置主题
\usetheme{Madrid}

BIN
report/pic/after_train.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
report/pic/before_train.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB