File size: 805 Bytes
ec7fa81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
#!/bin/bash

# CONFIGURACIÓN
MODEL_NAME="minerva-7b-sft"       # Nombre de tu modelo en Hugging Face
HF_USERNAME="LeonSaia"          # Reemplazá por tu usuario de Hugging Face

# 1. Instalar herramientas necesarias
pip install --quiet huggingface_hub
sudo apt-get install -y git-lfs
git lfs install

# 2. Login a Hugging Face
huggingface-cli login

# 3. Crear y clonar el repo
huggingface-cli repo create $MODEL_NAME --type=model --organization=$HF_USERNAME
git clone https://huggingface.co/$HF_USERNAME/$MODEL_NAME
cd $MODEL_NAME

# 4. Copiar archivos del modelo
cp -r ../MINERVAMODEL/* .

# 5. Subir los archivos
git lfs track "*.safetensors"
git add .
git commit -m "Subida del modelo Minerva fine-tuned"
git push

echo "✅ Modelo subido con éxito: https://huggingface.co/$HF_USERNAME/$MODEL_NAME"