Deploy static agentic reproducibility frontend

#1
Files changed (2) hide show
  1. README.md +116 -5
  2. index.html +0 -0
README.md CHANGED
@@ -1,11 +1,122 @@
1
  ---
2
  title: Agentic Reproducibility Engine
3
- emoji: 🐨
4
- colorFrom: gray
5
- colorTo: yellow
6
  sdk: static
7
- pinned: false
 
8
  license: apache-2.0
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Agentic Reproducibility Engine
 
 
 
3
  sdk: static
4
+ app_file: index.html
5
+ fullWidth: true
6
  license: apache-2.0
7
  ---
8
 
9
+ # Agentic Reproducibility Engine
10
+
11
+ Static Hugging Face Space frontend for the AMD-hosted multi-agent reproducibility evaluator.
12
+ It is intentionally plain HTML, not Gradio, so the public app stays lightweight while the
13
+ agent API and Qwen/Qwen3.5-27B vLLM endpoint run on the AMD GPU instance.
14
+
15
+ ## Files
16
+
17
+ ```text
18
+ README.md Space metadata and setup notes
19
+ index.html Static frontend copied from the product root
20
+ ```
21
+
22
+ ## Runtime Shape
23
+
24
+ ```text
25
+ Hugging Face Static Space
26
+ |
27
+ v
28
+ HTTPS Agent API on AMD Developer Cloud
29
+ |
30
+ v
31
+ Qwen/Qwen3.5-27B through vLLM on ROCm
32
+ ```
33
+
34
+ The Space itself does not run the model. It calls the AMD-hosted backend.
35
+
36
+ ## Connect To The AMD Backend
37
+
38
+ Open the Space with an API override:
39
+
40
+ ```text
41
+ https://your-space-name.hf.space/?api=https://your-amd-api-host
42
+ ```
43
+
44
+ The frontend calls:
45
+
46
+ ```text
47
+ GET /health
48
+ POST /runs
49
+ POST /runs/stream
50
+ GET /runs/{run_id}
51
+ GET /runs/{run_id}/report
52
+ ```
53
+
54
+ The AMD backend must allow the Space origin:
55
+
56
+ ```bash
57
+ CORS_ORIGINS=https://your-space-name.hf.space
58
+ ```
59
+
60
+ For local testing, the backend can use:
61
+
62
+ ```bash
63
+ CORS_ORIGINS=*
64
+ ```
65
+
66
+ ## Create With The Hugging Face CLI
67
+
68
+ After logging in with a write token:
69
+
70
+ ```text
71
+ hf auth login
72
+ hf repo create lablab-ai-amd-developer-hackathon/agentic-reproducibility-engine --type space --space-sdk static
73
+ git clone https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/agentic-reproducibility-engine
74
+ copy README.md agentic-reproducibility-engine/README.md
75
+ copy index.html agentic-reproducibility-engine/index.html
76
+ cd agentic-reproducibility-engine
77
+ git add README.md index.html
78
+ git commit -m "Deploy static agentic reproducibility frontend"
79
+ git push
80
+ ```
81
+
82
+ ## Create With The Repo Script
83
+
84
+ From the product root:
85
+
86
+ ```powershell
87
+ pip install -r deploy-amd-hf\requirements-amd.txt
88
+ $env:HF_TOKEN="hf_..."
89
+ python deploy-amd-hf\scripts\create_hf_static_space.py
90
+ ```
91
+
92
+ ## Create With `huggingface_hub`
93
+
94
+ The same operation can be automated with:
95
+
96
+ ```python
97
+ from huggingface_hub import HfApi
98
+
99
+ api = HfApi(token="hf_...")
100
+ api.create_repo(
101
+ repo_id="lablab-ai-amd-developer-hackathon/agentic-reproducibility-engine",
102
+ repo_type="space",
103
+ space_sdk="static",
104
+ private=False,
105
+ exist_ok=True,
106
+ )
107
+ api.upload_folder(
108
+ folder_path="agentic-reproducibility-engine/deploy-amd-hf/huggingface-space",
109
+ repo_id="lablab-ai-amd-developer-hackathon/agentic-reproducibility-engine",
110
+ repo_type="space",
111
+ )
112
+ ```
113
+
114
+ ## Production Checklist
115
+
116
+ - Put HTTPS in front of the AMD backend.
117
+ - Keep the vLLM port private; expose only the agent API.
118
+ - Set `MODEL_ID=Qwen/Qwen3.5-27B` on the AMD instance.
119
+ - Set `SERVED_MODEL_NAME=qwen3.5-27b-amd` and match `MODEL_NAME` in the agent API.
120
+ - Use a DNS name for the API host so the Space URL stays stable.
121
+ - Run `python deploy-amd-hf/scripts/check_amd_readiness.py --strict` after deploy.
122
+ - Capture one successful audit run and the `/health` payload for submission evidence.
index.html CHANGED
The diff for this file is too large to render. See raw diff