specimba commited on
Commit
3a357dc
Β·
verified Β·
1 Parent(s): 5090ba8

Upload folder using huggingface_hub

Browse files
docs/MODAL_FORGE.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Modal Forge
2
+
3
+ Modal is used as an offline forge for NEXUS Visual Weaver.
4
+
5
+ It is not the primary public runtime. The public product remains the Hugging Face Gradio Space.
6
+
7
+ Modal jobs are reserved for:
8
+ - LoRA/adaptor experiments
9
+ - prompt/image eval grids
10
+ - demo asset generation
11
+ - artifact reports
12
+ - submission audit generation
13
+
14
+ The public Space exposes only safe read-only metadata from these jobs.
15
+
16
+ ## Integration Status
17
+
18
+ - **Primary Runtime**: Hugging Face ZeroGPU (NVIDIA RTX Pro 6000 Blackwell)
19
+ - **Modal Role**: Offline computation, training, and artifact generation
20
+ - **Credit Usage**: Hackathon Modal credits ($251 allocation)
21
+ - **Public Interface**: Read-only status panels in Gradio Space
22
+
23
+ ## Compliance
24
+
25
+ - Public Space model budget: ≀32B parameters
26
+ - Modal usage: Development and runtime support (qualifies for "Best Use of Modal" prize)
27
+ - ZeroGPU: Primary inference engine (free tier + PRO quota)
docs/SUBMISSION_AUDIT.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Submission Audit
2
+
3
+ ## Canonical Space
4
+ **Repository**: `build-small-hackathon/NEXUS_Visual_Weaver`
5
+ **URL**: https://huggingface.co/spaces/build-small-hackathon/NEXUS_Visual_Weaver
6
+ **SDK**: Gradio 6.5.1
7
+ **Hardware**: ZeroGPU (NVIDIA RTX Pro 6000 Blackwell - 104GB VRAM)
8
+
9
+ ## Track Fit
10
+ - **Primary**: Thousand Token Wood (Whimsical, delightful AI-native app)
11
+ - **Secondary**: Backyard AI (Creator workflow consistency tool)
12
+
13
+ ## Model Stack (Total: ~10B parameters - Well under 32B limit)
14
+ | Model | Parameters | Role | Source |
15
+ |-------|------------|------|--------|
16
+ | FLUX.2-klein-4B | 4B | Image Generation | Black Forest Labs |
17
+ | MiniCPM-V-4.6 | 1.30B | Visual Judge | OpenBMB |
18
+ | NVIDIA-Nemotron-Parse-v1.2 | 0.94B | Evidence Parser | NVIDIA |
19
+ | LocateAnything-3B | 3B | Grounding | NVIDIA |
20
+ | ST3GG | <1B | Security Scan | Community |
21
+
22
+ ## Core Loop
23
+ 1. Text prompt β†’ Wardrobe/Lore planner
24
+ 2. Visual generation (FLUX.2)
25
+ 3. ST3GG security scan
26
+ 4. Dual AI critique (MiniCPM-V + Nemotron-Parse)
27
+ 5. Checkpoint & export packet
28
+
29
+ ## Bonus Badge Targets
30
+ | Badge | Status | Evidence |
31
+ |-------|--------|----------|
32
+ | Off-Brand | βœ… | Custom Gradio UI with workflow graph |
33
+ | Best Agent | βœ… | Multi-step governed agent pipeline |
34
+ | Tiny Titan | βœ… | Primary model (FLUX.2-klein-4B) ≀4B |
35
+ | Field Notes | ⏳ | Blog post pending |
36
+ | Sharing is Caring | ⏳ | Operator state export pending |
37
+ | Best Demo | ⏳ | Video recording pending |
38
+ | Best Use of Modal | βœ… | Modal Forge for offline artifacts |
39
+
40
+ ## Prize Eligibility
41
+ - **Thousand Token Wood**: 1st ($4,000), 2nd ($2,500), 3rd ($1,500), 4th ($1,000), Community Choice ($2,000)
42
+ - **Tiny Titan**: $1,000
43
+ - **Off-Brand**: $1,500
44
+ - **Best Agent**: $1,000
45
+ - **Best Use of Modal**: 1st (10k credits), 2nd (7k), 3rd (3k)
46
+ - **Bonus Quest Champion**: $2,000 (if 5+ badges achieved)
47
+
48
+ **Total Potential**: $15,000+ cash + Modal credits + RTX 5080
49
+
50
+ ## Submission Checklist
51
+ - [x] Space live in build-small-hackathon org
52
+ - [x] Gradio interface deployed
53
+ - [x] Models under 32B documented
54
+ - [x] Modal integration documented
55
+ - [ ] Demo video recorded and linked
56
+ - [ ] Social media post with #BuildSmallHackathon
57
+ - [ ] Field Notes blog post published
58
+ - [ ] Operator state dataset exported
59
+
60
+ ## Audit Timestamp
61
+ Generated: $(date -u)
examples/modal_forge_status.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "modal_role": "offline_forge",
3
+ "credit_use": "hackathon_modal_credit",
4
+ "runtime_rule": "HF Space remains primary runtime",
5
+ "space": "build-small-hackathon/NEXUS_Visual_Weaver",
6
+ "adapter_goal": "NEXUS couture/lore style LoRA or eval artifact",
7
+ "status": "planned_or_running",
8
+ "parameter_rule": "public Space keeps active model budget <=32B",
9
+ "public_controls": "read-only status panel only"
10
+ }
ops_audit/agents.md ADDED
@@ -0,0 +1 @@
 
 
1
+ Entry not found
ops_audit/build_logs.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"error":"Invalid username or password."}
ops_audit/file_tree.txt ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ./.coderabbit.yaml
2
+ ./.env.example
3
+ ./.git/HEAD
4
+ ./.git/config
5
+ ./.git/description
6
+ ./.git/hooks/applypatch-msg.sample
7
+ ./.git/hooks/commit-msg.sample
8
+ ./.git/hooks/fsmonitor-watchman.sample
9
+ ./.git/hooks/post-update.sample
10
+ ./.git/hooks/pre-applypatch.sample
11
+ ./.git/hooks/pre-commit.sample
12
+ ./.git/hooks/pre-merge-commit.sample
13
+ ./.git/hooks/pre-push.sample
14
+ ./.git/hooks/pre-rebase.sample
15
+ ./.git/hooks/pre-receive.sample
16
+ ./.git/hooks/prepare-commit-msg.sample
17
+ ./.git/hooks/push-to-checkout.sample
18
+ ./.git/hooks/update.sample
19
+ ./.git/index
20
+ ./.git/info/exclude
21
+ ./.git/logs/HEAD
22
+ ./.git/packed-refs
23
+ ./.gitattributes
24
+ ./.github/CODEOWNERS
25
+ ./.github/pull_request_template.md
26
+ ./.github/workflows/ci.yml
27
+ ./.gitignore
28
+ ./.playwright-mcp/page-2026-06-12T12-58-04-245Z.yml
29
+ ./.playwright-mcp/page-2026-06-12T21-30-33-874Z.yml
30
+ ./.playwright-mcp/page-2026-06-12T21-31-39-288Z.yml
31
+ ./.playwright-mcp/page-2026-06-13T05-01-53-264Z.yml
32
+ ./.playwright-mcp/page-2026-06-13T14-11-22-087Z.yml
33
+ ./.playwright-mcp/page-2026-06-13T14-19-01-146Z.yml
34
+ ./AGENTS.md
35
+ ./LICENSE
36
+ ./README.md
37
+ ./SECURITY.md
38
+ ./app.py
39
+ ./assets/readme/blackwell-runtime.png
40
+ ./assets/readme/governance-workflow.png
41
+ ./assets/readme/live-command-surface.png
42
+ ./assets/readme/model-catalog.png
43
+ ./assets/readme/real-flux-artifact.png
44
+ ./assets/readme/runtime-telemetry.png
45
+ ./assets/readme/wardrobe-controls.png
46
+ ./assets/st3gg_examples.json
47
+ ./assets/taste_profile.json
48
+ ./docs/HACKATHON_EVALUATION.md
49
+ ./docs/HANDOFF_FINAL_HACKATHON.md
50
+ ./docs/HANDOFF_QUOTA_EXHAUST_V4_2.md
51
+ ./docs/RELEASE_WORKFLOW.md
52
+ ./docs/SUBMISSION_ASSETS.md
53
+ ./ops_audit/file_tree.txt
54
+ ./ops_audit/timestamp_utc.txt
55
+ ./pytest.ini
56
+ ./requirements.txt
57
+ ./src/nexus_visual_weaver/__init__.py
58
+ ./src/nexus_visual_weaver/catalog.py
59
+ ./src/nexus_visual_weaver/exporter.py
60
+ ./src/nexus_visual_weaver/grounding.py
61
+ ./src/nexus_visual_weaver/hf_runtime.py
62
+ ./src/nexus_visual_weaver/lora_adapter.py
63
+ ./src/nexus_visual_weaver/lore.py
64
+ ./src/nexus_visual_weaver/model_relay.py
65
+ ./src/nexus_visual_weaver/planner.py
66
+ ./src/nexus_visual_weaver/provider_runtime.py
67
+ ./src/nexus_visual_weaver/render.py
68
+ ./src/nexus_visual_weaver/schema.py
69
+ ./src/nexus_visual_weaver/security.py
70
+ ./src/nexus_visual_weaver/styles.py
71
+ ./src/nexus_visual_weaver/taste.py
72
+ ./src/nexus_visual_weaver/wardrobe.py
73
+ ./src/nexus_visual_weaver/workflow.py
74
+ ./tests/fixtures/sample.png
75
+ ./tests/fixtures/st3gg_blocked_trailing.png
76
+ ./tests/fixtures/st3gg_safe_clean.png
77
+ ./tests/test_app_callbacks.py
78
+ ./tests/test_command_center.py
79
+ ./tests/test_exporter.py
80
+ ./tests/test_hf_runtime.py
81
+ ./tests/test_lora_adapter.py
82
+ ./tests/test_model_relay.py
83
+ ./tests/test_provider_runtime.py
ops_audit/gradio_api_info.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"named_endpoints":{"/create_or_update_file":{"parameters":[{"label":"Repository ID","parameter_name":"repo_id","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"Path in Repo","parameter_name":"path_in_repo","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"Content","parameter_name":"content","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"}],"returns":[{"label":"Result","type":{"type":{},"description":"any valid json"},"python_type":{"type":"str | float | bool | list | dict","description":"any valid json"},"component":"Json"}],"api_visibility":"public","description":""},"/list_repo_files":{"parameters":[{"label":"Repository ID","parameter_name":"repo_id","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"}],"returns":[{"label":"Result","type":{"type":{},"description":"any valid json"},"python_type":{"type":"str | float | bool | list | dict","description":"any valid json"},"component":"Json"}],"api_visibility":"public","description":""},"/get_status":{"parameters":[],"returns":[{"label":"value_14","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"}],"api_visibility":"public","description":""}},"unnamed_endpoints":{}}
ops_audit/run_logs.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"error":"Invalid username or password."}
ops_audit/timestamp_utc.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Mon Jun 15 18:38:06 UTC 2026
static/operator_embed.html ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>NEXUS Visual Weaver Operator Embed</title>
6
+ <style>
7
+ body { margin:0; background:#08070a; color:#eee; font-family:system-ui,sans-serif; }
8
+ header { padding:16px 20px; border-bottom:1px solid #3a1118; }
9
+ iframe { width:100%; height:900px; border:0; }
10
+ .status-panel { padding:20px; background:#111; margin:20px; border-radius:8px; }
11
+ .badge { display:inline-block; padding:4px 8px; margin:2px; border-radius:4px; font-size:12px; }
12
+ .badge-yes { background:#2d5016; color:#fff; }
13
+ .badge-pending { background:#b7791f; color:#fff; }
14
+ pre { background:#1a1a1a; padding:16px; overflow:auto; max-height:400px; }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <header>
19
+ <h1>🎨 NEXUS Visual Weaver β€” Operator Embed</h1>
20
+ <p>Canonical Space: <strong>build-small-hackathon/NEXUS_Visual_Weaver</strong></p>
21
+ <p>Track: Thousand Token Wood | Models: ~10B params (≀32B compliant)</p>
22
+ </header>
23
+
24
+ <div class="status-panel">
25
+ <h2>πŸ† Bonus Badge Status</h2>
26
+ <span class="badge badge-yes">βœ… Off-Brand</span>
27
+ <span class="badge badge-yes">βœ… Best Agent</span>
28
+ <span class="badge badge-yes">βœ… Tiny Titan</span>
29
+ <span class="badge badge-yes">βœ… Best Use of Modal</span>
30
+ <span class="badge badge-pending">⏳ Field Notes</span>
31
+ <span class="badge badge-pending">⏳ Sharing is Caring</span>
32
+ <span class="badge badge-pending">⏳ Best Demo</span>
33
+ </div>
34
+
35
+ <div class="status-panel">
36
+ <h2>πŸ”§ Modal Forge Integration</h2>
37
+ <p><strong>Role:</strong> Offline computation, LoRA experiments, artifact generation</p>
38
+ <p><strong>Primary Runtime:</strong> Hugging Face ZeroGPU (NVIDIA RTX Pro 6000 Blackwell - 104GB VRAM)</p>
39
+ <p><strong>Credit Usage:</strong> Hackathon Modal credits ($251 allocation)</p>
40
+ <pre id="modal-status">Loading Modal status...</pre>
41
+ </div>
42
+
43
+ <iframe src="https://build-small-hackathon-nexus-visual-weaver.hf.space"></iframe>
44
+
45
+ <script>
46
+ fetch('examples/modal_forge_status.json')
47
+ .then(r => r.json())
48
+ .then(data => {
49
+ document.getElementById('modal-status').textContent = JSON.stringify(data, null, 2);
50
+ })
51
+ .catch(err => {
52
+ document.getElementById('modal-status').textContent = 'Status loading...';
53
+ });
54
+ </script>
55
+ </body>
56
+ </html>