
【项目笔记】DeepSeek+LoRA+FastAPI:开发人员如何微调大模型并暴露接口给后端调用
解决:使用 Node.js 官方二进制文件安装(无需管理员权限)复制该地址到浏览器报错:localhost 拒绝连接。解决:使用官方二进制文件安装(无需管理员权限)3.安装好mvn后执行。
参考视频:【DeepSeek+LoRA+FastAPI】开发人员如何微调大模型并暴露接口给后端调用
启动前端
1.下载前端项目:https://github.com/huangyf2013320506/magic_conch_frontend.git
2.切换到项目目录下:cd /home/grad_user/magic_conch_frontend-master
3.执行npm install
报错:zsh: command not found: npm
解决:使用 Node.js 官方二进制文件安装(无需管理员权限)
(1)下载 Node.js 二进制文件:
wget https://nodejs.org/dist/v18.16.0/node-v18.16.0-linux-x64.tar.xz
(2)解压文件:
tar -xf node-v18.16.0-linux-x64.tar.xz
(3)移动到合适的位置:
mv node-v18.16.0-linux-x64 $HOME/nodejs
(4)将 Node.js 和 npm 添加到环境变量:
export PATH=$PATH:$HOME/nodejs/bin
export PATH=$PATH:/home/grad_user/nodejs/bin
(5)验证安装:
node -v
npm -v
再次执行npm install
成功:
$ npm install
npm WARN deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
added 103 packages, and audited 104 packages in 9s
18 packages are looking for funding
run `npm fund` for details
6 vulnerabilities (2 low, 3 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 9.5.1 -> 11.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.3.0
npm notice Run npm install -g npm@11.3.0 to update!
npm notic
4.执行npm run dev
复制该地址到浏览器报错:localhost 拒绝连接。
解决办法:在VScode的终端中重新执行以上命令,从VScode中点击该地址直接访问该地址,可以成功访问:
前端成功启动:
启动后端
1.下载后端项目:https://github.com/huangyf2013320506/magic_conch_backend.git
2.执行:mvn clean install
报错:zsh: command not found: mvn
解决:使用官方二进制文件安装(无需管理员权限)
export PATH=$PATH:/home/grad_user/tools/Maven/apache-maven-3.9.5/bin
3.安装好mvn后执行mvn clean install
报错:
$ java -version
openjdk version "11.0.26" 2025-01-21
OpenJDK Runtime Environment (build 11.0.26+4-post-Ubuntu-1ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.26+4-post-Ubuntu-1ubuntu122.04, mixed mode, sharing)
更多推荐
所有评论(0)