File size: 842 Bytes
9798390
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

# 设置Hugging Face Hub配置
export HF_HUB_ENABLE_HF_TRANSFER=1

# 上传模型到Hugging Face Hub
echo "开始上传模型到Hugging Face Hub..."

# 方法1: 使用huggingface-cli上传整个目录
huggingface-cli upload \
    --repo-type model \
    --repo-id neta-art/Neta-Lumina-diffusers \
    /root/autodl-tmp/neta-lumina-hf-simple

# 方法2: 或者使用git方式上传
# git lfs install
# huggingface-cli repo create Neta-Lumina-diffusers --type model --organization neta-art
# cd /root/autodl-tmp/neta-lumina-hf-simple
# git init
# git add .
# git commit -m "Initial commit: Neta-Lumina v1.0"
# git branch -M main
# git remote add origin https://huggingface.co/neta-art/Neta-Lumina-diffusers
# git push -u origin main

echo "上传完成!"
echo "模型地址: https://huggingface.co/neta-art/Neta-Lumina-diffusers"