- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
987 B
Bash
Executable File
39 lines
987 B
Bash
Executable File
#!/bin/bash
|
|
# Création du cache HuggingFace pour l'utilisateur rpa
|
|
|
|
set -e
|
|
|
|
echo "📦 Création du Cache HuggingFace"
|
|
echo "================================="
|
|
echo ""
|
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
echo "❌ Ce script doit être exécuté avec sudo"
|
|
echo "Usage: sudo bash create_hf_cache.sh"
|
|
exit 1
|
|
fi
|
|
|
|
# Créer le home directory si nécessaire
|
|
if [ ! -d "/home/rpa" ]; then
|
|
echo "📁 Création de /home/rpa..."
|
|
mkdir -p /home/rpa
|
|
fi
|
|
|
|
# Créer le répertoire cache HuggingFace
|
|
echo "📁 Création du répertoire cache HuggingFace..."
|
|
mkdir -p /home/rpa/.cache/huggingface
|
|
mkdir -p /home/rpa/.cache/huggingface/hub
|
|
mkdir -p /home/rpa/.cache/torch
|
|
|
|
# Définir les permissions correctes
|
|
echo "🔐 Configuration des permissions..."
|
|
chown -R rpa:rpa /home/rpa
|
|
chmod -R 755 /home/rpa/.cache
|
|
|
|
echo "✅ Cache HuggingFace créé et configuré"
|
|
echo ""
|
|
echo "📋 Vérification:"
|
|
ls -la /home/rpa/.cache/
|
|
echo ""
|
|
echo "✓ Prêt pour le téléchargement des modèles CLIP"
|