noodcon/AI-hub
0
🧰 Mondk Hub — 5 Models Collection (Gradio + ZeroGPU)
Space tổng hợp 5 model của mondk:
Space hardware: ZeroGPU (Free) ✅
Space này dùng Gradio + ZeroGPU (@spaces.GPU). Theo ảnh bạn gửi: khi tạo Space chọn SDK Gradio → template Blank → hardware ZeroGPU (Free). CPU Basic đã khóa với Free tier, ZeroGPU là lựa chọn duy nhất.
Nếu bạn tạo từ API gặp 402 Payment Required (cpu-basic đòi PRO), hãy tạo bằng UI: New Space → Gradio → Blank → ZeroGPU Free hoặc đổi hardware trong Settings → Hardware → ZeroGPU.Cấu trúc Space
app.py: 5 tabs Gradio (Prompt-Guard, Greetings, Msh-14M, Msh-47M, Chess) — mỗi tab gọi model gốc tương ứng, có@spaces.GPUcho ZeroGPU.requirements.txt: gradio, spaces, torch, transformers, accelerate, python-chess, ...
Lưu ý kỹ thuật
- Prompt-Guard GGUF không load trực tiếp bằng transformers được (chỉ có .gguf). Space load base model
RyanStudio/Mezzo-Prompt-Guard-v2-Largeđể cósafe/unsafepipeline chuẩn. Link GGUF vẫn hiển thị để dùng vớillama.cpp. - GGUF của Msh-Tiny được chạy qua bản safetensors gốc (cùng weights, khác quant) để tương thích transformers + ZeroGPU. Bảng so sánh size GGUF vẫn show trong tab.
- Tất cả model
to("cuda")ở module level (theo khuyến nghị ZeroGPU).
Chạy local
pip install -r requirements.txt
python app.py