|
Download code/docs/REPORT.md from CollinMa/nextgpt-chapter6-report: direct link, hf CLI and curl.
- Browser
- Download file 4.55 kB
-
https://huggingface.co/spaces/CollinMa/nextgpt-chapter6-report/resolve/main/code/docs/REPORT.md
- Command line
-
hf download hf://spaces/CollinMa/nextgpt-chapter6-report/code/docs/REPORT.md
-
curl -L -o REPORT.md https://huggingface.co/spaces/CollinMa/nextgpt-chapter6-report/resolve/main/code/docs/REPORT.md
4.55 kB
| # NExT-GPT 课程作业复现报告 | |
| ## 提交方式 | |
| 依据老师补充要求,无法部署 GPU Space 时提交代码与实际执行结果。本项目保持零付费。免费 Static Space 仅展示报告、源码和结果,不提供在线模型推理。 | |
| 报告链接:https://huggingface.co/spaces/CollinMa/nextgpt-chapter6-report | |
| 源码链接:https://huggingface.co/spaces/CollinMa/nextgpt-chapter6-report/tree/main/code | |
| ## 实现与环境 | |
| 官方 NExT-GPT Legacy,提交 60d618b067ee4cb0d70e7075ae79852780b34fc2。使用 LLaMA 7B + LMSYS Vicuna v0 delta 恢复基座,再加载官方 7b_tiva_v0 增量参数和 ImageBind。未用其他模型替代、未重新训练。 | |
| 本地 RTX 4060 Laptop 8GB、32GB 系统内存;Python 3.10 / PyTorch 1.13.1+cu117。LLM 与 ImageBind 参数使用 CPU 卸载,解码器按需加载并使用切片,保持 FP16 参数。 | |
| ## 实际执行结果 | |
| 记录到 4 次完整模型调用,其中程序执行成功 3 次。成功不等同于所有要求的模态都已生成或内容完全正确。 | |
| ## 本次范围与人工检查 | |
| 当前交付范围为官方 NExT-GPT 7B 的“图片+文字指令→文字回答”推理复现。四模态内容生成及重新训练不在本次已验证范围内。 | |
| 人工检查:狗图片的简短类别回答与汽车图片的类别回答均与输入主体一致。狗图片的较详细描述臆测了“蓝色飞盘”,原图没有飞盘,记录为内容幻觉。早期输出有多余 # 分隔符,停止条件已修复,旧记录仍保留。该少量样例不代表基准准确率。 | |
| ## 本地复现方法 | |
| 按 README 安装 Python 3.10 与固定依赖,准备 LLaMA、Vicuna delta、ImageBind、NExT-GPT 权重并恢复 Vicuna。提交包不含数十 GB 权重和本机环境;同机已有权重可直接复用。 | |
| ```powershell | |
| python scripts/run_local_gpu.py --image examples/inputs/car_image.jpg --prompt "What object is shown in this image? Answer briefly." | |
| ``` | |
| 结果保存到 outputs/<运行ID>/run.json、response.txt 和 raw-response.txt。当前文字回答模式不下载扩散解码器。首次加载耗时未计入下述每次生成耗时;结果时间戳采用 UTC。 | |
| ### 已完成的编码器组件验证 | |
| 使用真实预训练 ImageBind 权重,在本机 GPU 上处理公开的狗图片和三个候选文字标签。最高分标签:A photo of a dog.。 | |
| 三个候选标签的 softmax 分数:[1.0, 0.0, 4.172325134277344e-07]。 | |
| 耗时(含加载):47.266 秒;该结果仅验证编码器,不是完整 7B 模型输出。 | |
| ### 2026-11-26T14:25:47.731290+00:00 | |
| 状态:failed | |
| 提示词:Describe the animal in this image in one short sentence. | |
| 实际文字: | |
| ```text | |
| RuntimeError: cannot repeat_interleave a meta tensor without output_size | |
| ``` | |
| 耗时:3.39 秒;PyTorch 峰值已分配显存:未测量 GiB(非整卡总占用)。 | |
| ### 2026-11-26T14:32:30.907954+00:00 | |
| 状态:success | |
| 提示词:Describe the animal in this image in one short sentence. | |
| 实际文字: | |
| ```text | |
| The animal in this image is a dog. | |
| ######### | |
| ###### | |
| ####### | |
| ##### | |
| ##### | |
| #### | |
| ##### | |
| ### | |
| #### | |
| ### | |
| ### | |
| ``` | |
| 耗时:89.031 秒;PyTorch 峰值已分配显存:0.575 GiB(非整卡总占用)。 | |
| ### 2026-11-26T14:36:50.857665+00:00 | |
| 状态:success | |
| 提示词:Describe what is shown in this image in one short sentence. | |
| 实际文字: | |
| ```text | |
| The image shows a dog with a big smile on its face, holding a blue Frisbee in its mouth. | |
| ``` | |
| 耗时:38.859 秒;PyTorch 峰值已分配显存:0.531 GiB(非整卡总占用)。 | |
| ### 2026-11-26T14:39:11.048422+00:00 | |
| 状态:success | |
| 提示词:What object is shown in this image? Answer briefly. | |
| 实际文字: | |
| ```text | |
| The image shows a car. | |
| ``` | |
| 耗时:15.547 秒;PyTorch 峰值已分配显存:0.506 GiB(非整卡总占用)。 | |
| ## 尚未验证的扩展案例 | |
| | 案例 | 期望输出 | 实际状态 | | |
| | --- | --- | --- | | |
| | 四组案例 | T+A / T+I+V / T+I+V+A | 未运行 | | |
| 原始记录保存在压缩包的 submission_results 中。生成内容的质量需人工检查。测试图片和音频来自 Meta ImageBind 官方公开样例;dog_zoom.mp4 是由静态图片合成的输入片段,不是模型生成结果。 | |
| ## 限制 | |
| 本机低显存卸载会增加传输时间。案例若只产生部分模态,应标记为 partial;失败日志如实保留。Static Space 不执行模型,因此不能声称完成在线模型部署。 | |