2个版本
0.1.1 | 2023年5月14日 |
---|---|
0.1.0 | 2023年5月12日 |
#493 in 机器学习
23KB
495 行
AIMM
AI模型管理器。
术语
AIMM | Civitai | HuggingFace |
---|---|---|
仓库 | 模型(检查点) | 仓库 |
修订 | 模型版本 | 修订/提交 |
使用它
# Scan an existing directory to build a manifest file
aimm scan
# Install packages from aimm.json
aimm install
# Install a package from a download link (to `.`)
aimm install https://civitai.com/api/download/models/46137
# Install a package from a download link (to a specific place)
aimm install https://civitai.com/api/download/models/46137 models/Stable-diffusion
为MVP实现
Cli
# Smart install (install to appropriate place, e.g. models/Lora, download previews, etc.)
aimm si https://civitai.com/models/13213
# Or, in short:
aimm install --smart https://civitai.com/models/13213
# Initialize a new project
aimm init
# Install from Git
aimm install https://github.com/AUTOMATIC1111/stable-diffusion-webui
# Install a model from Civitai web page
aimm install https://civitai.com/models/7240/meinamix
# Install a Lora from Civitai, and automatically pair it with previews
aimm install https://civitai.com/models/13213
# Install a model from Hugging Face
aimm install https://hugging-face.cn/THUDM/chatglm-6b/blob/main/pytorch_model-00001-of-00008.bin
# Download a model by name
aimm install bloom
# Install from an existing amm.json
aimm install
aimm install -r non-default-named.amm.json
# Move packages under aimm management:
aimm mv a b
API服务
目前不需要身份验证。请保持良好行为。
hashA
是文件的sha256。
项目/仓库在AIMM中具有UUID作为ID。Civitai ID是整数(例如 models/7204
),而HuggingFace使用字符串(例如 lmsys/vicuna-7b-delta-v0
)。
1. 文件
1.1 按文件名(部分)搜索文件
https://api.aimm.dev/files?filename=meina&pretty=1
[
{
"id": "7b1393c5-e398-4bc4-b416-3f2b3ac24165",
"hashA": "e03274b1e7478ce7cfd86e4758d9918d26f6f1f73a6e37d425587a7938ac6f79",
"downloadUrl": "https://civitai.com/api/download/models/16925",
"filename": "meinamix_meinaV7.safetensors",
"revision": {
"id": "c02e9d09-f7cf-49c1-a44e-00a03b0918ed",
"idInRegistry": "16925",
"repo": {
"id": "876abe0f-b774-4629-bcc8-024b2250a374",
"name": "MeinaMix",
"registry": "Civitai",
"idInRegistry": "7240",
"favour": 102479
}
}
},
{
"id": "b4a7b957-f830-4c86-831e-cde04128f767",
"hashA": "eac6c08a199c4953f80ae5b4ea5f9b2d88c7f3c6f2546e14a57851e3e4a1c5cb",
"downloadUrl": "https://civitai.com/api/download/models/46137",
"filename": "meinamix_meinaV9.safetensors",
"revision": {
"id": "1f726859-a61a-4df1-9057-20e869f0a54d",
"idInRegistry": "46137",
"repo": {
"id": "876abe0f-b774-4629-bcc8-024b2250a374",
"name": "MeinaMix",
"registry": "Civitai",
"idInRegistry": "7240",
"favour": 102479
}
}
},
]
按sha256搜索文件(必须提供完整)
许可证
MIT
依赖项
~12–28MB
~463K SLoC