4
社区成员
发帖
与我相关
我的任务
分享| 类别 | 模型名称 | 文件格式 | 大小 | 下载地址 | 中文支持 | 最小显存 | 推荐用途 |
|---|---|---|---|---|---|---|---|
| 📝 文本生成 | |||||||
| Llama 3 8B Instruct | .safetensors | 15GB | huggingface.co/meta-llama/Llama-3-8B-Instruct | ❌ 英文 | 8GB | 通用对话、推理 | |
| Llama 3 2B Instruct | .safetensors | 4GB | huggingface.co/meta-llama/Llama-3-2B-Instruct | ❌ 英文 | 4GB | 移动端、快速推理 | |
| Qwen2 7B Instruct | .safetensors | 14GB | huggingface.co/Qwen/Qwen2-7B-Instruct | ✅ 优秀 | 8GB | 中文首选 | |
| Qwen2 1.5B Instruct | .safetensors | 3GB | huggingface.co/Qwen/Qwen2-1.5B-Instruct | ✅ 良好 | 4GB | 轻量中文 | |
| ChatGLM3 6B | .bin | 12GB | huggingface.co/THUDM/chatglm3-6b | ✅ 优秀 | 8GB | 中文对话 | |
| Yi 6B Chat | .safetensors | 12GB | huggingface.co/01-ai/Yi-6B-Chat | ✅ 优秀 | 8GB | 中英双语 | |
| Mistral 7B v0.3 | .safetensors | 14GB | huggingface.co/mistralai/Mistral-7B-Instruct-v0.3 | ❌ 英文 | 8GB | 代码生成 | |
| 🖼️ 图像生成 | |||||||
| Stable Diffusion 1.5 | .safetensors | 7GB | huggingface.co/runwayml/stable-diffusion-v1-5 | ⚠️ 需LoRA | 4GB | 基础图像生成 | |
| SDXL 1.0 Base | .safetensors | 12GB | huggingface.co/stabilityai/stable-diffusion-xl-base-1.0 | ⚠️ 需LoRA | 8GB | 高质量图像 | |
| Taiyi中文SD | .safetensors | 5GB | huggingface.co/IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1 | ✅ 原生 | 4GB | 中文提示词 | |
| SSD-1B | .safetensors | 4GB | huggingface.co/segmind/SSD-1B | ❌ 英文 | 3GB | 快速生成 | |
| Kandinsky 2.2 | .bin | 9GB | huggingface.co/kandinsky-community/kandinsky-2-2-decoder | ⚠️ 一般 | 6GB | 艺术风格 | |
| 🎬 视频生成 | |||||||
| Stable Video Diffusion | .safetensors | 18GB | huggingface.co/stabilityai/stable-video-diffusion-img2vid | ❌ 英文 | 12GB | 图生视频 | |
| AnimateDiff + SD1.5 | .ckpt组合 | 8GB+ | huggingface.co/guoyww/animatediff | ⚠️ 依赖 | 8GB | 动画生成 | |
| ModelScope T2V | .bin | 16GB | huggingface.co/damo-vilab/modelscope-damo-text-to-video-synthesis | ✅ 支持 | 10GB | 文本生视频 | |
| 👁️ 多模态理解 | |||||||
| Qwen-VL 7B | .safetensors | 15GB | huggingface.co/Qwen/Qwen2-VL-7B-Instruct | ✅ 优秀 | 8GB | 图文理解 | |
| LLaVA 1.6 7B | .safetensors | 14GB | huggingface.co/llava-hf/llava-v1.6-mistral-7b-hf | ⚠️ 一般 | 8GB | 视觉问答 | |
| Yi-VL 6B | .safetensors | 12GB | huggingface.co/01-ai/Yi-VL-6B | ✅ 优秀 | 8GB | 多模态中文 | |
| 🛠️ 配套工具模型 | |||||||
| ControlNet SD1.5 | .pth | 1.5GB | huggingface.co/lllyasviel/sd-controlnet-canny | - | +2GB | 图像控制 | |
| GFPGAN人脸修复 | .pth | 300MB | github.com/TencentARC/GFPGAN | - | +1GB | 人脸修复 | |
| Real-ESRGAN超分 | .pth | 200MB | github.com/xinntao/Real-ESRGAN | - | +1GB | 图像超分 |
| 方案名称 | 文本模型 | 图像模型 | 视频模型 | 总大小 | 最小显存 | 优点 | 缺点 |
|---|---|---|---|---|---|---|---|
| 入门中文版 | Qwen2 1.5B | Taiyi中文SD | ModelScope T2V | 24GB | 8GB | 全中文、轻量 | 质量一般 |
| 平衡专业版 | Qwen2 7B | SDXL 1.0 | AnimateDiff+SD1.5 | 45GB | 16GB | 质量好、功能全 | 显存需求高 |
| 英文优先版 | Llama 3 8B | SDXL 1.0 | Stable Video Diffusion | 55GB | 20GB | 国际顶尖质量 | 无中文优化 |
| 极限轻量版 | ChatGLM3 6B | SSD-1B | - | 16GB | 6GB | 配置要求低 | 无视频生成 |
| 中文全能版 | Yi 6B Chat | SD1.5+ControlNet | ModelScope T2V | 40GB | 12GB | 功能丰富、中文好 | 需组合使用 |
| 文件格式 | 用途 | 加载方式 | 特点 |
|---|---|---|---|
.safetensors | 主流模型权重 | safetensors.torch.load_file() | 安全、无恶意代码 |
.ckpt | PyTorch检查点 | torch.load() | 传统格式,包含完整状态 |
.bin | 通用二进制 | 模型特定加载器 | 通用格式 |
.pth | PyTorch序列化 | torch.load() | 标准PyTorch格式 |
.gguf | 量化格式 | llama.cpp加载 | 极致压缩,CPU运行 |
.onnx | 跨平台格式 | onnxruntime | 跨框架、高性能 |
.h5 | Keras/HDF5 | torch.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