Skip to content

chupchupchup/Apertus-local

Repository files navigation

Apertus-local (Mac Silicon, M2/M3/M4) — UI type ChatGPT

Interface locale pour exécuter Apertus 8B Instruct en mode ChatGPT sur Mac Silicon, avec accélération MPS (float16).

🚀 Installation

1) Cloner

git clone https://github.com/chupchupchup/Apertus-local.git
cd Apertus-local

2) Environnement Python

python3 -m venv venv
source venv/bin/activate

3) Dépendances

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install -U transformers accelerate gradio fastapi uvicorn

▶️ Utilisation

UI web

python3 ui.py

Ouvre : http://127.0.0.1:7860

API FastAPI

uvicorn server:app --host 127.0.0.1 --port 8000

Test rapide

curl -X POST http://127.0.0.1:8000/generate \
  -H "Content-Type: application/json" \
  -d '{"prompt":"explique la relativité en 3 points"}'

🙌 Crédit

Projet basé sur le modèle Apertus 8B Instruct, un grand modèle de langage multilingue ouvert développé en Suisse par l’EPFL (SwissAI initiative).

🔗 Site officiel Apertus (SwissAI)
🔗 Annonce EPFL

Développé et testé localement par @chupchupchup (🇨🇭).

Made with ❤️ on MBP M4 32GB

About

UI locale style ChatGPT pour Apertus 8B sur Mac Silicon (MPS/float16) tester sur un MBP M4 avec RAM 32Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages