本地可下载生成式AI模型

人工智能 2026-01-26 16:36:10

🗂️ 本地可下载AI模型完整表格

类别模型名称文件格式大小下载地址中文支持最小显存推荐用途
📝 文本生成       
 Llama 3 8B Instruct.safetensors15GBhuggingface.co/meta-llama/Llama-3-8B-Instruct❌ 英文8GB通用对话、推理
 Llama 3 2B Instruct.safetensors4GBhuggingface.co/meta-llama/Llama-3-2B-Instruct❌ 英文4GB移动端、快速推理
 Qwen2 7B Instruct.safetensors14GBhuggingface.co/Qwen/Qwen2-7B-Instruct✅ 优秀8GB中文首选
 Qwen2 1.5B Instruct.safetensors3GBhuggingface.co/Qwen/Qwen2-1.5B-Instruct✅ 良好4GB轻量中文
 ChatGLM3 6B.bin12GBhuggingface.co/THUDM/chatglm3-6b✅ 优秀8GB中文对话
 Yi 6B Chat.safetensors12GBhuggingface.co/01-ai/Yi-6B-Chat✅ 优秀8GB中英双语
 Mistral 7B v0.3.safetensors14GBhuggingface.co/mistralai/Mistral-7B-Instruct-v0.3❌ 英文8GB代码生成
🖼️ 图像生成       
 Stable Diffusion 1.5.safetensors7GBhuggingface.co/runwayml/stable-diffusion-v1-5⚠️ 需LoRA4GB基础图像生成
 SDXL 1.0 Base.safetensors12GBhuggingface.co/stabilityai/stable-diffusion-xl-base-1.0⚠️ 需LoRA8GB高质量图像
 Taiyi中文SD.safetensors5GBhuggingface.co/IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1✅ 原生4GB中文提示词
 SSD-1B.safetensors4GBhuggingface.co/segmind/SSD-1B❌ 英文3GB快速生成
 Kandinsky 2.2.bin9GBhuggingface.co/kandinsky-community/kandinsky-2-2-decoder⚠️ 一般6GB艺术风格
🎬 视频生成       
 Stable Video Diffusion.safetensors18GBhuggingface.co/stabilityai/stable-video-diffusion-img2vid❌ 英文12GB图生视频
 AnimateDiff + SD1.5.ckpt组合8GB+huggingface.co/guoyww/animatediff⚠️ 依赖8GB动画生成
 ModelScope T2V.bin16GBhuggingface.co/damo-vilab/modelscope-damo-text-to-video-synthesis✅ 支持10GB文本生视频
👁️ 多模态理解       
 Qwen-VL 7B.safetensors15GBhuggingface.co/Qwen/Qwen2-VL-7B-Instruct✅ 优秀8GB图文理解
 LLaVA 1.6 7B.safetensors14GBhuggingface.co/llava-hf/llava-v1.6-mistral-7b-hf⚠️ 一般8GB视觉问答
 Yi-VL 6B.safetensors12GBhuggingface.co/01-ai/Yi-VL-6B✅ 优秀8GB多模态中文
🛠️ 配套工具模型       
 ControlNet SD1.5.pth1.5GBhuggingface.co/lllyasviel/sd-controlnet-canny-+2GB图像控制
 GFPGAN人脸修复.pth300MBgithub.com/TencentARC/GFPGAN-+1GB人脸修复
 Real-ESRGAN超分.pth200MBgithub.com/xinntao/Real-ESRGAN-+1GB图像超分

📊 推荐组合方案对比表

方案名称文本模型图像模型视频模型总大小最小显存优点缺点
入门中文版Qwen2 1.5BTaiyi中文SDModelScope T2V24GB8GB全中文、轻量质量一般
平衡专业版Qwen2 7BSDXL 1.0AnimateDiff+SD1.545GB16GB质量好、功能全显存需求高
英文优先版Llama 3 8BSDXL 1.0Stable Video Diffusion55GB20GB国际顶尖质量无中文优化
极限轻量版ChatGLM3 6BSSD-1B-16GB6GB配置要求低无视频生成
中文全能版Yi 6B ChatSD1.5+ControlNetModelScope T2V40GB12GB功能丰富、中文好需组合使用

📁 文件扩展名说明表

文件格式用途加载方式特点
.safetensors主流模型权重safetensors.torch.load_file()安全、无恶意代码
.ckptPyTorch检查点torch.load()传统格式,包含完整状态
.bin通用二进制模型特定加载器通用格式
.pthPyTorch序列化torch.load()标准PyTorch格式
.gguf量化格式llama.cpp加载极致压缩,CPU运行
.onnx跨平台格式onnxruntime跨框架、高性能
.h5Keras/HDF5torch.hub.load()旧版Keras格式

🚀 快速启动脚本示例

python

# config.py - 模型配置文件
MODEL_CONFIGS = {
    # 推荐组合:中文全能版
    "chinese_all_in_one": {
        "text": {
            "name": "Qwen2-7B-Instruct",
            "path": "./models/text/qwen2-7b",
            "format": ".safetensors",
            "huggingface_url": "https://huggingface.co/Qwen/Qwen2-7B-Instruct"
        },
        "image": {
            "name": "Taiyi-Stable-Diffusion",
            "path": "./models/image/taiyi-sd",
            "format": ".safetensors", 
            "huggingface_url": "https://huggingface.co/IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1"
        },
        "video": {
            "name": "AnimateDiff + SD1.5",
            "components": [
                {"name": "SD1.5", "path": "./models/image/sd-v1-5"},
                {"name": "AnimateDiff", "path": "./models/video/animatediff"}
            ]
        }
    },
    
    # 轻量组合:入门版
    "lightweight_chinese": {
        "text": {
            "name": "ChatGLM3-6B",
            "path": "./models/text/chatglm3-6b",
            "format": ".bin",
            "huggingface_url": "https://huggingface.co/THUDM/chatglm3-6b"
        },
        "image": {
            "name": "SSD-1B",
            "path": "./models/image/ssd-1b",
            "format": ".safetensors",
            "huggingface_url": "https://huggingface.co/segmind/SSD-1B"
        }
    }
}

📥 批量下载命令

bash

# 创建下载脚本 download_models.sh
#!/bin/bash

# 创建目录
mkdir -p models/{text,image,video}

# 下载文本模型
cd models/text
git lfs clone https://huggingface.co/Qwen/Qwen2-7B-Instruct
git lfs clone https://huggingface.co/THUDM/chatglm3-6b

# 下载图像模型  
cd ../image
git lfs clone https://huggingface.co/IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1
wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.safetensors

# 下载视频模型
cd ../video
git lfs clone https://huggingface.co/guoyww/animatediff
...全文
33 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

4

社区成员

发帖
与我相关
我的任务
社区描述
学习交流人工智能相关算法及技术栈
opencv计算机视觉人工智能 技术论坛(原bbs) 广东省·深圳市
社区管理员
  • 亿只小灿灿
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧