Allanatrix commited on
Commit
da430b0
Β·
verified Β·
1 Parent(s): f4241e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +79 -34
app.py CHANGED
@@ -1,36 +1,81 @@
1
  import gradio as gr
2
 
3
- # Descriptions for each Nexa product
4
- nexa_descriptions = {
5
- "Nexa Data Studio": "A full-stack data engineering suite for scientific ML. Includes synthetic dataset generation, tokenization, transformation, and pipeline automation.",
6
- "Nexa Infrastructure": "A toolkit of infrastructure tools for ML optimization, compiler-level graph tuning, and CLI-based control systems (e.g., PyC, tuning scripts).",
7
- "Nexa R&D": "A sandbox for experimental research and software on novel AI methods, such as hybrid optimizers, annealing schedulers, and architecture experiments."
8
- }
9
-
10
- nexa_links = {
11
- "Nexa Data Studio": "https://huggingface.co/spaces/Allanatrix/Nexa-Data-Studio",
12
- "Nexa Infrastructure": "https://huggingface.co/spaces/Allanatrix/Nexa-Infrastructure",
13
- "Nexa R&D": "https://huggingface.co/spaces/Allanatrix/Nexa-R&D"
14
- }
15
-
16
- def show_details(product):
17
- return f"### {product}\n\n{nexa_descriptions[product]}\n\nπŸ”— [Go to {product}]({nexa_links[product]})"
18
-
19
- with gr.Blocks(title="Nexa Hub: Unified Platform for Scientific AI") as demo:
20
- gr.Markdown("""
21
- # πŸš€ Nexa Hub
22
- Welcome to **Nexa Hub**, the central interface for all Nexa tools.
23
- Explore the modules below to learn more about each product and navigate to its dedicated space.
24
- """)
25
-
26
- with gr.Row():
27
- product_dropdown = gr.Dropdown(label="Choose a Nexa Product", choices=list(nexa_descriptions.keys()))
28
-
29
- output = gr.Markdown()
30
- product_dropdown.change(fn=show_details, inputs=product_dropdown, outputs=output)
31
-
32
- gr.Markdown("---")
33
- gr.Markdown("Built and maintained by Allan using open tooling, zero funding, and high-leverage engineering.")
34
-
35
- if __name__ == "__main__":
36
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # Define section contents
4
+ def intro():
5
+ return """## Welcome to NexaHub
6
+ **NexaHub** is the central interface for the entire Nexa ecosystem β€” a unified platform for open, high-performance, and low-friction scientific intelligence. This isn't just another AI project; it's a ground-up reimagination of what AI can do for science, engineering, and discovery β€” built by one polymath in a basement. Every model, dataset, compiler, and tool here is built to push the boundary. But this can go further β€” with your support.
7
+
8
+ ---
9
+
10
+ ### πŸš€ What Is Nexa?
11
+ Nexa is a full-stack scientific AI lab-in-a-box built around four key pillars:
12
+ 1. **Nexa Infrastructure** – Graph compilers, tensor allocators, PySE, and HPC toolchains.
13
+ 2. **Nexa R&D** – Experimental research like Azure Sky optimizers, algorithmic scaffolds, and novel architecture prototypes.
14
+ 3. **Nexa Data Studio** – Purpose-built datasets for science, synthetic augmentation, tokenizer pipelines, and structured preprocessing.
15
+ 4. **Nexa MOE** – A family of Mixture-of-Experts models for hypothesis generation, scientific reasoning, and methodology design.
16
+
17
+ ---
18
+ """
19
+
20
+ def support():
21
+ return """## πŸ’‘ How You Can Support This Vision
22
+
23
+ This entire lab is self-funded, self-built, and powered by passion. But scaling to real impact β€” 2B+ parameter models, open hypothesis engines, and useful science tools β€” needs real support.
24
+
25
+ ### πŸ™‹β€β™‚οΈ If You're An ML Engineer or Industry Professional
26
+ - Offer **compute sponsorship** (e.g. A100s, cloud credits)
27
+ - Bring Nexa into your org β€” as a platform, lab, or embedded tech
28
+ - Help evaluate, contribute to, or extend the infrastructure
29
+
30
+ ### πŸ§ͺ If You're A Researcher
31
+ - Use the models in your work (NexaBio, NexaAstro, NexaCFD, etc.)
32
+ - Reach out with feedback or validation opportunities
33
+ - Endorse the work publicly or internally at your institution
34
+
35
+ ### πŸͺ™ If You're An Altruist, Funder, or Philanthropist
36
+ - Non-dilutive grants ($100k–$500k) can formally spin Nexa into an **AI lab** serving science
37
+ - Endorse the vision of public, open scientific infrastructure
38
+ - Be part of a movement that empowers world-class research with low friction
39
+
40
+ ### β˜• The Simplest Way to Help
41
+ Sponsor the work directly. Buy a coffee, share the repo, amplify the vision.
42
+ Every $1 funds open, scalable, world-class scientific AI.
43
+ """
44
+
45
+ def live_status():
46
+ return """## πŸ”„ Current Roadmap and Status
47
+
48
+ ### Active Projects
49
+ - 🧠 **Nexa MOE Mini**: Lightweight MOE model for scientific inference
50
+ - πŸ§ͺ **Nexa Data Studio**: Synthetic tabular gen, tokenizer infra
51
+ - πŸ”§ **PySE & Graph Compiler**: HPC-friendly dynamic routing + memory optimization
52
+ - πŸ“‘ **NexaHub Frontend**: You're using it now
53
+
54
+ ### Goals (If Funded)
55
+ - Train full **Nexa MOE-ULTRAMAX** on scientific data
56
+ - Expand to real-time LLM-based hypothesis and method generation
57
+ - Build a proper **distributed open scientific AI lab**
58
+ - Formalize grant and sponsor pipelines to scale access to everyone
59
+
60
+ ### Needs
61
+ - Compute credits (e.g., Lambda Labs, CoreWeave, AWS)
62
+ - Formal cash injection ($100k–$500k) to build real lab + scale infra
63
+ - Community amplification and contribution
64
+
65
+ ---
66
+ """
67
+
68
+ # Launch Gradio app
69
+ with gr.Blocks(title="NexaHub - Open Scientific Intelligence") as demo:
70
+ gr.Markdown(intro())
71
+
72
+ with gr.Accordion("See How You Can Support Nexa", open=False):
73
+ gr.Markdown(support())
74
+
75
+ with gr.Accordion("Live Roadmap & System Status", open=False):
76
+ gr.Markdown(live_status())
77
+
78
+ gr.Markdown("### βœ‰οΈ Want to Reach Out?\nDM on X (@your_handle), LinkedIn, or email directly via your website.")
79
+
80
+ demo.launch()
81
+