|
Download README.md from RDS777/data: direct link, hf CLI and curl.
- Browser
- Download file 1.85 kB
-
https://huggingface.co/spaces/RDS777/data/resolve/main/README.md
- Command line
-
hf download hf://spaces/RDS777/data/README.md
-
curl -L -o README.md https://huggingface.co/spaces/RDS777/data/resolve/main/README.md
1.85 kB
metadata
title: Agent de Codage Autonome CPU
emoji: 🤖
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
short_description: Agent de codage autonome, persistant, inférence locale CPU
Agent de Codage Autonome (CPU)
Agent de codage autonome et persistant : inférence locale via Transformers (Qwen2.5-Coder), gestion Git intégrée, carte de dépôt, édition Search/Replace et boucle itérative tests → correction jusqu'au succès.
Configuration du Space
Matériel : CPU (recommandé : CPU Upgrade, 8 vCPU / 32 Go de RAM).
Stockage persistant : à activer (le workspace, l'état et le cache du
modèle sont conservés dans /data).
Secrets (Settings → Variables and secrets) :
| Nom | Rôle |
|---|---|
HF_TOKEN |
Jeton Hugging Face pour télécharger le modèle (optionnel) |
ADMIN_TOKEN |
Protège /task et /stop via l'en-tête x-token |
Variables :
| Nom | Défaut |
|---|---|
MODEL_ID |
Qwen/Qwen2.5-Coder-1.5B-Instruct |
DTYPE |
float32 |
MAX_INPUT_TOKENS |
6000 |
MAX_NEW_TOKENS |
1024 |
HISTORY_TURNS |
1 |
REPO_URL |
(vide : dépôt initialisé localement) |
TEST_CMD |
python -m pytest -x -q |
MAX_ITERATIONS |
0 (illimité) |
TEST_TIMEOUT |
7200 |
API
| Méthode | Route | Description |
|---|---|---|
| GET | / |
Informations et état du service |
| GET | /status |
État de l'agent et git status |
| GET | /logs |
Derniers journaux d'exécution |
| POST | /task |
Lance une tâche : {"task": "..."} |
| POST | /stop |
Demande l'arrêt de la tâche en cours |
Exemple
curl -X POST https://<user>-<space>.hf.space/task \
-H "Content-Type: application/json" \
-H "x-token: $ADMIN_TOKEN" \
-d '{"task": "Crée un module utils.py avec une fonction slugify et ses tests pytest"}'