CoolFace
Apppublic

abonaie222263/model-hub-chat

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes
App README

Model Hub Chat ๐Ÿ’ฌ

A professional, macOS-style chat app where you can talk to any model โ€” either running entirely in your browser (free CPU, private, no account) or through any OpenAI-compatible endpoint (Hugging Face Inference Providers, opencode, Hermes, โ€ฆ).

Features

  • โ€”๐Ÿง  In-browser inference โ€” 8 curated models run locally via transformers.js (ONNX/WASM). Zero servers, zero cost, 100% private.
  • โ€”๐Ÿ”Œ Remote API mode โ€” stream tokens from any /v1/chat/completions endpoint, with curated HF-hosted presets (openai/gpt-oss-20b, Qwen/Qwen2.5-72B-Instruct, DeepSeek-V3, โ€ฆ) and custom base URLs.
  • โ€”โš™๏ธ Full settings page โ€” completion endpoint (base URL + API key + model), system prompt, temperature / max tokens / top-p, plus quick sliders right above the composer.
  • โ€”๐Ÿ”‘ Bring-your-own token โ€” paste an HF token (or pass ?hf_token=โ€ฆ) to use its credits on hosted models.
  • โ€”๐Ÿค– opencode / Hermes integration โ€” the Settings page generates a ready-to-paste opencode.json provider config plus the raw endpoint URL.
  • โ€”๐Ÿ–ฅ macOS-style UI โ€” traffic-light title bar, sidebar, clean typography.

Models

In-browser (free, private)

ModelParamsNotes
Qwen2.5 0.5B Instruct0.5BFastest, multilingual
SmolLM2 360M Instruct0.36BInstant responses
Qwen2.5 1.5B Instruct1.5BRecommended balance
DeepSeek-R1 Distill 1.5B1.5BReasoning / chain-of-thought
Llama 3.2 1B Instruct1B128K context
TinyLlama 1.1B Chat1.1BCompact assistant
Phi-3.5 Mini Instruct3.8BNear-7B quality
Llama 3.2 3B Instruct3BBest browser quality

Remote API (HF Inference Providers, your token)

  • โ€”openai/gpt-oss-20b (default)
  • โ€”Qwen/Qwen2.5-72B-Instruct
  • โ€”meta-llama/Llama-3.3-70B-Instruct
  • โ€”deepseek-ai/DeepSeek-V3
  • โ€”mistralai/Mistral-Nemo-Instruct-2407
  • โ€”HuggingFaceH4/zephyr-7b-beta (free tier)

Why this approach?

A Static Space was chosen because free accounts can't host a server-side Gradio/Docker Space (needs PRO), and the visitor-pays OAuth pattern needs an OAuth app. This Space works for everyone immediately:

  • โ€”No server, no quota โ€” in-browser inference uses the visitor's own CPU.
  • โ€”Optional API โ€” connect any OpenAI-compatible endpoint for bigger models.

Usage

  1. 1.Open the app.
  2. 2.Pick a model (Models tab) or switch to API mode.
  3. 3.Tune the system prompt / endpoint / generation in Settings.
  4. 4.Chat.

Connect opencode / Hermes

In Settings, copy the generated endpoint URL or the opencode.json config. Example:

json
{
  "provider": "modelhub",
  "base_url": "https://router.huggingface.co/v1/chat/completions",
  "api_key": "<YOUR_HF_TOKEN>",
  "model": "openai/gpt-oss-20b",
  "chat": { "temperature": 0.7, "max_tokens": 512, "top_p": 0.95 }
}

License / credits

UI and code: MIT. Models keep their own licenses (Apache 2.0, MIT, Llama 3.2, Gemma). Built with transformers.js.