Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何在自己的电脑上安装并验证MiniMind运行环境?

2025-08-28 1.2 K

安装验证分为三个关键步骤:

  1. 基础环境检查::
    • 确认Python≥3.10并安装git
    • (of a computer) runimport torch; print(torch.cuda.is_available())验证CUDA支持
  2. Project deployment::
    • pass (a bill or inspection etc)git clone https://github.com/jingyaogong/minimind.gitGet source code
    • 使用清华源加速安装依赖:pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  3. Functional verification::
    • 下载1.6GB的pretrain_hq.jsonl数据集到./dataset
    • (of a computer) runpython eval_model.py --load 1测试基础推理能力

遇到flash_attn安装失败时,可暂时注释相关代码进行测试运行。

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish