bored10's picture
Clarify free inference availability
ae79e72 verified
|
Raw
History Blame
2.67 kB
metadata
title: Qwen3.8-Flash-Next Demo
emoji: 
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 6.26.0
app_file: app.py
short_description: Private-key chat demo for Qwen3.8 Flash Next
python_version: '3.12'

Qwen3.8-Flash-Next Demo

A streaming text-and-image chat demo for Qwen/Qwen3.8-Flash-Next. The 125B-parameter checkpoint is called through an OpenAI-compatible inference endpoint, so this Space does not download or expose model weights or API credentials.

Availability notice: The model weights are openly available, but this Space cannot provide free public inference for this very large model. To run the chat, its owner must configure an OpenAI-compatible endpoint and API key, or host the model on suitable hardware. The Space does not collect visitor API keys.

Configuration

In the Space Settings → Variables and secrets, create these secrets:

Secret Required Value
OPENAI_API_KEY Yes API key for the inference endpoint
OPENAI_BASE_URL Yes OpenAI-compatible API base URL, including /v1

Optional public variable:

Variable Default Purpose
MODEL_ID Qwen/Qwen3.8-Flash-Next Model identifier accepted by the chosen endpoint

For QwenCloud, obtain the regional API host from its API-key page and use its OpenAI-compatible /compatible-mode/v1 endpoint. Confirm that the endpoint serves the exact preview model identifier; QwenCloud may use a commercial model alias instead.

Publish with the Hugging Face CLI

# Authenticate once in an interactive terminal.
hf auth login

# Replace YOUR_USERNAME with your Hugging Face namespace.
hf repos create YOUR_USERNAME/qwen3-8-flash-next-demo --type space --space-sdk gradio --flavor zero-a10g --public

# Explicit paths avoid a Windows CLI path-normalisation issue.
hf upload YOUR_USERNAME/qwen3-8-flash-next-demo app.py app.py --repo-type space
hf upload YOUR_USERNAME/qwen3-8-flash-next-demo requirements.txt requirements.txt --repo-type space
hf upload YOUR_USERNAME/qwen3-8-flash-next-demo .gitignore .gitignore --repo-type space
hf upload YOUR_USERNAME/qwen3-8-flash-next-demo README.md README.md --repo-type space

Then add the two secrets in the Space settings before making a request. Never commit an API key to this repository.

Behaviour

  • Supports a text prompt and one optional image (max 10 MB).
  • Streams the model's final response to the chat.
  • Lets visitors choose Qwen thinking mode and effort while withholding internal reasoning traces from the interface.
  • Enables the Gradio MCP server on launch.