Qwen3.8_Flash_Next With Strata

I was recommended this repository which promises an inference engine capable of running higher performance LLMs (albiet quantised versions) on consumer-grade hardware. My aim was to run Qwen3.8-Flash-Next on 12GB VRAM + 32GB RAM.

This is the docker compose file I ended up using:

$ cat docker-compose.nvidia.yml
# docker-compose.nvidia.yml
services:
  strata:
    image: ${STRATA_IMAGE:-ghcr.io/niko1221/strata:0.2.7-cuda13}
    container_name: strata
    restart: unless-stopped
    ports:
      - "${STRATA_BIND:-127.0.0.1}:${STRATA_PORT:-8080}:8080"
    environment:
      MODEL: ${MODEL:-}
      MODEL_PATH: ${MODEL_PATH:-}
      CONTEXT: ${CONTEXT:-32k}
      PARALLEL: ${PARALLEL:-}
      VISION: ${VISION:-off}
      TUNE: ${TUNE:-skip}
      API_KEY: ${API_KEY:-}
    volumes:
      - strata-data:/data
    networks:
      ollama_net:
        ipv4_address: 172.18.0.5
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    ulimits:
      memlock: { soft: -1, hard: -1 }
    shm_size: 32gb
    stop_grace_period: 2m
volumes:
  strata-data:

networks:
  ollama_net:
    name: ollama_net
    external: true
    ipam:
      driver: default
      config:
        - subnet: 172.18.0.0/24

The environment settings:

$ cat .env
# --- Image Setup ---
# Automatically pulls the production pre-built container image from GitHub Container Registry
STRATA_IMAGE=ghcr.io/niko1221/strata:0.2.7-cuda13

# --- Networking ---
STRATA_BIND=0.0.0.0
STRATA_PORT=8090

# --- Model Settings ---
# Explicitly targeting the Qwen3.8-Flash-Next architecture mapping
MODEL=
CONTEXT=256k
PARALLEL=1
VISION=off
TUNE=quick

# --- Security ---
# Leave empty to generate securely on the first run, or inject your key here
API_KEY=

# --- Strata performance tweak for 256k context ---
STRATA_FAMILY=swift
STRATA_MAX_CONTEXT=131072
STRATA_KV=q4_0
STRATA_KV_GROW=1
STRATA_KV_STREAMING=on
STRATA_KV_RESIDENT=32768
STRATA_PREFILL=1024

running sudo docker compose up -d starts Strata, it auto-detects the optimal model to use (if you don't specify MODEL in the environment file) and begins downloading the model from huggingface which took a few hours.

Strata downloading model weights Downloading model weights on first start.

first start of Strata After a few hours the inference engine starts up. There's a command you need to run to retrieve the API key if you haven't specified it in the environment file.

Testing Strata using curl Initial testing of Strata using curl.

Strata serving to open-webui By configuring the endpoint http://strata:8090/v1 as an openAI compatible inference engine, qwen3.8-flash-next can be served in open-webui.

Strata can also be configured as a provider for Opencode. I found the very upper limit for context window size is 256k, with better performance at 128k.


© 2026-11-08 Kuso Technology

← Back to Blog

💬