Files
ModelHub XC 8de41b2cc0 初始化项目,由ModelHub XC社区提供模型
Model: AbteeXAILab/lumynax-longctx-prolong-512k-instruct
Source: Original Platform
2026-10-19 09:24:23 +08:00

28 lines
1.2 KiB
Python

import os
import gradio as gr
REPO_ID = "AbteeXAILab/lumynax-longctx-prolong-512k-instruct"
UPSTREAM = "princeton-nlp/Llama-3-8B-ProLong-512k-Instruct"
TITLE = "LumynaX Long-Context ProLong-512K Instruct"
THEME_CSS = """
:root { --lx-paper:#fffefa; --lx-ink:#0a0a0b; --lx-amber:#e08a2c; }
body, .gradio-container { background: var(--lx-paper) !important; color: var(--lx-ink) !important; }
h1, h2, h3 { font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif; }
"""
def chat_stub(message, history):
return (
f"This Space is a scaffold for **{TITLE}**. The upstream model is `{UPSTREAM}` "
f"and the LumynaX package repo is `{REPO_ID}`. Cloud inference for >100B MoE models "
f"is not run inside this free Space — clone the repo and run `quickstart.py` on a "
f"capable host. You asked: {message!r}."
)
with gr.Blocks(css=THEME_CSS, title=TITLE) as demo:
gr.Markdown(f"# {TITLE}\n*Sovereign intelligence, held in the light.*\n\nLumynaX release scaffold — clone `{REPO_ID}` for the full package.")
gr.ChatInterface(chat_stub, examples=["Explain LumynaX in 2 bullets.", "Why local-first AI for Aotearoa?"])
if __name__ == "__main__":
demo.launch()