mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1069] Tesla P100 (Pascal, sm_60) + RTX 2070 SUPER, Linux/Docker (CUDA 12.9), 32 GB RAM: Q2_0 low-RAM mode, about 30 tok/s decode on the P100 alone and 36-38 tok/s with the second card as a helper expert cache (benchmark.py) #457
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tobby1968 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1069
Summary
Strata 0.1.39 runs Qwen3.8-Flash-Next Q2_0 on a Tesla P100 16 GB (compute capability 6.0, the CUDA 12 engine) on a PC with 32 GB of RAM, through the low-RAM mode (
--mmap-experts). Measured with yourbenchmark.pyfrom the RTX 5090 community report (fresh prompts, no reused tokens, 256 greedy output tokens, three runs each; median [min-max]):(0 reused tokens in all runs; the first 4K run of each set was slowest while the file cache was still filling.)
The docs list the P100 as "not measured" and say no Pascal card was available. This is a measurement on one, and a two-card PC (Pascal + Turing, 32 GB RAM). One machine, one model size.
Hardware
Software
6f32ec070f), engine 0.1.39, llama.cpp 3cf0325 (as pinned).Dockerfileis CUDA 13 only (it refuses architectures below 75), so I madeDockerfile.cuda12from it (diff below). A host build with CUDA 12.9 is not possible here: glibc 2.43 clashes with the toolkit's math headers (as TROUBLESHOOTING.md says), so building inside the Ubuntu 24.04 image was the way.Model
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF,
Q2_0(shards 37.6 GB + 28.8 GB, SHA-256 checked against the repository's LFS hashes). Placed in/data/models/Q2_0/. Setup built the pack (experts.bin34 GB,dense.bin) and fetched/packed the MTP layer. No vision.Settings
docker run --gpus all --ulimit memlock=-1 -p 127.0.0.1:8099:8099 -v ~/strata-data:/data -e PORT=8099 -e FAMILY=qwen -e MODEL=Q2_0 -e CONTEXT=40000 -e VISION=no -e GPU=0 -e LOW_RAM=on -e STRATA_CUDA=12 -e STRATA_EXPERIMENTAL_SM60=1 -e REINSTALL=1 strata-cuda12:v0.1.39(no API key, loopback only, so thatbenchmark.pycan call it unchanged).Resulting config (
bench-gpu0/strata-q2_0.json):--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 40000 --kv int8 --mmap-experts. Expert cache on the P100: 7,719 slots (9.94 GiB).Helper-card run (
bench-gpu0-helper/strata-q2_0.json): the same config,"gpu": 0unchanged, plus"env": {"CUDA_VISIBLE_DEVICES": "0,1", "CUDA_DEVICE_ORDER": "PCI_BUS_ID"}and the arguments--expert-cache-device1 4500 --remote-expert-opt. The log then saysCUDA1: 4500 additional experts, 5.79 GiB; results return through pinned host rows. The decode expert-cache hit rate was about 98% (the P100-only run: about 62-67% on the shorter ad-hoc requests), and CUDA1 computed about 50,000 expert entries per 256-token answer.benchmark.pywas run inside the container with--root /opt/strata --pack /data/packs/q2_0 --url http://127.0.0.1:8099 --targets 4096,32768 --runs 3.Differences from the community protocol
needle_bench.pyrecall checks were not run either.bench-gpu0/andbench-gpu0-helper/(results.json,summary.json, raw timingstokens-*-raw.json,engine.log).Extra ad-hoc runs (single requests, rough)
Streaming
/v1/chat/completions, thinking off, token counts fromusage; decode = completion tokens / (total - TTFT).With the layer split the 2070 SUPER's 8 GB was almost full (7.4 GB), the log warned
prompt chunk 4864 tokens, not 8192: CUDA1 ... has 1910 expert-cache slots, and the results were less steady than with the helper cache.Observations and questions
cuobjdumpshows sm_60 and sm_75 code inengine-cuda12/strata. I did not compare outputs numerically with another GPU (the answers read fluently in Japanese)."gpu": [0, 1]the server adds--layer-split autoitself;--expert-cache-device1 4500 --remote-expert-optthen stops the engine with--expert-cache-remote with a layer split needs a GPU that runs no stage (2 visible, 2 used by the split), and an explicit--layer-split 48was overridden. With"gpu": 0the second card is hidden (CUDA1 experts: CUDA device is not visible). What worked was keeping"gpu": 0and making the second card visible through the config's"env"(CUDA_VISIBLE_DEVICES=0,1). Is there a supported way to do this (for example a--helper-gpus 1option in setup)? The layer-split log line suggests--expert-cache-device1 N, but docs/SECOND_GPU.md describes a patch and--gpu1-experts, so a short two-GPU recipe in the docs would help.experts.bineven though the 0.1.31 notes say a native pack can read straight from the GGUF files when there is noexperts.bin. Is that expected for this path?--gguf-dir(or extra engine arguments); I put the downloaded shards into/data/models/Q2_0/and edited the saved config for the helper run. The folder name is case-sensitive (q2_0made setup start downloading again).Dockerfile.cuda12 (diff against the shipped Dockerfile)
Run with
-e STRATA_CUDA=12 -e STRATA_EXPERIMENTAL_SM60=1. If it helps, I can send this as a pull request (anARG-driven variant of the Dockerfile) and add a row for the P100 to the support matrix indocs/OLDER_GPUS.md. I can also runneedle_bench.pyor other tests on this PC (Pascal + Turing, 32 GB RAM).Attachments:
Credentials removed; the benchmark prompts are the synthetic ones generated by
benchmark.py.@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks for the P100 + 2070 SUPER numbers (30.5 tok/s alone, 35.8-38.4 with the helper card). They are in docs/NVIDIA_V100.md next to #1028 and #1079, and replace the line that said Pascal was not measured. If you can, send the numbers as a bench PR (bench/results/-community-...), and the Dockerfile.cuda12 as its own PR: the shipped Dockerfile is CUDA 13 only. Closing as answered.