diff --git a/CHANGELOG.md b/CHANGELOG.md index 11e42e3..dc487ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Transformers streaming preserves code indentation after newline flushes with SentencePiece tokenizers. Real CUDA inference reproduced a lost space despite identical generated token IDs; regression tests cover code, blank lines, tabs and Unicode. +- Native Transformers and llama.cpp backends identify themselves correctly, so `require_local=True` accepts these in-process engines and model metadata reports their actual backend. +- Non-streaming chat and completion responses preserve engine-reported token usage, including Ollama's native counters, instead of replacing it with an estimate. Tool loops sum the usage of every generation round; estimates remain the fallback when counts are unavailable or invalid. + +### Validation +- Added reproducible A100 80 GB validation evidence, raw responses, warm HTTP benchmarks and a captured results report. The recorded runtime/model combinations and untested features are listed with the results. + ## [0.3.1] - 2026-10-25 ### Fixed diff --git a/README.md b/README.md index 65bda90..ecf165a 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,24 @@ For the released API, use the [0.3.1 documentation](https://github.com/1Utkarsh1 No API key is needed for local inference. Prepare your engine, dependencies and model weights before disconnecting from the internet. +## Recorded GPU validation + +The [25 October 2026 validation bundle](benchmarks/2026-10-25-a100/README.md) +records real model runs on an **NVIDIA A100 80 GB**: Qwen3.8-27B through vLLM, +SGLang, Ollama and native llama.cpp, plus TinyLlama 1.1B through Transformers +and AirLLM. It includes raw responses and logs, exact model revisions, package +versions, reproduction scripts, benchmark samples and before/after bug evidence. + +![Captured validation report, generated from the saved JSON and logs](benchmarks/2026-10-25-a100/images/validation-report.jpg) + +The tested source is **v0.3.1 plus the recorded fixes**; see +[the source patch](benchmarks/2026-10-25-a100/source-fixes.patch) and +[Unreleased changes](CHANGELOG.md#unreleased). Warm HTTP measurements cover short, +repeated prompts on one GPU. Engine settings and quantization differ, so these +results establish the listed compatibility and measurements without ranking +engines or claiming better model quality. Untested runtimes and features are +listed with the evidence. + ## Start with a local model Start [Ollama](https://github.com/ollama/ollama), then download a model once: diff --git a/benchmarks/2026-10-25-a100/README.md b/benchmarks/2026-10-25-a100/README.md new file mode 100644 index 0000000..0e74ace --- /dev/null +++ b/benchmarks/2026-10-25-a100/README.md @@ -0,0 +1,114 @@ +# Recorded A100 validation — 25 October 2026 + +These are saved results from one rented **NVIDIA A100-SXM4-80GB** on Runpod Secure Cloud, using Python 3.12.3. The run date is 25 October in Sydney; raw timestamps use 24 October UTC. This bundle contains actual responses, stdout, source hashes, package versions and reproduction scripts. The screenshots capture HTML reports generated from these files. + +**Tested source:** tag `v0.3.1`, commit `df9b95526b029601cdd0775950a72fd9485e7c8e`, plus [source-fixes.patch](source-fixes.patch). The package version string remains `0.3.1`; the additional fixes are recorded under [Unreleased](../../CHANGELOG.md#unreleased). These results must not be attributed to the unchanged PyPI 0.3.1 wheel. + +[Open the report source](report.html) · [Captured report](images/validation-report.jpg) · [Captured log excerpts](images/test-evidence.jpg) · [Environment](results/environment.json) · [Artifact SHA-256 checksums](SHA256SUMS) + +## Compatibility results + +| Actual execution path | Model / precision | Passing live checks | Evidence | +|---|---|---:|---| +| vLLM 0.32.0, HTTP | Qwen3.8-27B, BF16, language model only | 10 | [JSON](results/qwen-vllm-probes.json), [stdout](results/qwen-vllm-probes.log) | +| SGLang 0.5.22, HTTP | Qwen3.8-27B, BF16, full model loaded | 10 + 1 image check | [JSON](results/qwen-sglang-probes.json), [vision](results/qwen-sglang-vision.json) | +| Ollama 0.40.10, native HTTP | Qwen3.8:27b, Q4_K_M | 7 + 1 image check | [JSON](results/qwen-ollama-probes.json), [vision](results/qwen-ollama-vision.json) | +| llama-cpp-python 0.3.36, in process | Same Qwen GGUF, all layers offloaded | 4 | [GPU offload and test stdout](results/llamacpp-live.log), [response](results/llamacpp-response.json) | +| Transformers 5.20.2 / torch 2.8.0+cu128, in process | TinyLlama 1.1B, CUDA BF16 | 13 | [Final stdout](results/transformers-live-final.log), [HTTP responses](results/native-http.json) | +| AirLLM 4.0.0, in process | TinyLlama 1.1B, CUDA, layer offload | 3 | [Stdout](results/airllm-live.log), [response](results/airllm-response.json) | + +The ten vLLM/SGLang checks cover model listing, chat, greedy streaming equality, JSON Schema output, unexecuted forced tool calls, reasoning metadata, text completion, oversized context rejection in both modes, and four concurrent requests. Ollama covers locality/capability metadata, chat, streaming equality, JSON Schema, unexecuted tool calls, reasoning metadata and completion. Ollama's tool selection remains model-dependent. + +The native and Ollama probes exercised `require_local=True`. The generic OpenAI model metadata from vLLM/SGLang does not attest locality, so those probes used the default guard setting; their execution on this host was observed independently through the server processes and CUDA logs. Unknown locality still fails closed when the guard is requested. + +Native Transformers checks cover actual token boundaries, exact context fit, output reservation, worker-error propagation, streamed indentation, Unicode, public chat and three HTTP routes. Its health endpoint answered while model generation was unfinished; [the raw measurement](results/native-http.json) is one observation, not a service latency guarantee. Native llama.cpp checks completion/locality, streaming equality and context overflow in both modes. AirLLM checks completion, buffered streaming and context overflow; it is not an AirLLM throughput or large-model capacity benchmark. + +The image checks send a generated [64 × 64 solid-red PNG](images/vision-input-red.png) through the public chat API and check that the model identifies red. They establish one inline-image path, not general visual understanding or OCR accuracy. + +Separately, the existing [live Ollama discovery suite](results/ollama-live-discovery-after.log) passed **13 tests and 2 subtests**, with **2 skipped** because the server listed no cloud-routed models. This run made no cloud-model inference requests. + +## Warm HTTP measurements + +All requests go through `LLM.chat()` over loopback. Each engine ran alone on the GPU: two excluded warmups, **10 sequential measured requests**, **5 streaming requests**, then **4 concurrent requests**. Every measured non-streaming request produced **64 engine-reported output tokens**. Sampling was temperature 0, seed 7, top-p 1, top-k 40 and repetition penalty 1. Thinking was disabled; context was configured to 8,192. The full prompt, settings, per-request counts, outputs and timings are in the JSON files. + +| Engine / precision | Median request latency | Observed latency range, n=10 | Median first visible streamed content, n=5 | Median output tokens/s | Aggregate output tokens/s, 4 concurrent | +|---|---:|---:|---:|---:|---:| +| vLLM / BF16 | 4.023 s | 4.014–4.049 s | 0.171 s | 15.9 | 59.3 | +| SGLang / BF16 | 3.181 s | 3.174–3.196 s | 0.135 s | 20.1 | 78.8 | +| Ollama / Q4_K_M | 1.552 s | 1.493–1.897 s | 0.265 s | 41.3 | 41.3 | + +[Benchmark script](scripts/benchmark_http.py) · [vLLM raw samples](results/qwen-vllm-benchmark.json) · [SGLang raw samples](results/qwen-sglang-benchmark.json) · [Ollama raw samples](results/qwen-ollama-benchmark.json) + +**Interpretation:** output tokens/s is output count divided by complete request wall time, including prompt processing and HTTP. It is not isolated decode throughput. Streaming latency starts before the request and ends at the first non-empty content delta. The concurrency figure divides all four output counts by total wall time. Repeated prompts and default engine caching make this a warm workload. vLLM used eager execution with vision disabled; SGLang disabled CUDA graphs and loaded the full model; Ollama used different quantization and its own scheduling. These are distinct configurations, so the table is not a fair engine ranking. No client-overhead comparison, model-quality evaluation, cold-start result or competitor benchmark was performed. + +## Bugs found and verified + +1. **Streaming lost code indentation.** Real TinyLlama generation returned identical token IDs in both paths, yet the upstream newline flush caused streamed decoding to lose an indentation space. The adapter keeps a bounded newline anchor. [Original live failure](results/transformers-live.log), [token-level diagnosis](results/stream-diagnosis.json), [seven failing regression subtests before the fix](results/indentation-regression-before.log), [passing live run](results/transformers-live-final.log). +2. **Native locality identity was missing.** Transformers and llama.cpp inherited the backend name `base`, causing `require_local=True` to reject these in-process engines. Both now identify themselves correctly. [Failing regression](results/native-locality-before.log), [passing regressions](results/regressions-after.log), and actual native inference with the guard enabled. +3. **Reported token counts were replaced by estimates.** `LLM.chat()` and `LLM.complete()` discarded upstream counts. They now preserve valid counts; Ollama maps its native counters, and tool loops sum each generation round. [Before](results/usage-before.log), [after](results/usage-after.log). The initial benchmark with incorrect estimated counters was discarded; only corrected 64-token measurements appear above. Streaming usage is still estimated and was not used to calculate tokens/s. + +The [original opt-in Ollama test failure](results/ollama-live-discovery-before.log) also exposed a test assumption: its 16/24-token budgets could be consumed by a thinking model before visible output. The text smoke tests now explicitly pass `think=False`; independent reasoning probes pass `think=True`. This was a test-budget correction, not an inference crash. + +## Suite and provenance + +- The unchanged v0.3.1 [baseline suite](results/release-suite.log) passed **484 tests and 245 subtests**, with **16 skipped**. +- The patched [final suite](results/final-suite.log) passed **490 tests and 261 subtests**, with **16 skipped**. Official OpenAI and MCP SDK interoperability were enabled. These are mostly unit, fixture and SDK tests; **490 is not a count of GPU model inference tests**. +- Strict Sphinx, Ruff, Black, wheel/sdist builds, Twine checks and a fresh-wheel light-core chat smoke test also passed. [The local build record](results/local-package-check.json) includes artifact hashes and confirms that packaged Python sources match the checkout; these validation builds were not uploaded to PyPI. +- [Source hashes](results/tested-source-sha256.json) identify the tested Python sources and project metadata. [Package manifests](results/packages-base.json) record resolved versions; separate manifests cover [vLLM](results/packages-vllm.json), [SGLang](results/packages-sglang.json), [llama.cpp](results/packages-llamacpp.json) and [AirLLM](results/packages-airllm.json). +- Qwen Hugging Face revision: `1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0`. TinyLlama revision: `fe8a4ea1ffedaf415f4da2f062534de366a451e6`. +- Qwen GGUF SHA-256: `f5f1dd8920d417aac2718b0bda3403da274301efdd6760b4f0f4b864ff2ad57d`, 16,810,714,464 bytes. The Ollama vision projector is a separate file. Weights are not included in this repository. +- Driver: 595.91.07. Container: `runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404`. The driver reports CUDA 13.2 support; individual environments use different CUDA runtimes, as their package manifests show. + +Logs retain test output and responses. ANSI terminal controls and the local macOS checkout path are removed where present. Credentials, SSH keys, account records and model weights are excluded. Screenshots are captures of generated reports, not screenshots of a terminal or CI badge. + +## Reproduce + +These scripts record the disposable Linux test layout under `/workspace`; they do not provision a GPU or start billing. Install the recorded versions from the manifests using the upstream installation guides, prepare model weights, and run one engine at a time. The baseline source plus patch recreates the tested client code: + +```bash +git checkout df9b95526b029601cdd0775950a72fd9485e7c8e +git apply /path/to/source-fixes.patch +``` + +The run used separate environments named `/workspace/env-base`, `env-vllm`, `env-sglang`, `env-llamacpp` and `env-airllm`, with the repository installed editable and `HF_HOME=/workspace/hf-cache`. Copy the scripts to `/workspace`, create `/workspace/artifacts`, and use the pinned model revisions above. `env-base` needs the development, server and Transformers extras plus the recorded OpenAI/MCP SDKs. The live test scripts require pytest; they are outside the default `tests/` collection to avoid accidental model downloads. + +```bash +LOCAL_LLM_KIT_OPENAI_INTEROP=1 LOCAL_LLM_KIT_MCP_INTEROP=1 \ + /workspace/env-base/bin/python -m pytest +HF_HOME=/workspace/hf-cache /workspace/env-base/bin/python -m pytest -s \ + /workspace/test_transformers_live.py +``` + +Start the appropriate server with [start_vllm.sh](scripts/start_vllm.sh) or [start_sglang.sh](scripts/start_sglang.sh), wait for its health endpoint, then run the compatibility probes and benchmark. For SGLang, change the backend to `sglang` and the port to `30000`: + +```bash +/workspace/env-base/bin/python /workspace/probe_server.py \ + --backend vllm --url http://127.0.0.1:8000/v1 \ + --model Qwen/Qwen3.8-27B --report /workspace/artifacts/qwen-vllm-probes.json +/workspace/env-base/bin/python /workspace/benchmark_http.py \ + --backend vllm --url http://127.0.0.1:8000/v1 \ + --model Qwen/Qwen3.8-27B --report /workspace/artifacts/qwen-vllm-benchmark.json +``` + +For Ollama, run the official 0.40.10 binary bound to loopback with `OLLAMA_NO_CLOUD=1`, pull `qwen3.8:27b` and check its digest. Run [probe_ollama.py](scripts/probe_ollama.py), then the benchmark with `--backend ollama --url http://127.0.0.1:11434 --model qwen3.8:27b`, and [probe_vision.py](scripts/probe_vision.py) with `--backend ollama`. The existing suite is opt-in: + +```bash +LOCAL_LLM_KIT_LIVE=1 /workspace/env-base/bin/python -m pytest -s tests/test_live_servers.py +``` + +[The llama.cpp script](scripts/test_llamacpp_live.py) reads the verified GGUF from the Ollama blob store and requests `n_gpu_layers=-1`. The CUDA 13 wheel required its shared runtime on this CUDA 12.8 base image; the run reused the installed vLLM environment's runtime libraries: + +```bash +LD_LIBRARY_PATH=/workspace/env-vllm/lib/python3.12/site-packages/nvidia/cu13/lib:/usr/local/cuda/lib64 \ + /workspace/env-llamacpp/bin/python -m pytest -s /workspace/test_llamacpp_live.py +HF_HOME=/workspace/hf-cache /workspace/env-airllm/bin/python -m pytest -s \ + /workspace/test_airllm_live.py +``` + +Check your wheel's runtime requirements rather than assuming this library path applies to another image. See the official [vLLM Qwen recipe](https://recipes.vllm.ai/Qwen/Qwen3.8-27B), [SGLang Qwen recipe](https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.8-27B), [Ollama Linux guide](https://docs.ollama.com/linux), [llama-cpp-python install guide](https://github.com/abetlen/llama-cpp-python), [AirLLM repository](https://github.com/lyogavin/airllm), [Qwen checkpoint](https://huggingface.co/Qwen/Qwen3.8-27B) and [TinyLlama checkpoint](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0). + +To regenerate the report after verifying the files, run `python scripts/render_report.py` from this bundle. On Linux, `sha256sum -c SHA256SUMS` verifies the recorded artifact hashes; on macOS, use `shasum -a 256 -c SHA256SUMS`. + +## Limits + +Flint, Apple Foundation Models, MLX, LM Studio, LocalAI, Jan, GPT4All, KoboldCpp and the other server presets were not exercised on this rented Linux GPU. No embedding, retrieval-quality, long soak, cancellation, tool side-effect isolation or adversarial security benchmark was run. Only one synthetic image was checked per vision-capable engine. The tested native Transformers context was 2,048 tokens; Qwen servers used 8,192, below the model's advertised maximum. Model downloads used the internet; inference used local weights and loopback endpoints without a firewall/egress-isolation test. This is evidence for the recorded combinations, not certification of every backend or hardware configuration. diff --git a/benchmarks/2026-10-25-a100/SHA256SUMS b/benchmarks/2026-10-25-a100/SHA256SUMS new file mode 100644 index 0000000..81bcf1a --- /dev/null +++ b/benchmarks/2026-10-25-a100/SHA256SUMS @@ -0,0 +1,69 @@ +b83e40b685979d0783b079ec8f305467c25f7373595b84b2b3719e79f6cce255 README.md +8283fdb15fe76d325552ea86416133d8e7e96db1cae0d1f023ff29b496ae9a99 images/test-evidence.jpg +67c39190a327aa61d46f36b6c2662d26042be2c3590be93d47bf2ea00e8ef1a2 images/validation-report.jpg +ca96adb50da6a5f6cbfe03c9c5eb8ad8f1a6c88f526b8a4b9d9d7d3b9ef90157 images/vision-input-red.png +b2d796ca0724e225cdf550436d00b6a5017a166082042eb81065d47ed627cfbb report.html +b5168b1e6c8bae20e15092dba505688661775487522f491fe7e84d160392f3ec results/airllm-environment.json +b381a00788bfe72b6e2598fc2262b835b4cad89877f8311b2d2c23508537b00b results/airllm-live.log +8125d35a68e078ca09b433c909970bd248063dbadc8adcb90ce440f04069943c results/airllm-response.json +70ee456ef8b81a953756014436add3c8d436d893fef914ba707031760cdfc354 results/environment.json +f1fe94fcf198c64baabb6ced7e4c91391a345e59788dac96b0d189fb8a34cc92 results/final-suite.log +7af2ef708e186263bee46ab799dd16606d62682c42ce3d5ae7f7778d7ef70e13 results/indentation-regression-before.log +e9711d2e22d0d2176dd6855b8a683bfcdaf0a11d98a575cc2f00fc6aaf7eb7c2 results/llamacpp-environment.json +1f16c03bf0244c908d918b306f4f639bb6f4e6b7af5d9058c7b59249fee35459 results/llamacpp-live.log +4b6652104ece4edef47306df12ba5864486b54e156c1b897d3213fa257279df5 results/llamacpp-response.json +7b7641f0cf0901a52daadc3dea4a67ae695b3b13aabd17701f76e11412513dfa results/local-package-check.json +f279ddf3126cbbe3ff6bac523f4bf9cf4cbde3d7537eee4750a5a2f14f00c9d0 results/native-http.json +00f1225b05f49f15ae2f9301c38b8637608bc0f144d819b60887d9d5e9ee0076 results/native-locality-before.log +bc884eb103be479b5cc42e3dc850ef676c362314cdc30f1e99e227d94f859db6 results/ollama-live-discovery-after.log +5dea43dc18ba534ad71ef9d4fdb0a02986ae1d82f227b8a580b787fbd70627b1 results/ollama-live-discovery-before.log +d64cc4e789030e21607b4268f67eaec30ba3f29007fd4902820d1d6c5c5879ea results/ollama-version.txt +c277b79d0891c06cf5df2b4ab82ddd1572012c375ee6b80257ae3ed0c8533c8e results/packages-airllm.json +8dadc50bafa11b4f56b01652d71c21abe6e97feb765984e5d7546f4742b52580 results/packages-base.json +0dc9359e9f722e0000d25f10d7710e82cbe4c542166bba185f649b7354431880 results/packages-llamacpp.json +4faea9345e7124c6ecc24e9d9f6e5f3990510fa8df94d4dd9b964a26b0da47b1 results/packages-sglang.json +f6e8579578d52f0423012e6ae0ff7e1600bc030d573010080d07b91bbf4d5e3b results/packages-vllm.json +5675850fd1bccd7bbeb22eabf699baae6ff6db206b106335e240415307cfdabe results/qwen-download.json +54071422b9c127f3ff1c0c50d02a6a45443ec7ca7d1562afe4cc1ccdc8ef39b3 results/qwen-ollama-benchmark.json +2d4eb49568694e2593a749fb872f11e8fb09f5aed49ca1dd9a113a8ce231c193 results/qwen-ollama-benchmark.log +ea62a4aa2a6712bd0c01462984c4376fbf0b15d245fc181412b34b4a04f699aa results/qwen-ollama-probes.json +a4d279f3b43b15ede74b1188b7075cfa911e7e41653000a409be2ad15e751f58 results/qwen-ollama-probes.log +9ce7885dbbf47a2efc2ebaf0e2558ada512396e33608b4dd12533878720196bc results/qwen-ollama-vision.json +1af609ba852dce561eccceb3682990fe76a84fcc7907af18efe2a4cc8c564f9a results/qwen-ollama-vision.log +1ac9fb9f186f4c80df14f08e0b8b8f48f5c9cec9852a63b02c49e643a4807762 results/qwen-sglang-benchmark.json +b47957cf38b7a2ad809c29d9132e7d7d492559f3ce95f16a154d290d8e19fd9d results/qwen-sglang-benchmark.log +6ebc8ea6cfdd4c03aa4d5dc158e37130a6f372d2381c238ac2733c4eafa2fc4d results/qwen-sglang-probes.json +eb080618b01cf91261a62f736bd56472c6aba238b36754c4b5c6dc90d711e279 results/qwen-sglang-probes.log +96e05be48f73d25f89960c889bee1405703a230f369339c4b3d8d6512b8ee0e1 results/qwen-sglang-vision.json +5bb01d576e96b499339a6ebf7a2454e1b43b4e052f3e0f4fa6d0aa096a2aebbd results/qwen-sglang-vision.log +0421d65ffd3c226284197028c7ec8f1c844caf3e3659441d3b92c13a20abcc01 results/qwen-vllm-benchmark.json +308eadf8e72fc2735ac8e1e86f04a24c5fa71b564a8ab27443e45f4342a45f21 results/qwen-vllm-benchmark.log +68baba54a955f01625ee93f5b881c42f6595cddf75ebab03f98d27114111c1db results/qwen-vllm-probes.json +2c472cadafeadd185504be6360fc9b14ca3c51e320618c3a0aa2d1fbcf0e75a6 results/qwen-vllm-probes.log +6e2526156dbf9ea74067ecc17a2f98f3a56a2f9aa5c960d698b64a19adcdaa3c results/regressions-after.log +2513e7463d4d2998fae3d89c8f5d6d8940ec1a14835ea91e24db50c0ba6d5db5 results/release-suite.log +a2e13537595a306ca4acc19f044c624aa5d8ac176fa85fe25a7572235bcc6af6 results/sglang-gpu-snapshot.csv +cef26cbe54f6c6374131e0b22e9b1d0e9b6dfa22800fd14bf386bbb955c5f7c8 results/sglang-qwen-final.log +9d49f3ffebc3c315e4ad4ddc5a642bb7694e613081bd215d7f5eff3f38640093 results/stream-diagnosis.json +aa3ee5bb24a770812d7ab53f45c09c633303e469bf8217abb4ce133c556f76f6 results/stream-diagnosis.log +d9bea3f062c29499326ac8e8169c1bdbaa065b80657b2bafb86e1eb90bfe2e8c results/tested-source-sha256.json +5786bf213d0678ec726b3c0562b5d0103dc2ea4c8a423a97c0f07480c26f8dc9 results/transformers-environment.json +560b5a317914789232d954b99909e7f96916149c8510561b3a30b56eaf3c02fa results/transformers-live-after.log +1fe5c5be9cf8fc0619a2d0c5d91b9fe8263bc9ae0f662b464cda6d325ebc35f9 results/transformers-live-final.log +e06448271b7ba988635c029a03c46a28d3719cdbc9eb04f1a5713828427bd88f results/transformers-live.log +edb7d284d56e0d6e9a2d7583f87d86662374e73bdc9bc44d7843ab41ced5c7f0 results/usage-after.log +93069dac8d5759ba77e2470e5b1f159af5a0df3733ebfefbbd2107fc98ef78d3 results/usage-before.log +daf1024f911a5d2fc2cfc7ec2ebedb6a61fc3f6055637ead118f663bf243961c results/vllm-gpu-snapshot.csv +8b290d8de7c06e4196ffab65b47890408a5c5c49c135efcc926cead8d1eb07cf results/vllm-qwen-final.log +5ea8e5f5901ceefc943cc61cd094862e355600060c4edf509c6c063370809739 scripts/benchmark_http.py +ffc1d1b0c4a71f7843aaa9ad0d630ff3aacc3ff16f006c01d6ea53eb978b22ee scripts/probe_ollama.py +b12cdaf8c5e1d2e95f356b32d319b73a505c2fdf3754f806b6565c369e2a0aad scripts/probe_server.py +c435b3ddff78b4f679ce0e3eb9918a50c5ed08a624b0d5f8917b8cbd5a4cb1ce scripts/probe_vision.py +06e72b6135839d6e040194db12500cbd539a38753e5c27405aff795211749251 scripts/render_report.py +86c0c19f0b672ef2f75644c2ebd23db2a16add0cf48041e91f62ee2fe2a13fc2 scripts/start_sglang.sh +35f989b37a80415bfa51161ab654ccfd5988f0f4c7424abc9a1e24a3ad558de4 scripts/start_vllm.sh +1c2ee90124faa7c8ed90fd403ed0851ae918aedfd718c9fb25416d15b583b6c9 scripts/test_airllm_live.py +b9da88ce48fb0103a506331863e1f0a19fa1887c50324159539363f2c2b496cb scripts/test_llamacpp_live.py +5f70528dc2490999ca9ff5b80778ef0e26587f01b5e9e37f5d6286438f2137f4 scripts/test_transformers_live.py +d85f71adfcea1c56e1f080f46aa2e7d4c063aa4475327aa0eabaae195a995093 source-fixes.patch +1e8715279c73cc59410bd85b25492f58112357ad6d3d784b4eb4a3023f22bf4f test-evidence.html diff --git a/benchmarks/2026-10-25-a100/images/test-evidence.jpg b/benchmarks/2026-10-25-a100/images/test-evidence.jpg new file mode 100644 index 0000000..88b692c Binary files /dev/null and b/benchmarks/2026-10-25-a100/images/test-evidence.jpg differ diff --git a/benchmarks/2026-10-25-a100/images/validation-report.jpg b/benchmarks/2026-10-25-a100/images/validation-report.jpg new file mode 100644 index 0000000..93dae69 Binary files /dev/null and b/benchmarks/2026-10-25-a100/images/validation-report.jpg differ diff --git a/benchmarks/2026-10-25-a100/images/vision-input-red.png b/benchmarks/2026-10-25-a100/images/vision-input-red.png new file mode 100644 index 0000000..f41b1ff Binary files /dev/null and b/benchmarks/2026-10-25-a100/images/vision-input-red.png differ diff --git a/benchmarks/2026-10-25-a100/report.html b/benchmarks/2026-10-25-a100/report.html new file mode 100644 index 0000000..35e5ff4 --- /dev/null +++ b/benchmarks/2026-10-25-a100/report.html @@ -0,0 +1,13 @@ +Local LLM Kit — recorded GPU validation
+
LOCAL LLM KIT · RECORDED VALIDATION · 25 OCTOBER 2026 (SYDNEY)
+

Real model checks on one A100 80 GB

+

NVIDIA A100-SXM4-80GB · Python 3.12.3 · Qwen3.8-27B / TinyLlama 1.1B
Source: v0.3.1 + recorded fixes. This page is rendered from the linked JSON and logs.

+
Final suite: 490 passed, 16 skipped · 261 subtests passed
+

Warm loopback HTTP measurements

+
Engine / model precisionMedian latencyMedian first contentOutput tokens/s4 concurrent tokens/s
vLLM · BF164.023 s0.171 s15.959.3
SGLang · BF163.181 s0.135 s20.178.8
Ollama · Q4_K_M1.552 s0.265 s41.341.3
+

Per engine: 2 warmups, 10 sequential requests × 64 output tokens, 5 streaming requests, 4 concurrent requests. Temperature 0, seed 7, 8,192 context; thinking disabled. Output tokens/s includes prompt processing and HTTP time. Different quantization and engine settings prevent a fair engine ranking.

+

Live inference evidence

+

Bugs reproduced and fixed

Streaming code indentation after newlines; native backend locality identity; engine-reported token counts replaced by estimates. Before-and-after logs and source patch are included.

+
Scope: one rented Linux GPU and short workloads. No cold-start, quality or competitor benchmark. Flint, Apple FM/MLX and other runtimes were not run. Model download required internet; inference used local weights and loopback, without an egress-isolation test.
+

Method and reproduction commands · Environment · Artifact checksums · Captured log excerpts

+
\ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/airllm-environment.json b/benchmarks/2026-10-25-a100/results/airllm-environment.json new file mode 100644 index 0000000..4530d57 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/airllm-environment.json @@ -0,0 +1,7 @@ +{ + "airllm": "4.0.0", + "transformers": "5.20.2", + "model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", + "max_seq_len": 256, + "load_seconds": 9.65857089299243 +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/airllm-live.log b/benchmarks/2026-10-25-a100/results/airllm-live.log new file mode 100644 index 0000000..e38caab --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/airllm-live.log @@ -0,0 +1,69 @@ +using generic AirLLM streaming model for architecture: LlamaForCausalLM + +Fetching 9 files: 0%| | 0/9 [00:00 + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: 'def add(a, b):\n return a+b\n' != 'def add(a, b):\n return a+b\n' +E def add(a, b): +E - return a+b +E + return a+b +E ? + + +tests/test_transformers_streaming.py:201: AssertionError +_ TestTransformersContextAndStreaming.test_sentencepiece_newline_flush_preserves_indentation (text='if a:\n\tprint(a)\n\n next_line') _ + +self = + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: 'if a:\n\tprint(a)\n\n next_line' != 'if a:\n\tprint(a)\n\n next_line' +E if a: +E print(a) +E +E - next_line +E + next_line +E ? + + +tests/test_transformers_streaming.py:201: AssertionError +_ TestTransformersContextAndStreaming.test_sentencepiece_newline_flush_preserves_indentation (text='A\n café\n 世界\n 😀\n') _ + +self = + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: 'A\n café\n 世界\n 😀\n' != 'A\n café\n 世界\n 😀\n' +E A +E - café +E + café +E ? + +E - 世界 +E + 世界 +E ? + +E - 😀 +E + 😀 +E ? + + +tests/test_transformers_streaming.py:201: AssertionError +_ TestTransformersContextAndStreaming.test_sentencepiece_newline_flush_preserves_indentation (text='\n leading\n\n') _ + +self = + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: '\n leading\n\n' != '\n leading\n\n' +E +E - leading +E + leading +E ? + + +tests/test_transformers_streaming.py:201: AssertionError +_ TestTransformersContextAndStreaming.test_sentencepiece_newline_flush_preserves_indentation (text='one\n\n two\n') _ + +self = + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: 'one\n\n two\n' != 'one\n\n two\n' +E one +E +E - two +E + two +E ? + + +tests/test_transformers_streaming.py:201: AssertionError +_ TestTransformersContextAndStreaming.test_sentencepiece_newline_flush_preserves_indentation (text='a\n \n b') _ + +self = + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: 'a\n\nb' != 'a\n \n b' +E a +E - +E + +E - b +E + b +E ? + + +tests/test_transformers_streaming.py:201: AssertionError +_ TestTransformersContextAndStreaming.test_sentencepiece_newline_flush_preserves_indentation (text='```python\n pass\n```') _ + +self = + + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + def generate(input_ids, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) +> self.assertEqual("".join(chunk["text"] for chunk in chunks), text) +E AssertionError: '```python\n pass\n```' != '```python\n pass\n```' +E ```python +E - pass +E + pass +E ? + +E ``` + +tests/test_transformers_streaming.py:201: AssertionError +=========================== short test summary info ============================ +SUBFAILED(text='def add(a, b):\n return a+b\n') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +SUBFAILED(text='if a:\n\tprint(a)\n\n next_line') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +SUBFAILED(text='A\n café\n 世界\n 😀\n') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +SUBFAILED(text='\n leading\n\n') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +SUBFAILED(text='one\n\n two\n') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +SUBFAILED(text='a\n \n b') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +SUBFAILED(text='```python\n pass\n```') tests/test_transformers_streaming.py::TestTransformersContextAndStreaming::test_sentencepiece_newline_flush_preserves_indentation +7 failed, 1 passed, 8 deselected in 3.79s diff --git a/benchmarks/2026-10-25-a100/results/llamacpp-environment.json b/benchmarks/2026-10-25-a100/results/llamacpp-environment.json new file mode 100644 index 0000000..db8f8cb --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/llamacpp-environment.json @@ -0,0 +1,7 @@ +{ + "llama_cpp_python": "0.3.36", + "model_sha256": "f5f1dd8920d417aac2718b0bda3403da274301efdd6760b4f0f4b864ff2ad57d", + "n_gpu_layers": -1, + "n_ctx": 8192, + "load_seconds": 3.879338569007814 +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/llamacpp-live.log b/benchmarks/2026-10-25-a100/results/llamacpp-live.log new file mode 100644 index 0000000..a14cb72 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/llamacpp-live.log @@ -0,0 +1,3140 @@ +ggml_cuda_init: found 1 CUDA devices (Total VRAM: 81152 MiB): + Device 0: NVIDIA A100-SXM4-80GB, compute capability 8.0, VMM: yes, VRAM: 81152 MiB +llama_model_loader: loaded meta data with 42 key-value pairs and 866 tensors from /workspace/ollama-models/blobs/sha256-f5f1dd8920d417aac2718b0bda3403da274301efdd6760b4f0f4b864ff2ad57d (version GGUF V3 (latest)) +llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output. +llama_model_loader: - kv 0: general.architecture str = qwen35 +llama_model_loader: - kv 1: general.type str = model +llama_model_loader: - kv 2: general.sampling.top_k i32 = 20 +llama_model_loader: - kv 3: general.sampling.top_p f32 = 0.950000 +llama_model_loader: - kv 4: general.sampling.temp f32 = 1.000000 +llama_model_loader: - kv 5: general.name str = Qwen3.8 27B 0814 +llama_model_loader: - kv 6: general.version str = 0814 +llama_model_loader: - kv 7: general.basename str = Qwen3.8 +llama_model_loader: - kv 8: general.size_label str = 27B +llama_model_loader: - kv 9: general.license str = apache-2.0 +llama_model_loader: - kv 10: general.tags arr[str,1] = ["image-text-to-text"] +llama_model_loader: - kv 11: qwen35.block_count u32 = 65 +llama_model_loader: - kv 12: qwen35.context_length u32 = 262144 +llama_model_loader: - kv 13: qwen35.embedding_length u32 = 5120 +llama_model_loader: - kv 14: qwen35.feed_forward_length u32 = 17408 +llama_model_loader: - kv 15: qwen35.attention.head_count u32 = 24 +llama_model_loader: - kv 16: qwen35.attention.head_count_kv u32 = 4 +llama_model_loader: - kv 17: qwen35.rope.dimension_sections arr[i32,4] = [11, 11, 10, 0] +llama_model_loader: - kv 18: qwen35.rope.freq_base f32 = 10000000.000000 +llama_model_loader: - kv 19: qwen35.attention.layer_norm_rms_epsilon f32 = 0.000001 +llama_model_loader: - kv 20: qwen35.attention.key_length u32 = 256 +llama_model_loader: - kv 21: qwen35.attention.value_length u32 = 256 +llama_model_loader: - kv 22: qwen35.nextn_predict_layers u32 = 1 +llama_model_loader: - kv 23: qwen35.ssm.conv_kernel u32 = 4 +llama_model_loader: - kv 24: qwen35.ssm.state_size u32 = 128 +llama_model_loader: - kv 25: qwen35.ssm.group_count u32 = 16 +llama_model_loader: - kv 26: qwen35.ssm.time_step_rank u32 = 48 +llama_model_loader: - kv 27: qwen35.ssm.inner_size u32 = 6144 +llama_model_loader: - kv 28: qwen35.full_attention_interval u32 = 4 +llama_model_loader: - kv 29: qwen35.rope.dimension_count u32 = 64 +llama_model_loader: - kv 30: tokenizer.ggml.model str = gpt2 +llama_model_loader: - kv 31: tokenizer.ggml.pre str = qwen35 +llama_model_loader: - kv 32: tokenizer.ggml.tokens arr[str,248320] = ["!", "\"", "#", "$", "%", "&", "'", ... +llama_model_loader: - kv 33: tokenizer.ggml.token_type arr[i32,248320] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... +llama_model_loader: - kv 34: tokenizer.ggml.merges arr[str,247587] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",... +llama_model_loader: - kv 35: tokenizer.ggml.eos_token_id u32 = 248046 +llama_model_loader: - kv 36: tokenizer.ggml.padding_token_id u32 = 248044 +llama_model_loader: - kv 37: tokenizer.ggml.bos_token_id u32 = 248044 +llama_model_loader: - kv 38: tokenizer.ggml.add_bos_token bool = false +llama_model_loader: - kv 39: tokenizer.chat_template str = {%- set image_count = namespace(value... +llama_model_loader: - kv 40: general.quantization_version u32 = 2 +llama_model_loader: - kv 41: general.file_type u32 = 15 +llama_model_loader: - type f32: 360 tensors +llama_model_loader: - type q4_K: 439 tensors +llama_model_loader: - type q6_K: 67 tensors +print_info: file format = GGUF V3 (latest) +print_info: file type = Q4_K - Medium +print_info: file size = 15.65 GiB (4.92 BPW) +llama_prepare_model_devices: using device CUDA0 (NVIDIA A100-SXM4-80GB) (0000:07:00.0) - 80727 MiB free +init_tokenizer: initializing tokenizer for type 2 +load: 0 unused tokens +load: control token: 248075 '' is not marked as EOG +load: control token: 248073 '' is not marked as EOG +load: control token: 248072 '' is not marked as EOG +load: control token: 248071 '<|audio_end|>' is not marked as EOG +load: control token: 248061 '<|fim_middle|>' is not marked as EOG +load: control token: 248055 '<|vision_pad|>' is not marked as EOG +load: control token: 248052 '<|quad_end|>' is not marked as EOG +load: control token: 248049 '<|box_start|>' is not marked as EOG +load: control token: 248048 '<|object_ref_end|>' is not marked as EOG +load: control token: 248045 '<|im_start|>' is not marked as EOG +load: control token: 248057 '<|video_pad|>' is not marked as EOG +load: control token: 248070 '<|audio_start|>' is not marked as EOG +load: control token: 248056 '<|image_pad|>' is not marked as EOG +load: control token: 248054 '<|vision_end|>' is not marked as EOG +load: control token: 248060 '<|fim_prefix|>' is not marked as EOG +load: control token: 248050 '<|box_end|>' is not marked as EOG +load: control token: 248074 '' is not marked as EOG +load: control token: 248053 '<|vision_start|>' is not marked as EOG +load: control token: 248062 '<|fim_suffix|>' is not marked as EOG +load: control token: 248047 '<|object_ref_start|>' is not marked as EOG +load: control token: 248051 '<|quad_start|>' is not marked as EOG +load: control token: 248076 '<|audio_pad|>' is not marked as EOG +load: printing all EOG tokens: +load: - 248044 ('<|endoftext|>') +load: - 248046 ('<|im_end|>') +load: - 248063 ('<|fim_pad|>') +load: - 248064 ('<|repo_name|>') +load: - 248065 ('<|file_sep|>') +load: special tokens cache size = 33 +load: token to piece cache size = 1.7581 MB +print_info: arch = qwen35 +print_info: vocab_only = 0 +print_info: no_alloc = 0 +print_info: n_ctx_train = 262144 +print_info: n_embd_inp = 5120 +print_info: n_embd = 5120 +print_info: n_embd_out = 5120 +print_info: n_layer = 64 +print_info: n_layer_all = 65 +print_info: n_head = 24 +print_info: n_head_kv = 4 +print_info: n_rot = 64 +print_info: n_swa = 0 +print_info: is_swa_any = 0 +print_info: non_causal_type = 0 +print_info: n_embd_head_k = 256 +print_info: n_embd_head_v = 256 +print_info: n_gqa = 6 +print_info: n_embd_k_gqa = 1024 +print_info: n_embd_v_gqa = 1024 +print_info: f_norm_eps = 0.0e+00 +print_info: f_norm_rms_eps = 1.0e-06 +print_info: f_clamp_kqv = 0.0e+00 +print_info: f_max_alibi_bias = 0.0e+00 +print_info: f_logit_scale = 0.0e+00 +print_info: f_attn_scale = 0.0e+00 +print_info: f_attn_value_scale = 0.0000 +print_info: n_ff = 17408 +print_info: n_expert = 0 +print_info: n_expert_used = 0 +print_info: n_expert_groups = 0 +print_info: n_group_used = 0 +print_info: causal attn = 1 +print_info: pooling type = -1 +print_info: rope type = 40 +print_info: rope scaling = linear +print_info: freq_base_train = 10000000.0 +print_info: freq_scale_train = 1 +print_info: n_ctx_orig_yarn = 262144 +print_info: rope_yarn_log_mul = 0.0000 +print_info: rope_finetuned = unknown +print_info: mrope sections = [11, 11, 10, 0] +print_info: ssm_d_conv = 4 +print_info: ssm_d_inner = 6144 +print_info: ssm_d_state = 128 +print_info: ssm_dt_rank = 48 +print_info: ssm_n_group = 16 +print_info: ssm_dt_b_c_rms = 0 +print_info: model type = 27B +print_info: model params = 27.32 B +print_info: general.name = Qwen3.8 27B 0814 +print_info: vocab type = BPE +print_info: n_vocab = 248320 +print_info: n_merges = 247587 +print_info: BOS token = 248044 '<|endoftext|>' +print_info: EOS token = 248046 '<|im_end|>' +print_info: EOT token = 248046 '<|im_end|>' +print_info: PAD token = 248044 '<|endoftext|>' +print_info: LF token = 198 'Ċ' +print_info: FIM PRE token = 248060 '<|fim_prefix|>' +print_info: FIM SUF token = 248062 '<|fim_suffix|>' +print_info: FIM MID token = 248061 '<|fim_middle|>' +print_info: FIM PAD token = 248063 '<|fim_pad|>' +print_info: FIM REP token = 248064 '<|repo_name|>' +print_info: FIM SEP token = 248065 '<|file_sep|>' +print_info: EOG token = 248044 '<|endoftext|>' +print_info: EOG token = 248046 '<|im_end|>' +print_info: EOG token = 248063 '<|fim_pad|>' +print_info: EOG token = 248064 '<|repo_name|>' +print_info: EOG token = 248065 '<|file_sep|>' +print_info: max token length = 256 +load_tensors: loading model tensors, this can take a while... (load_mode = mmap) +load_tensors: layer 0 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 1 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 2 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 3 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 4 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 5 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 6 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 7 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 8 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 9 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 10 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 11 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 12 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 13 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 14 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 15 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 16 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 17 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 18 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 19 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 20 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 21 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 22 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 23 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 24 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 25 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 26 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 27 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 28 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 29 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 30 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 31 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 32 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 33 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 34 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 35 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 36 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 37 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 38 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 39 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 40 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 41 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 42 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 43 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 44 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 45 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 46 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 47 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 48 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 49 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 50 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 51 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 52 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 53 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 54 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 55 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 56 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 57 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 58 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 59 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 60 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 61 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 62 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 63 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 64 assigned to device CUDA0, is_swa = 0 +load_tensors: layer 65 assigned to device CUDA0, is_swa = 0 +create_tensor: loading tensor token_embd.weight +create_tensor: loading tensor output_norm.weight +create_tensor: loading tensor output.weight +create_tensor: loading tensor blk.0.attn_norm.weight +create_tensor: loading tensor blk.0.post_attention_norm.weight +create_tensor: loading tensor blk.0.attn_qkv.weight +create_tensor: loading tensor blk.0.attn_gate.weight +create_tensor: loading tensor blk.0.ssm_conv1d.weight +create_tensor: loading tensor blk.0.ssm_dt.bias +create_tensor: loading tensor blk.0.ssm_a +create_tensor: loading tensor blk.0.ssm_beta.weight +create_tensor: loading tensor blk.0.ssm_alpha.weight +create_tensor: loading tensor blk.0.ssm_norm.weight +create_tensor: loading tensor blk.0.ssm_out.weight +create_tensor: loading tensor blk.0.ffn_gate.weight +create_tensor: loading tensor blk.0.ffn_down.weight +create_tensor: loading tensor blk.0.ffn_up.weight +create_tensor: loading tensor blk.1.attn_norm.weight +create_tensor: loading tensor blk.1.post_attention_norm.weight +create_tensor: loading tensor blk.1.attn_qkv.weight +create_tensor: loading tensor blk.1.attn_gate.weight +create_tensor: loading tensor blk.1.ssm_conv1d.weight +create_tensor: loading tensor blk.1.ssm_dt.bias +create_tensor: loading tensor blk.1.ssm_a +create_tensor: loading tensor blk.1.ssm_beta.weight +create_tensor: loading tensor blk.1.ssm_alpha.weight +create_tensor: loading tensor blk.1.ssm_norm.weight +create_tensor: loading tensor blk.1.ssm_out.weight +create_tensor: loading tensor blk.1.ffn_gate.weight +create_tensor: loading tensor blk.1.ffn_down.weight +create_tensor: loading tensor blk.1.ffn_up.weight +create_tensor: loading tensor blk.2.attn_norm.weight +create_tensor: loading tensor blk.2.post_attention_norm.weight +create_tensor: loading tensor blk.2.attn_qkv.weight +create_tensor: loading tensor blk.2.attn_gate.weight +create_tensor: loading tensor blk.2.ssm_conv1d.weight +create_tensor: loading tensor blk.2.ssm_dt.bias +create_tensor: loading tensor blk.2.ssm_a +create_tensor: loading tensor blk.2.ssm_beta.weight +create_tensor: loading tensor blk.2.ssm_alpha.weight +create_tensor: loading tensor blk.2.ssm_norm.weight +create_tensor: loading tensor blk.2.ssm_out.weight +create_tensor: loading tensor blk.2.ffn_gate.weight +create_tensor: loading tensor blk.2.ffn_down.weight +create_tensor: loading tensor blk.2.ffn_up.weight +create_tensor: loading tensor blk.3.attn_norm.weight +create_tensor: loading tensor blk.3.post_attention_norm.weight +create_tensor: loading tensor blk.3.attn_qkv.weight +create_tensor: loading tensor blk.3.attn_q.weight +create_tensor: loading tensor blk.3.attn_k.weight +create_tensor: loading tensor blk.3.attn_v.weight +create_tensor: loading tensor blk.3.attn_q.bias +create_tensor: loading tensor blk.3.attn_k.bias +create_tensor: loading tensor blk.3.attn_v.bias +create_tensor: loading tensor blk.3.attn_output.weight +create_tensor: loading tensor blk.3.attn_q_norm.weight +create_tensor: loading tensor blk.3.attn_k_norm.weight +create_tensor: loading tensor blk.3.ffn_gate.weight +create_tensor: loading tensor blk.3.ffn_down.weight +create_tensor: loading tensor blk.3.ffn_up.weight +create_tensor: loading tensor blk.4.attn_norm.weight +create_tensor: loading tensor blk.4.post_attention_norm.weight +create_tensor: loading tensor blk.4.attn_qkv.weight +create_tensor: loading tensor blk.4.attn_gate.weight +create_tensor: loading tensor blk.4.ssm_conv1d.weight +create_tensor: loading tensor blk.4.ssm_dt.bias +create_tensor: loading tensor blk.4.ssm_a +create_tensor: loading tensor blk.4.ssm_beta.weight +create_tensor: loading tensor blk.4.ssm_alpha.weight +create_tensor: loading tensor blk.4.ssm_norm.weight +create_tensor: loading tensor blk.4.ssm_out.weight +create_tensor: loading tensor blk.4.ffn_gate.weight +create_tensor: loading tensor blk.4.ffn_down.weight +create_tensor: loading tensor blk.4.ffn_up.weight +create_tensor: loading tensor blk.5.attn_norm.weight +create_tensor: loading tensor blk.5.post_attention_norm.weight +create_tensor: loading tensor blk.5.attn_qkv.weight +create_tensor: loading tensor blk.5.attn_gate.weight +create_tensor: loading tensor blk.5.ssm_conv1d.weight +create_tensor: loading tensor blk.5.ssm_dt.bias +create_tensor: loading tensor blk.5.ssm_a +create_tensor: loading tensor blk.5.ssm_beta.weight +create_tensor: loading tensor blk.5.ssm_alpha.weight +create_tensor: loading tensor blk.5.ssm_norm.weight +create_tensor: loading tensor blk.5.ssm_out.weight +create_tensor: loading tensor blk.5.ffn_gate.weight +create_tensor: loading tensor blk.5.ffn_down.weight +create_tensor: loading tensor blk.5.ffn_up.weight +create_tensor: loading tensor blk.6.attn_norm.weight +create_tensor: loading tensor blk.6.post_attention_norm.weight +create_tensor: loading tensor blk.6.attn_qkv.weight +create_tensor: loading tensor blk.6.attn_gate.weight +create_tensor: loading tensor blk.6.ssm_conv1d.weight +create_tensor: loading tensor blk.6.ssm_dt.bias +create_tensor: loading tensor blk.6.ssm_a +create_tensor: loading tensor blk.6.ssm_beta.weight +create_tensor: loading tensor blk.6.ssm_alpha.weight +create_tensor: loading tensor blk.6.ssm_norm.weight +create_tensor: loading tensor blk.6.ssm_out.weight +create_tensor: loading tensor blk.6.ffn_gate.weight +create_tensor: loading tensor blk.6.ffn_down.weight +create_tensor: loading tensor blk.6.ffn_up.weight +create_tensor: loading tensor blk.7.attn_norm.weight +create_tensor: loading tensor blk.7.post_attention_norm.weight +create_tensor: loading tensor blk.7.attn_qkv.weight +create_tensor: loading tensor blk.7.attn_q.weight +create_tensor: loading tensor blk.7.attn_k.weight +create_tensor: loading tensor blk.7.attn_v.weight +create_tensor: loading tensor blk.7.attn_q.bias +create_tensor: loading tensor blk.7.attn_k.bias +create_tensor: loading tensor blk.7.attn_v.bias +create_tensor: loading tensor blk.7.attn_output.weight +create_tensor: loading tensor blk.7.attn_q_norm.weight +create_tensor: loading tensor blk.7.attn_k_norm.weight +create_tensor: loading tensor blk.7.ffn_gate.weight +create_tensor: loading tensor blk.7.ffn_down.weight +create_tensor: loading tensor blk.7.ffn_up.weight +create_tensor: loading tensor blk.8.attn_norm.weight +create_tensor: loading tensor blk.8.post_attention_norm.weight +create_tensor: loading tensor blk.8.attn_qkv.weight +create_tensor: loading tensor blk.8.attn_gate.weight +create_tensor: loading tensor blk.8.ssm_conv1d.weight +create_tensor: loading tensor blk.8.ssm_dt.bias +create_tensor: loading tensor blk.8.ssm_a +create_tensor: loading tensor blk.8.ssm_beta.weight +create_tensor: loading tensor blk.8.ssm_alpha.weight +create_tensor: loading tensor blk.8.ssm_norm.weight +create_tensor: loading tensor blk.8.ssm_out.weight +create_tensor: loading tensor blk.8.ffn_gate.weight +create_tensor: loading tensor blk.8.ffn_down.weight +create_tensor: loading tensor blk.8.ffn_up.weight +create_tensor: loading tensor blk.9.attn_norm.weight +create_tensor: loading tensor blk.9.post_attention_norm.weight +create_tensor: loading tensor blk.9.attn_qkv.weight +create_tensor: loading tensor blk.9.attn_gate.weight +create_tensor: loading tensor blk.9.ssm_conv1d.weight +create_tensor: loading tensor blk.9.ssm_dt.bias +create_tensor: loading tensor blk.9.ssm_a +create_tensor: loading tensor blk.9.ssm_beta.weight +create_tensor: loading tensor blk.9.ssm_alpha.weight +create_tensor: loading tensor blk.9.ssm_norm.weight +create_tensor: loading tensor blk.9.ssm_out.weight +create_tensor: loading tensor blk.9.ffn_gate.weight +create_tensor: loading tensor blk.9.ffn_down.weight +create_tensor: loading tensor blk.9.ffn_up.weight +create_tensor: loading tensor blk.10.attn_norm.weight +create_tensor: loading tensor blk.10.post_attention_norm.weight +create_tensor: loading tensor blk.10.attn_qkv.weight +create_tensor: loading tensor blk.10.attn_gate.weight +create_tensor: loading tensor blk.10.ssm_conv1d.weight +create_tensor: loading tensor blk.10.ssm_dt.bias +create_tensor: loading tensor blk.10.ssm_a +create_tensor: loading tensor blk.10.ssm_beta.weight +create_tensor: loading tensor blk.10.ssm_alpha.weight +create_tensor: loading tensor blk.10.ssm_norm.weight +create_tensor: loading tensor blk.10.ssm_out.weight +create_tensor: loading tensor blk.10.ffn_gate.weight +create_tensor: loading tensor blk.10.ffn_down.weight +create_tensor: loading tensor blk.10.ffn_up.weight +create_tensor: loading tensor blk.11.attn_norm.weight +create_tensor: loading tensor blk.11.post_attention_norm.weight +create_tensor: loading tensor blk.11.attn_qkv.weight +create_tensor: loading tensor blk.11.attn_q.weight +create_tensor: loading tensor blk.11.attn_k.weight +create_tensor: loading tensor blk.11.attn_v.weight +create_tensor: loading tensor blk.11.attn_q.bias +create_tensor: loading tensor blk.11.attn_k.bias +create_tensor: loading tensor blk.11.attn_v.bias +create_tensor: loading tensor blk.11.attn_output.weight +create_tensor: loading tensor blk.11.attn_q_norm.weight +create_tensor: loading tensor blk.11.attn_k_norm.weight +create_tensor: loading tensor blk.11.ffn_gate.weight +create_tensor: loading tensor blk.11.ffn_down.weight +create_tensor: loading tensor blk.11.ffn_up.weight +create_tensor: loading tensor blk.12.attn_norm.weight +create_tensor: loading tensor blk.12.post_attention_norm.weight +create_tensor: loading tensor blk.12.attn_qkv.weight +create_tensor: loading tensor blk.12.attn_gate.weight +create_tensor: loading tensor blk.12.ssm_conv1d.weight +create_tensor: loading tensor blk.12.ssm_dt.bias +create_tensor: loading tensor blk.12.ssm_a +create_tensor: loading tensor blk.12.ssm_beta.weight +create_tensor: loading tensor blk.12.ssm_alpha.weight +create_tensor: loading tensor blk.12.ssm_norm.weight +create_tensor: loading tensor blk.12.ssm_out.weight +create_tensor: loading tensor blk.12.ffn_gate.weight +create_tensor: loading tensor blk.12.ffn_down.weight +create_tensor: loading tensor blk.12.ffn_up.weight +create_tensor: loading tensor blk.13.attn_norm.weight +create_tensor: loading tensor blk.13.post_attention_norm.weight +create_tensor: loading tensor blk.13.attn_qkv.weight +create_tensor: loading tensor blk.13.attn_gate.weight +create_tensor: loading tensor blk.13.ssm_conv1d.weight +create_tensor: loading tensor blk.13.ssm_dt.bias +create_tensor: loading tensor blk.13.ssm_a +create_tensor: loading tensor blk.13.ssm_beta.weight +create_tensor: loading tensor blk.13.ssm_alpha.weight +create_tensor: loading tensor blk.13.ssm_norm.weight +create_tensor: loading tensor blk.13.ssm_out.weight +create_tensor: loading tensor blk.13.ffn_gate.weight +create_tensor: loading tensor blk.13.ffn_down.weight +create_tensor: loading tensor blk.13.ffn_up.weight +create_tensor: loading tensor blk.14.attn_norm.weight +create_tensor: loading tensor blk.14.post_attention_norm.weight +create_tensor: loading tensor blk.14.attn_qkv.weight +create_tensor: loading tensor blk.14.attn_gate.weight +create_tensor: loading tensor blk.14.ssm_conv1d.weight +create_tensor: loading tensor blk.14.ssm_dt.bias +create_tensor: loading tensor blk.14.ssm_a +create_tensor: loading tensor blk.14.ssm_beta.weight +create_tensor: loading tensor blk.14.ssm_alpha.weight +create_tensor: loading tensor blk.14.ssm_norm.weight +create_tensor: loading tensor blk.14.ssm_out.weight +create_tensor: loading tensor blk.14.ffn_gate.weight +create_tensor: loading tensor blk.14.ffn_down.weight +create_tensor: loading tensor blk.14.ffn_up.weight +create_tensor: loading tensor blk.15.attn_norm.weight +create_tensor: loading tensor blk.15.post_attention_norm.weight +create_tensor: loading tensor blk.15.attn_qkv.weight +create_tensor: loading tensor blk.15.attn_q.weight +create_tensor: loading tensor blk.15.attn_k.weight +create_tensor: loading tensor blk.15.attn_v.weight +create_tensor: loading tensor blk.15.attn_q.bias +create_tensor: loading tensor blk.15.attn_k.bias +create_tensor: loading tensor blk.15.attn_v.bias +create_tensor: loading tensor blk.15.attn_output.weight +create_tensor: loading tensor blk.15.attn_q_norm.weight +create_tensor: loading tensor blk.15.attn_k_norm.weight +create_tensor: loading tensor blk.15.ffn_gate.weight +create_tensor: loading tensor blk.15.ffn_down.weight +create_tensor: loading tensor blk.15.ffn_up.weight +create_tensor: loading tensor blk.16.attn_norm.weight +create_tensor: loading tensor blk.16.post_attention_norm.weight +create_tensor: loading tensor blk.16.attn_qkv.weight +create_tensor: loading tensor blk.16.attn_gate.weight +create_tensor: loading tensor blk.16.ssm_conv1d.weight +create_tensor: loading tensor blk.16.ssm_dt.bias +create_tensor: loading tensor blk.16.ssm_a +create_tensor: loading tensor blk.16.ssm_beta.weight +create_tensor: loading tensor blk.16.ssm_alpha.weight +create_tensor: loading tensor blk.16.ssm_norm.weight +create_tensor: loading tensor blk.16.ssm_out.weight +create_tensor: loading tensor blk.16.ffn_gate.weight +create_tensor: loading tensor blk.16.ffn_down.weight +create_tensor: loading tensor blk.16.ffn_up.weight +create_tensor: loading tensor blk.17.attn_norm.weight +create_tensor: loading tensor blk.17.post_attention_norm.weight +create_tensor: loading tensor blk.17.attn_qkv.weight +create_tensor: loading tensor blk.17.attn_gate.weight +create_tensor: loading tensor blk.17.ssm_conv1d.weight +create_tensor: loading tensor blk.17.ssm_dt.bias +create_tensor: loading tensor blk.17.ssm_a +create_tensor: loading tensor blk.17.ssm_beta.weight +create_tensor: loading tensor blk.17.ssm_alpha.weight +create_tensor: loading tensor blk.17.ssm_norm.weight +create_tensor: loading tensor blk.17.ssm_out.weight +create_tensor: loading tensor blk.17.ffn_gate.weight +create_tensor: loading tensor blk.17.ffn_down.weight +create_tensor: loading tensor blk.17.ffn_up.weight +create_tensor: loading tensor blk.18.attn_norm.weight +create_tensor: loading tensor blk.18.post_attention_norm.weight +create_tensor: loading tensor blk.18.attn_qkv.weight +create_tensor: loading tensor blk.18.attn_gate.weight +create_tensor: loading tensor blk.18.ssm_conv1d.weight +create_tensor: loading tensor blk.18.ssm_dt.bias +create_tensor: loading tensor blk.18.ssm_a +create_tensor: loading tensor blk.18.ssm_beta.weight +create_tensor: loading tensor blk.18.ssm_alpha.weight +create_tensor: loading tensor blk.18.ssm_norm.weight +create_tensor: loading tensor blk.18.ssm_out.weight +create_tensor: loading tensor blk.18.ffn_gate.weight +create_tensor: loading tensor blk.18.ffn_down.weight +create_tensor: loading tensor blk.18.ffn_up.weight +create_tensor: loading tensor blk.19.attn_norm.weight +create_tensor: loading tensor blk.19.post_attention_norm.weight +create_tensor: loading tensor blk.19.attn_qkv.weight +create_tensor: loading tensor blk.19.attn_q.weight +create_tensor: loading tensor blk.19.attn_k.weight +create_tensor: loading tensor blk.19.attn_v.weight +create_tensor: loading tensor blk.19.attn_q.bias +create_tensor: loading tensor blk.19.attn_k.bias +create_tensor: loading tensor blk.19.attn_v.bias +create_tensor: loading tensor blk.19.attn_output.weight +create_tensor: loading tensor blk.19.attn_q_norm.weight +create_tensor: loading tensor blk.19.attn_k_norm.weight +create_tensor: loading tensor blk.19.ffn_gate.weight +create_tensor: loading tensor blk.19.ffn_down.weight +create_tensor: loading tensor blk.19.ffn_up.weight +create_tensor: loading tensor blk.20.attn_norm.weight +create_tensor: loading tensor blk.20.post_attention_norm.weight +create_tensor: loading tensor blk.20.attn_qkv.weight +create_tensor: loading tensor blk.20.attn_gate.weight +create_tensor: loading tensor blk.20.ssm_conv1d.weight +create_tensor: loading tensor blk.20.ssm_dt.bias +create_tensor: loading tensor blk.20.ssm_a +create_tensor: loading tensor blk.20.ssm_beta.weight +create_tensor: loading tensor blk.20.ssm_alpha.weight +create_tensor: loading tensor blk.20.ssm_norm.weight +create_tensor: loading tensor blk.20.ssm_out.weight +create_tensor: loading tensor blk.20.ffn_gate.weight +create_tensor: loading tensor blk.20.ffn_down.weight +create_tensor: loading tensor blk.20.ffn_up.weight +create_tensor: loading tensor blk.21.attn_norm.weight +create_tensor: loading tensor blk.21.post_attention_norm.weight +create_tensor: loading tensor blk.21.attn_qkv.weight +create_tensor: loading tensor blk.21.attn_gate.weight +create_tensor: loading tensor blk.21.ssm_conv1d.weight +create_tensor: loading tensor blk.21.ssm_dt.bias +create_tensor: loading tensor blk.21.ssm_a +create_tensor: loading tensor blk.21.ssm_beta.weight +create_tensor: loading tensor blk.21.ssm_alpha.weight +create_tensor: loading tensor blk.21.ssm_norm.weight +create_tensor: loading tensor blk.21.ssm_out.weight +create_tensor: loading tensor blk.21.ffn_gate.weight +create_tensor: loading tensor blk.21.ffn_down.weight +create_tensor: loading tensor blk.21.ffn_up.weight +create_tensor: loading tensor blk.22.attn_norm.weight +create_tensor: loading tensor blk.22.post_attention_norm.weight +create_tensor: loading tensor blk.22.attn_qkv.weight +create_tensor: loading tensor blk.22.attn_gate.weight +create_tensor: loading tensor blk.22.ssm_conv1d.weight +create_tensor: loading tensor blk.22.ssm_dt.bias +create_tensor: loading tensor blk.22.ssm_a +create_tensor: loading tensor blk.22.ssm_beta.weight +create_tensor: loading tensor blk.22.ssm_alpha.weight +create_tensor: loading tensor blk.22.ssm_norm.weight +create_tensor: loading tensor blk.22.ssm_out.weight +create_tensor: loading tensor blk.22.ffn_gate.weight +create_tensor: loading tensor blk.22.ffn_down.weight +create_tensor: loading tensor blk.22.ffn_up.weight +create_tensor: loading tensor blk.23.attn_norm.weight +create_tensor: loading tensor blk.23.post_attention_norm.weight +create_tensor: loading tensor blk.23.attn_qkv.weight +create_tensor: loading tensor blk.23.attn_q.weight +create_tensor: loading tensor blk.23.attn_k.weight +create_tensor: loading tensor blk.23.attn_v.weight +create_tensor: loading tensor blk.23.attn_q.bias +create_tensor: loading tensor blk.23.attn_k.bias +create_tensor: loading tensor blk.23.attn_v.bias +create_tensor: loading tensor blk.23.attn_output.weight +create_tensor: loading tensor blk.23.attn_q_norm.weight +create_tensor: loading tensor blk.23.attn_k_norm.weight +create_tensor: loading tensor blk.23.ffn_gate.weight +create_tensor: loading tensor blk.23.ffn_down.weight +create_tensor: loading tensor blk.23.ffn_up.weight +create_tensor: loading tensor blk.24.attn_norm.weight +create_tensor: loading tensor blk.24.post_attention_norm.weight +create_tensor: loading tensor blk.24.attn_qkv.weight +create_tensor: loading tensor blk.24.attn_gate.weight +create_tensor: loading tensor blk.24.ssm_conv1d.weight +create_tensor: loading tensor blk.24.ssm_dt.bias +create_tensor: loading tensor blk.24.ssm_a +create_tensor: loading tensor blk.24.ssm_beta.weight +create_tensor: loading tensor blk.24.ssm_alpha.weight +create_tensor: loading tensor blk.24.ssm_norm.weight +create_tensor: loading tensor blk.24.ssm_out.weight +create_tensor: loading tensor blk.24.ffn_gate.weight +create_tensor: loading tensor blk.24.ffn_down.weight +create_tensor: loading tensor blk.24.ffn_up.weight +create_tensor: loading tensor blk.25.attn_norm.weight +create_tensor: loading tensor blk.25.post_attention_norm.weight +create_tensor: loading tensor blk.25.attn_qkv.weight +create_tensor: loading tensor blk.25.attn_gate.weight +create_tensor: loading tensor blk.25.ssm_conv1d.weight +create_tensor: loading tensor blk.25.ssm_dt.bias +create_tensor: loading tensor blk.25.ssm_a +create_tensor: loading tensor blk.25.ssm_beta.weight +create_tensor: loading tensor blk.25.ssm_alpha.weight +create_tensor: loading tensor blk.25.ssm_norm.weight +create_tensor: loading tensor blk.25.ssm_out.weight +create_tensor: loading tensor blk.25.ffn_gate.weight +create_tensor: loading tensor blk.25.ffn_down.weight +create_tensor: loading tensor blk.25.ffn_up.weight +create_tensor: loading tensor blk.26.attn_norm.weight +create_tensor: loading tensor blk.26.post_attention_norm.weight +create_tensor: loading tensor blk.26.attn_qkv.weight +create_tensor: loading tensor blk.26.attn_gate.weight +create_tensor: loading tensor blk.26.ssm_conv1d.weight +create_tensor: loading tensor blk.26.ssm_dt.bias +create_tensor: loading tensor blk.26.ssm_a +create_tensor: loading tensor blk.26.ssm_beta.weight +create_tensor: loading tensor blk.26.ssm_alpha.weight +create_tensor: loading tensor blk.26.ssm_norm.weight +create_tensor: loading tensor blk.26.ssm_out.weight +create_tensor: loading tensor blk.26.ffn_gate.weight +create_tensor: loading tensor blk.26.ffn_down.weight +create_tensor: loading tensor blk.26.ffn_up.weight +create_tensor: loading tensor blk.27.attn_norm.weight +create_tensor: loading tensor blk.27.post_attention_norm.weight +create_tensor: loading tensor blk.27.attn_qkv.weight +create_tensor: loading tensor blk.27.attn_q.weight +create_tensor: loading tensor blk.27.attn_k.weight +create_tensor: loading tensor blk.27.attn_v.weight +create_tensor: loading tensor blk.27.attn_q.bias +create_tensor: loading tensor blk.27.attn_k.bias +create_tensor: loading tensor blk.27.attn_v.bias +create_tensor: loading tensor blk.27.attn_output.weight +create_tensor: loading tensor blk.27.attn_q_norm.weight +create_tensor: loading tensor blk.27.attn_k_norm.weight +create_tensor: loading tensor blk.27.ffn_gate.weight +create_tensor: loading tensor blk.27.ffn_down.weight +create_tensor: loading tensor blk.27.ffn_up.weight +create_tensor: loading tensor blk.28.attn_norm.weight +create_tensor: loading tensor blk.28.post_attention_norm.weight +create_tensor: loading tensor blk.28.attn_qkv.weight +create_tensor: loading tensor blk.28.attn_gate.weight +create_tensor: loading tensor blk.28.ssm_conv1d.weight +create_tensor: loading tensor blk.28.ssm_dt.bias +create_tensor: loading tensor blk.28.ssm_a +create_tensor: loading tensor blk.28.ssm_beta.weight +create_tensor: loading tensor blk.28.ssm_alpha.weight +create_tensor: loading tensor blk.28.ssm_norm.weight +create_tensor: loading tensor blk.28.ssm_out.weight +create_tensor: loading tensor blk.28.ffn_gate.weight +create_tensor: loading tensor blk.28.ffn_down.weight +create_tensor: loading tensor blk.28.ffn_up.weight +create_tensor: loading tensor blk.29.attn_norm.weight +create_tensor: loading tensor blk.29.post_attention_norm.weight +create_tensor: loading tensor blk.29.attn_qkv.weight +create_tensor: loading tensor blk.29.attn_gate.weight +create_tensor: loading tensor blk.29.ssm_conv1d.weight +create_tensor: loading tensor blk.29.ssm_dt.bias +create_tensor: loading tensor blk.29.ssm_a +create_tensor: loading tensor blk.29.ssm_beta.weight +create_tensor: loading tensor blk.29.ssm_alpha.weight +create_tensor: loading tensor blk.29.ssm_norm.weight +create_tensor: loading tensor blk.29.ssm_out.weight +create_tensor: loading tensor blk.29.ffn_gate.weight +create_tensor: loading tensor blk.29.ffn_down.weight +create_tensor: loading tensor blk.29.ffn_up.weight +create_tensor: loading tensor blk.30.attn_norm.weight +create_tensor: loading tensor blk.30.post_attention_norm.weight +create_tensor: loading tensor blk.30.attn_qkv.weight +create_tensor: loading tensor blk.30.attn_gate.weight +create_tensor: loading tensor blk.30.ssm_conv1d.weight +create_tensor: loading tensor blk.30.ssm_dt.bias +create_tensor: loading tensor blk.30.ssm_a +create_tensor: loading tensor blk.30.ssm_beta.weight +create_tensor: loading tensor blk.30.ssm_alpha.weight +create_tensor: loading tensor blk.30.ssm_norm.weight +create_tensor: loading tensor blk.30.ssm_out.weight +create_tensor: loading tensor blk.30.ffn_gate.weight +create_tensor: loading tensor blk.30.ffn_down.weight +create_tensor: loading tensor blk.30.ffn_up.weight +create_tensor: loading tensor blk.31.attn_norm.weight +create_tensor: loading tensor blk.31.post_attention_norm.weight +create_tensor: loading tensor blk.31.attn_qkv.weight +create_tensor: loading tensor blk.31.attn_q.weight +create_tensor: loading tensor blk.31.attn_k.weight +create_tensor: loading tensor blk.31.attn_v.weight +create_tensor: loading tensor blk.31.attn_q.bias +create_tensor: loading tensor blk.31.attn_k.bias +create_tensor: loading tensor blk.31.attn_v.bias +create_tensor: loading tensor blk.31.attn_output.weight +create_tensor: loading tensor blk.31.attn_q_norm.weight +create_tensor: loading tensor blk.31.attn_k_norm.weight +create_tensor: loading tensor blk.31.ffn_gate.weight +create_tensor: loading tensor blk.31.ffn_down.weight +create_tensor: loading tensor blk.31.ffn_up.weight +create_tensor: loading tensor blk.32.attn_norm.weight +create_tensor: loading tensor blk.32.post_attention_norm.weight +create_tensor: loading tensor blk.32.attn_qkv.weight +create_tensor: loading tensor blk.32.attn_gate.weight +create_tensor: loading tensor blk.32.ssm_conv1d.weight +create_tensor: loading tensor blk.32.ssm_dt.bias +create_tensor: loading tensor blk.32.ssm_a +create_tensor: loading tensor blk.32.ssm_beta.weight +create_tensor: loading tensor blk.32.ssm_alpha.weight +create_tensor: loading tensor blk.32.ssm_norm.weight +create_tensor: loading tensor blk.32.ssm_out.weight +create_tensor: loading tensor blk.32.ffn_gate.weight +create_tensor: loading tensor blk.32.ffn_down.weight +create_tensor: loading tensor blk.32.ffn_up.weight +create_tensor: loading tensor blk.33.attn_norm.weight +create_tensor: loading tensor blk.33.post_attention_norm.weight +create_tensor: loading tensor blk.33.attn_qkv.weight +create_tensor: loading tensor blk.33.attn_gate.weight +create_tensor: loading tensor blk.33.ssm_conv1d.weight +create_tensor: loading tensor blk.33.ssm_dt.bias +create_tensor: loading tensor blk.33.ssm_a +create_tensor: loading tensor blk.33.ssm_beta.weight +create_tensor: loading tensor blk.33.ssm_alpha.weight +create_tensor: loading tensor blk.33.ssm_norm.weight +create_tensor: loading tensor blk.33.ssm_out.weight +create_tensor: loading tensor blk.33.ffn_gate.weight +create_tensor: loading tensor blk.33.ffn_down.weight +create_tensor: loading tensor blk.33.ffn_up.weight +create_tensor: loading tensor blk.34.attn_norm.weight +create_tensor: loading tensor blk.34.post_attention_norm.weight +create_tensor: loading tensor blk.34.attn_qkv.weight +create_tensor: loading tensor blk.34.attn_gate.weight +create_tensor: loading tensor blk.34.ssm_conv1d.weight +create_tensor: loading tensor blk.34.ssm_dt.bias +create_tensor: loading tensor blk.34.ssm_a +create_tensor: loading tensor blk.34.ssm_beta.weight +create_tensor: loading tensor blk.34.ssm_alpha.weight +create_tensor: loading tensor blk.34.ssm_norm.weight +create_tensor: loading tensor blk.34.ssm_out.weight +create_tensor: loading tensor blk.34.ffn_gate.weight +create_tensor: loading tensor blk.34.ffn_down.weight +create_tensor: loading tensor blk.34.ffn_up.weight +create_tensor: loading tensor blk.35.attn_norm.weight +create_tensor: loading tensor blk.35.post_attention_norm.weight +create_tensor: loading tensor blk.35.attn_qkv.weight +create_tensor: loading tensor blk.35.attn_q.weight +create_tensor: loading tensor blk.35.attn_k.weight +create_tensor: loading tensor blk.35.attn_v.weight +create_tensor: loading tensor blk.35.attn_q.bias +create_tensor: loading tensor blk.35.attn_k.bias +create_tensor: loading tensor blk.35.attn_v.bias +create_tensor: loading tensor blk.35.attn_output.weight +create_tensor: loading tensor blk.35.attn_q_norm.weight +create_tensor: loading tensor blk.35.attn_k_norm.weight +create_tensor: loading tensor blk.35.ffn_gate.weight +create_tensor: loading tensor blk.35.ffn_down.weight +create_tensor: loading tensor blk.35.ffn_up.weight +create_tensor: loading tensor blk.36.attn_norm.weight +create_tensor: loading tensor blk.36.post_attention_norm.weight +create_tensor: loading tensor blk.36.attn_qkv.weight +create_tensor: loading tensor blk.36.attn_gate.weight +create_tensor: loading tensor blk.36.ssm_conv1d.weight +create_tensor: loading tensor blk.36.ssm_dt.bias +create_tensor: loading tensor blk.36.ssm_a +create_tensor: loading tensor blk.36.ssm_beta.weight +create_tensor: loading tensor blk.36.ssm_alpha.weight +create_tensor: loading tensor blk.36.ssm_norm.weight +create_tensor: loading tensor blk.36.ssm_out.weight +create_tensor: loading tensor blk.36.ffn_gate.weight +create_tensor: loading tensor blk.36.ffn_down.weight +create_tensor: loading tensor blk.36.ffn_up.weight +create_tensor: loading tensor blk.37.attn_norm.weight +create_tensor: loading tensor blk.37.post_attention_norm.weight +create_tensor: loading tensor blk.37.attn_qkv.weight +create_tensor: loading tensor blk.37.attn_gate.weight +create_tensor: loading tensor blk.37.ssm_conv1d.weight +create_tensor: loading tensor blk.37.ssm_dt.bias +create_tensor: loading tensor blk.37.ssm_a +create_tensor: loading tensor blk.37.ssm_beta.weight +create_tensor: loading tensor blk.37.ssm_alpha.weight +create_tensor: loading tensor blk.37.ssm_norm.weight +create_tensor: loading tensor blk.37.ssm_out.weight +create_tensor: loading tensor blk.37.ffn_gate.weight +create_tensor: loading tensor blk.37.ffn_down.weight +create_tensor: loading tensor blk.37.ffn_up.weight +create_tensor: loading tensor blk.38.attn_norm.weight +create_tensor: loading tensor blk.38.post_attention_norm.weight +create_tensor: loading tensor blk.38.attn_qkv.weight +create_tensor: loading tensor blk.38.attn_gate.weight +create_tensor: loading tensor blk.38.ssm_conv1d.weight +create_tensor: loading tensor blk.38.ssm_dt.bias +create_tensor: loading tensor blk.38.ssm_a +create_tensor: loading tensor blk.38.ssm_beta.weight +create_tensor: loading tensor blk.38.ssm_alpha.weight +create_tensor: loading tensor blk.38.ssm_norm.weight +create_tensor: loading tensor blk.38.ssm_out.weight +create_tensor: loading tensor blk.38.ffn_gate.weight +create_tensor: loading tensor blk.38.ffn_down.weight +create_tensor: loading tensor blk.38.ffn_up.weight +create_tensor: loading tensor blk.39.attn_norm.weight +create_tensor: loading tensor blk.39.post_attention_norm.weight +create_tensor: loading tensor blk.39.attn_qkv.weight +create_tensor: loading tensor blk.39.attn_q.weight +create_tensor: loading tensor blk.39.attn_k.weight +create_tensor: loading tensor blk.39.attn_v.weight +create_tensor: loading tensor blk.39.attn_q.bias +create_tensor: loading tensor blk.39.attn_k.bias +create_tensor: loading tensor blk.39.attn_v.bias +create_tensor: loading tensor blk.39.attn_output.weight +create_tensor: loading tensor blk.39.attn_q_norm.weight +create_tensor: loading tensor blk.39.attn_k_norm.weight +create_tensor: loading tensor blk.39.ffn_gate.weight +create_tensor: loading tensor blk.39.ffn_down.weight +create_tensor: loading tensor blk.39.ffn_up.weight +create_tensor: loading tensor blk.40.attn_norm.weight +create_tensor: loading tensor blk.40.post_attention_norm.weight +create_tensor: loading tensor blk.40.attn_qkv.weight +create_tensor: loading tensor blk.40.attn_gate.weight +create_tensor: loading tensor blk.40.ssm_conv1d.weight +create_tensor: loading tensor blk.40.ssm_dt.bias +create_tensor: loading tensor blk.40.ssm_a +create_tensor: loading tensor blk.40.ssm_beta.weight +create_tensor: loading tensor blk.40.ssm_alpha.weight +create_tensor: loading tensor blk.40.ssm_norm.weight +create_tensor: loading tensor blk.40.ssm_out.weight +create_tensor: loading tensor blk.40.ffn_gate.weight +create_tensor: loading tensor blk.40.ffn_down.weight +create_tensor: loading tensor blk.40.ffn_up.weight +create_tensor: loading tensor blk.41.attn_norm.weight +create_tensor: loading tensor blk.41.post_attention_norm.weight +create_tensor: loading tensor blk.41.attn_qkv.weight +create_tensor: loading tensor blk.41.attn_gate.weight +create_tensor: loading tensor blk.41.ssm_conv1d.weight +create_tensor: loading tensor blk.41.ssm_dt.bias +create_tensor: loading tensor blk.41.ssm_a +create_tensor: loading tensor blk.41.ssm_beta.weight +create_tensor: loading tensor blk.41.ssm_alpha.weight +create_tensor: loading tensor blk.41.ssm_norm.weight +create_tensor: loading tensor blk.41.ssm_out.weight +create_tensor: loading tensor blk.41.ffn_gate.weight +create_tensor: loading tensor blk.41.ffn_down.weight +create_tensor: loading tensor blk.41.ffn_up.weight +create_tensor: loading tensor blk.42.attn_norm.weight +create_tensor: loading tensor blk.42.post_attention_norm.weight +create_tensor: loading tensor blk.42.attn_qkv.weight +create_tensor: loading tensor blk.42.attn_gate.weight +create_tensor: loading tensor blk.42.ssm_conv1d.weight +create_tensor: loading tensor blk.42.ssm_dt.bias +create_tensor: loading tensor blk.42.ssm_a +create_tensor: loading tensor blk.42.ssm_beta.weight +create_tensor: loading tensor blk.42.ssm_alpha.weight +create_tensor: loading tensor blk.42.ssm_norm.weight +create_tensor: loading tensor blk.42.ssm_out.weight +create_tensor: loading tensor blk.42.ffn_gate.weight +create_tensor: loading tensor blk.42.ffn_down.weight +create_tensor: loading tensor blk.42.ffn_up.weight +create_tensor: loading tensor blk.43.attn_norm.weight +create_tensor: loading tensor blk.43.post_attention_norm.weight +create_tensor: loading tensor blk.43.attn_qkv.weight +create_tensor: loading tensor blk.43.attn_q.weight +create_tensor: loading tensor blk.43.attn_k.weight +create_tensor: loading tensor blk.43.attn_v.weight +create_tensor: loading tensor blk.43.attn_q.bias +create_tensor: loading tensor blk.43.attn_k.bias +create_tensor: loading tensor blk.43.attn_v.bias +create_tensor: loading tensor blk.43.attn_output.weight +create_tensor: loading tensor blk.43.attn_q_norm.weight +create_tensor: loading tensor blk.43.attn_k_norm.weight +create_tensor: loading tensor blk.43.ffn_gate.weight +create_tensor: loading tensor blk.43.ffn_down.weight +create_tensor: loading tensor blk.43.ffn_up.weight +create_tensor: loading tensor blk.44.attn_norm.weight +create_tensor: loading tensor blk.44.post_attention_norm.weight +create_tensor: loading tensor blk.44.attn_qkv.weight +create_tensor: loading tensor blk.44.attn_gate.weight +create_tensor: loading tensor blk.44.ssm_conv1d.weight +create_tensor: loading tensor blk.44.ssm_dt.bias +create_tensor: loading tensor blk.44.ssm_a +create_tensor: loading tensor blk.44.ssm_beta.weight +create_tensor: loading tensor blk.44.ssm_alpha.weight +create_tensor: loading tensor blk.44.ssm_norm.weight +create_tensor: loading tensor blk.44.ssm_out.weight +create_tensor: loading tensor blk.44.ffn_gate.weight +create_tensor: loading tensor blk.44.ffn_down.weight +create_tensor: loading tensor blk.44.ffn_up.weight +create_tensor: loading tensor blk.45.attn_norm.weight +create_tensor: loading tensor blk.45.post_attention_norm.weight +create_tensor: loading tensor blk.45.attn_qkv.weight +create_tensor: loading tensor blk.45.attn_gate.weight +create_tensor: loading tensor blk.45.ssm_conv1d.weight +create_tensor: loading tensor blk.45.ssm_dt.bias +create_tensor: loading tensor blk.45.ssm_a +create_tensor: loading tensor blk.45.ssm_beta.weight +create_tensor: loading tensor blk.45.ssm_alpha.weight +create_tensor: loading tensor blk.45.ssm_norm.weight +create_tensor: loading tensor blk.45.ssm_out.weight +create_tensor: loading tensor blk.45.ffn_gate.weight +create_tensor: loading tensor blk.45.ffn_down.weight +create_tensor: loading tensor blk.45.ffn_up.weight +create_tensor: loading tensor blk.46.attn_norm.weight +create_tensor: loading tensor blk.46.post_attention_norm.weight +create_tensor: loading tensor blk.46.attn_qkv.weight +create_tensor: loading tensor blk.46.attn_gate.weight +create_tensor: loading tensor blk.46.ssm_conv1d.weight +create_tensor: loading tensor blk.46.ssm_dt.bias +create_tensor: loading tensor blk.46.ssm_a +create_tensor: loading tensor blk.46.ssm_beta.weight +create_tensor: loading tensor blk.46.ssm_alpha.weight +create_tensor: loading tensor blk.46.ssm_norm.weight +create_tensor: loading tensor blk.46.ssm_out.weight +create_tensor: loading tensor blk.46.ffn_gate.weight +create_tensor: loading tensor blk.46.ffn_down.weight +create_tensor: loading tensor blk.46.ffn_up.weight +create_tensor: loading tensor blk.47.attn_norm.weight +create_tensor: loading tensor blk.47.post_attention_norm.weight +create_tensor: loading tensor blk.47.attn_qkv.weight +create_tensor: loading tensor blk.47.attn_q.weight +create_tensor: loading tensor blk.47.attn_k.weight +create_tensor: loading tensor blk.47.attn_v.weight +create_tensor: loading tensor blk.47.attn_q.bias +create_tensor: loading tensor blk.47.attn_k.bias +create_tensor: loading tensor blk.47.attn_v.bias +create_tensor: loading tensor blk.47.attn_output.weight +create_tensor: loading tensor blk.47.attn_q_norm.weight +create_tensor: loading tensor blk.47.attn_k_norm.weight +create_tensor: loading tensor blk.47.ffn_gate.weight +create_tensor: loading tensor blk.47.ffn_down.weight +create_tensor: loading tensor blk.47.ffn_up.weight +create_tensor: loading tensor blk.48.attn_norm.weight +create_tensor: loading tensor blk.48.post_attention_norm.weight +create_tensor: loading tensor blk.48.attn_qkv.weight +create_tensor: loading tensor blk.48.attn_gate.weight +create_tensor: loading tensor blk.48.ssm_conv1d.weight +create_tensor: loading tensor blk.48.ssm_dt.bias +create_tensor: loading tensor blk.48.ssm_a +create_tensor: loading tensor blk.48.ssm_beta.weight +create_tensor: loading tensor blk.48.ssm_alpha.weight +create_tensor: loading tensor blk.48.ssm_norm.weight +create_tensor: loading tensor blk.48.ssm_out.weight +create_tensor: loading tensor blk.48.ffn_gate.weight +create_tensor: loading tensor blk.48.ffn_down.weight +create_tensor: loading tensor blk.48.ffn_up.weight +create_tensor: loading tensor blk.49.attn_norm.weight +create_tensor: loading tensor blk.49.post_attention_norm.weight +create_tensor: loading tensor blk.49.attn_qkv.weight +create_tensor: loading tensor blk.49.attn_gate.weight +create_tensor: loading tensor blk.49.ssm_conv1d.weight +create_tensor: loading tensor blk.49.ssm_dt.bias +create_tensor: loading tensor blk.49.ssm_a +create_tensor: loading tensor blk.49.ssm_beta.weight +create_tensor: loading tensor blk.49.ssm_alpha.weight +create_tensor: loading tensor blk.49.ssm_norm.weight +create_tensor: loading tensor blk.49.ssm_out.weight +create_tensor: loading tensor blk.49.ffn_gate.weight +create_tensor: loading tensor blk.49.ffn_down.weight +create_tensor: loading tensor blk.49.ffn_up.weight +create_tensor: loading tensor blk.50.attn_norm.weight +create_tensor: loading tensor blk.50.post_attention_norm.weight +create_tensor: loading tensor blk.50.attn_qkv.weight +create_tensor: loading tensor blk.50.attn_gate.weight +create_tensor: loading tensor blk.50.ssm_conv1d.weight +create_tensor: loading tensor blk.50.ssm_dt.bias +create_tensor: loading tensor blk.50.ssm_a +create_tensor: loading tensor blk.50.ssm_beta.weight +create_tensor: loading tensor blk.50.ssm_alpha.weight +create_tensor: loading tensor blk.50.ssm_norm.weight +create_tensor: loading tensor blk.50.ssm_out.weight +create_tensor: loading tensor blk.50.ffn_gate.weight +create_tensor: loading tensor blk.50.ffn_down.weight +create_tensor: loading tensor blk.50.ffn_up.weight +create_tensor: loading tensor blk.51.attn_norm.weight +create_tensor: loading tensor blk.51.post_attention_norm.weight +create_tensor: loading tensor blk.51.attn_qkv.weight +create_tensor: loading tensor blk.51.attn_q.weight +create_tensor: loading tensor blk.51.attn_k.weight +create_tensor: loading tensor blk.51.attn_v.weight +create_tensor: loading tensor blk.51.attn_q.bias +create_tensor: loading tensor blk.51.attn_k.bias +create_tensor: loading tensor blk.51.attn_v.bias +create_tensor: loading tensor blk.51.attn_output.weight +create_tensor: loading tensor blk.51.attn_q_norm.weight +create_tensor: loading tensor blk.51.attn_k_norm.weight +create_tensor: loading tensor blk.51.ffn_gate.weight +create_tensor: loading tensor blk.51.ffn_down.weight +create_tensor: loading tensor blk.51.ffn_up.weight +create_tensor: loading tensor blk.52.attn_norm.weight +create_tensor: loading tensor blk.52.post_attention_norm.weight +create_tensor: loading tensor blk.52.attn_qkv.weight +create_tensor: loading tensor blk.52.attn_gate.weight +create_tensor: loading tensor blk.52.ssm_conv1d.weight +create_tensor: loading tensor blk.52.ssm_dt.bias +create_tensor: loading tensor blk.52.ssm_a +create_tensor: loading tensor blk.52.ssm_beta.weight +create_tensor: loading tensor blk.52.ssm_alpha.weight +create_tensor: loading tensor blk.52.ssm_norm.weight +create_tensor: loading tensor blk.52.ssm_out.weight +create_tensor: loading tensor blk.52.ffn_gate.weight +create_tensor: loading tensor blk.52.ffn_down.weight +create_tensor: loading tensor blk.52.ffn_up.weight +create_tensor: loading tensor blk.53.attn_norm.weight +create_tensor: loading tensor blk.53.post_attention_norm.weight +create_tensor: loading tensor blk.53.attn_qkv.weight +create_tensor: loading tensor blk.53.attn_gate.weight +create_tensor: loading tensor blk.53.ssm_conv1d.weight +create_tensor: loading tensor blk.53.ssm_dt.bias +create_tensor: loading tensor blk.53.ssm_a +create_tensor: loading tensor blk.53.ssm_beta.weight +create_tensor: loading tensor blk.53.ssm_alpha.weight +create_tensor: loading tensor blk.53.ssm_norm.weight +create_tensor: loading tensor blk.53.ssm_out.weight +create_tensor: loading tensor blk.53.ffn_gate.weight +create_tensor: loading tensor blk.53.ffn_down.weight +create_tensor: loading tensor blk.53.ffn_up.weight +create_tensor: loading tensor blk.54.attn_norm.weight +create_tensor: loading tensor blk.54.post_attention_norm.weight +create_tensor: loading tensor blk.54.attn_qkv.weight +create_tensor: loading tensor blk.54.attn_gate.weight +create_tensor: loading tensor blk.54.ssm_conv1d.weight +create_tensor: loading tensor blk.54.ssm_dt.bias +create_tensor: loading tensor blk.54.ssm_a +create_tensor: loading tensor blk.54.ssm_beta.weight +create_tensor: loading tensor blk.54.ssm_alpha.weight +create_tensor: loading tensor blk.54.ssm_norm.weight +create_tensor: loading tensor blk.54.ssm_out.weight +create_tensor: loading tensor blk.54.ffn_gate.weight +create_tensor: loading tensor blk.54.ffn_down.weight +create_tensor: loading tensor blk.54.ffn_up.weight +create_tensor: loading tensor blk.55.attn_norm.weight +create_tensor: loading tensor blk.55.post_attention_norm.weight +create_tensor: loading tensor blk.55.attn_qkv.weight +create_tensor: loading tensor blk.55.attn_q.weight +create_tensor: loading tensor blk.55.attn_k.weight +create_tensor: loading tensor blk.55.attn_v.weight +create_tensor: loading tensor blk.55.attn_q.bias +create_tensor: loading tensor blk.55.attn_k.bias +create_tensor: loading tensor blk.55.attn_v.bias +create_tensor: loading tensor blk.55.attn_output.weight +create_tensor: loading tensor blk.55.attn_q_norm.weight +create_tensor: loading tensor blk.55.attn_k_norm.weight +create_tensor: loading tensor blk.55.ffn_gate.weight +create_tensor: loading tensor blk.55.ffn_down.weight +create_tensor: loading tensor blk.55.ffn_up.weight +create_tensor: loading tensor blk.56.attn_norm.weight +create_tensor: loading tensor blk.56.post_attention_norm.weight +create_tensor: loading tensor blk.56.attn_qkv.weight +create_tensor: loading tensor blk.56.attn_gate.weight +create_tensor: loading tensor blk.56.ssm_conv1d.weight +create_tensor: loading tensor blk.56.ssm_dt.bias +create_tensor: loading tensor blk.56.ssm_a +create_tensor: loading tensor blk.56.ssm_beta.weight +create_tensor: loading tensor blk.56.ssm_alpha.weight +create_tensor: loading tensor blk.56.ssm_norm.weight +create_tensor: loading tensor blk.56.ssm_out.weight +create_tensor: loading tensor blk.56.ffn_gate.weight +create_tensor: loading tensor blk.56.ffn_down.weight +create_tensor: loading tensor blk.56.ffn_up.weight +create_tensor: loading tensor blk.57.attn_norm.weight +create_tensor: loading tensor blk.57.post_attention_norm.weight +create_tensor: loading tensor blk.57.attn_qkv.weight +create_tensor: loading tensor blk.57.attn_gate.weight +create_tensor: loading tensor blk.57.ssm_conv1d.weight +create_tensor: loading tensor blk.57.ssm_dt.bias +create_tensor: loading tensor blk.57.ssm_a +create_tensor: loading tensor blk.57.ssm_beta.weight +create_tensor: loading tensor blk.57.ssm_alpha.weight +create_tensor: loading tensor blk.57.ssm_norm.weight +create_tensor: loading tensor blk.57.ssm_out.weight +create_tensor: loading tensor blk.57.ffn_gate.weight +create_tensor: loading tensor blk.57.ffn_down.weight +create_tensor: loading tensor blk.57.ffn_up.weight +create_tensor: loading tensor blk.58.attn_norm.weight +create_tensor: loading tensor blk.58.post_attention_norm.weight +create_tensor: loading tensor blk.58.attn_qkv.weight +create_tensor: loading tensor blk.58.attn_gate.weight +create_tensor: loading tensor blk.58.ssm_conv1d.weight +create_tensor: loading tensor blk.58.ssm_dt.bias +create_tensor: loading tensor blk.58.ssm_a +create_tensor: loading tensor blk.58.ssm_beta.weight +create_tensor: loading tensor blk.58.ssm_alpha.weight +create_tensor: loading tensor blk.58.ssm_norm.weight +create_tensor: loading tensor blk.58.ssm_out.weight +create_tensor: loading tensor blk.58.ffn_gate.weight +create_tensor: loading tensor blk.58.ffn_down.weight +create_tensor: loading tensor blk.58.ffn_up.weight +create_tensor: loading tensor blk.59.attn_norm.weight +create_tensor: loading tensor blk.59.post_attention_norm.weight +create_tensor: loading tensor blk.59.attn_qkv.weight +create_tensor: loading tensor blk.59.attn_q.weight +create_tensor: loading tensor blk.59.attn_k.weight +create_tensor: loading tensor blk.59.attn_v.weight +create_tensor: loading tensor blk.59.attn_q.bias +create_tensor: loading tensor blk.59.attn_k.bias +create_tensor: loading tensor blk.59.attn_v.bias +create_tensor: loading tensor blk.59.attn_output.weight +create_tensor: loading tensor blk.59.attn_q_norm.weight +create_tensor: loading tensor blk.59.attn_k_norm.weight +create_tensor: loading tensor blk.59.ffn_gate.weight +create_tensor: loading tensor blk.59.ffn_down.weight +create_tensor: loading tensor blk.59.ffn_up.weight +create_tensor: loading tensor blk.60.attn_norm.weight +create_tensor: loading tensor blk.60.post_attention_norm.weight +create_tensor: loading tensor blk.60.attn_qkv.weight +create_tensor: loading tensor blk.60.attn_gate.weight +create_tensor: loading tensor blk.60.ssm_conv1d.weight +create_tensor: loading tensor blk.60.ssm_dt.bias +create_tensor: loading tensor blk.60.ssm_a +create_tensor: loading tensor blk.60.ssm_beta.weight +create_tensor: loading tensor blk.60.ssm_alpha.weight +create_tensor: loading tensor blk.60.ssm_norm.weight +create_tensor: loading tensor blk.60.ssm_out.weight +create_tensor: loading tensor blk.60.ffn_gate.weight +create_tensor: loading tensor blk.60.ffn_down.weight +create_tensor: loading tensor blk.60.ffn_up.weight +create_tensor: loading tensor blk.61.attn_norm.weight +create_tensor: loading tensor blk.61.post_attention_norm.weight +create_tensor: loading tensor blk.61.attn_qkv.weight +create_tensor: loading tensor blk.61.attn_gate.weight +create_tensor: loading tensor blk.61.ssm_conv1d.weight +create_tensor: loading tensor blk.61.ssm_dt.bias +create_tensor: loading tensor blk.61.ssm_a +create_tensor: loading tensor blk.61.ssm_beta.weight +create_tensor: loading tensor blk.61.ssm_alpha.weight +create_tensor: loading tensor blk.61.ssm_norm.weight +create_tensor: loading tensor blk.61.ssm_out.weight +create_tensor: loading tensor blk.61.ffn_gate.weight +create_tensor: loading tensor blk.61.ffn_down.weight +create_tensor: loading tensor blk.61.ffn_up.weight +create_tensor: loading tensor blk.62.attn_norm.weight +create_tensor: loading tensor blk.62.post_attention_norm.weight +create_tensor: loading tensor blk.62.attn_qkv.weight +create_tensor: loading tensor blk.62.attn_gate.weight +create_tensor: loading tensor blk.62.ssm_conv1d.weight +create_tensor: loading tensor blk.62.ssm_dt.bias +create_tensor: loading tensor blk.62.ssm_a +create_tensor: loading tensor blk.62.ssm_beta.weight +create_tensor: loading tensor blk.62.ssm_alpha.weight +create_tensor: loading tensor blk.62.ssm_norm.weight +create_tensor: loading tensor blk.62.ssm_out.weight +create_tensor: loading tensor blk.62.ffn_gate.weight +create_tensor: loading tensor blk.62.ffn_down.weight +create_tensor: loading tensor blk.62.ffn_up.weight +create_tensor: loading tensor blk.63.attn_norm.weight +create_tensor: loading tensor blk.63.post_attention_norm.weight +create_tensor: loading tensor blk.63.attn_qkv.weight +create_tensor: loading tensor blk.63.attn_q.weight +create_tensor: loading tensor blk.63.attn_k.weight +create_tensor: loading tensor blk.63.attn_v.weight +create_tensor: loading tensor blk.63.attn_q.bias +create_tensor: loading tensor blk.63.attn_k.bias +create_tensor: loading tensor blk.63.attn_v.bias +create_tensor: loading tensor blk.63.attn_output.weight +create_tensor: loading tensor blk.63.attn_q_norm.weight +create_tensor: loading tensor blk.63.attn_k_norm.weight +create_tensor: loading tensor blk.63.ffn_gate.weight +create_tensor: loading tensor blk.63.ffn_down.weight +create_tensor: loading tensor blk.63.ffn_up.weight +create_tensor: loading tensor blk.64.attn_norm.weight +model has unused tensor blk.64.attn_norm.weight (size = 20480 bytes) -- ignoring +create_tensor: loading tensor blk.64.post_attention_norm.weight +model has unused tensor blk.64.post_attention_norm.weight (size = 20480 bytes) -- ignoring +create_tensor: loading tensor blk.64.attn_qkv.weight +create_tensor: loading tensor blk.64.attn_qkv.bias +create_tensor: loading tensor blk.64.attn_q.weight +model has unused tensor blk.64.attn_q.weight (size = 35389440 bytes) -- ignoring +create_tensor: loading tensor blk.64.attn_k.weight +model has unused tensor blk.64.attn_k.weight (size = 2949120 bytes) -- ignoring +create_tensor: loading tensor blk.64.attn_v.weight +model has unused tensor blk.64.attn_v.weight (size = 4300800 bytes) -- ignoring +create_tensor: loading tensor blk.64.attn_q.bias +create_tensor: loading tensor blk.64.attn_k.bias +create_tensor: loading tensor blk.64.attn_v.bias +create_tensor: loading tensor blk.64.attn_output.weight +model has unused tensor blk.64.attn_output.weight (size = 17694720 bytes) -- ignoring +create_tensor: loading tensor blk.64.attn_q_norm.weight +model has unused tensor blk.64.attn_q_norm.weight (size = 1024 bytes) -- ignoring +create_tensor: loading tensor blk.64.attn_k_norm.weight +model has unused tensor blk.64.attn_k_norm.weight (size = 1024 bytes) -- ignoring +create_tensor: loading tensor blk.64.ffn_gate.weight +model has unused tensor blk.64.ffn_gate.weight (size = 50135040 bytes) -- ignoring +create_tensor: loading tensor blk.64.ffn_down.weight +model has unused tensor blk.64.ffn_down.weight (size = 73113600 bytes) -- ignoring +create_tensor: loading tensor blk.64.ffn_up.weight +model has unused tensor blk.64.ffn_up.weight (size = 50135040 bytes) -- ignoring +create_tensor: loading tensor blk.64.nextn.eh_proj.weight +model has unused tensor blk.64.nextn.eh_proj.weight (size = 29491200 bytes) -- ignoring +create_tensor: loading tensor blk.64.nextn.enorm.weight +model has unused tensor blk.64.nextn.enorm.weight (size = 20480 bytes) -- ignoring +create_tensor: loading tensor blk.64.nextn.hnorm.weight +model has unused tensor blk.64.nextn.hnorm.weight (size = 20480 bytes) -- ignoring +create_tensor: loading tensor blk.64.nextn.embed_tokens.weight +create_tensor: loading tensor blk.64.nextn.shared_head_head.weight +create_tensor: loading tensor blk.64.nextn.shared_head_norm.weight +model has unused tensor blk.64.nextn.shared_head_norm.weight (size = 20480 bytes) -- ignoring +create_tensor: loading tensor blk.0.attn_qkv.scale +create_tensor: loading tensor blk.0.attn_gate.scale +create_tensor: loading tensor blk.0.ffn_gate.scale +create_tensor: loading tensor blk.0.ffn_down.scale +create_tensor: loading tensor blk.0.ffn_up.scale +create_tensor: loading tensor blk.0.ssm_out.scale +create_tensor: loading tensor blk.0.ssm_alpha.scale +create_tensor: loading tensor blk.0.ssm_beta.scale +create_tensor: loading tensor blk.0.attn_qkv.input_scale +create_tensor: loading tensor blk.0.attn_gate.input_scale +create_tensor: loading tensor blk.0.ffn_gate.input_scale +create_tensor: loading tensor blk.0.ffn_down.input_scale +create_tensor: loading tensor blk.0.ffn_up.input_scale +create_tensor: loading tensor blk.0.ssm_out.input_scale +create_tensor: loading tensor blk.0.ssm_alpha.input_scale +create_tensor: loading tensor blk.0.ssm_beta.input_scale +create_tensor: loading tensor blk.1.attn_qkv.scale +create_tensor: loading tensor blk.1.attn_gate.scale +create_tensor: loading tensor blk.1.ffn_gate.scale +create_tensor: loading tensor blk.1.ffn_down.scale +create_tensor: loading tensor blk.1.ffn_up.scale +create_tensor: loading tensor blk.1.ssm_out.scale +create_tensor: loading tensor blk.1.ssm_alpha.scale +create_tensor: loading tensor blk.1.ssm_beta.scale +create_tensor: loading tensor blk.1.attn_qkv.input_scale +create_tensor: loading tensor blk.1.attn_gate.input_scale +create_tensor: loading tensor blk.1.ffn_gate.input_scale +create_tensor: loading tensor blk.1.ffn_down.input_scale +create_tensor: loading tensor blk.1.ffn_up.input_scale +create_tensor: loading tensor blk.1.ssm_out.input_scale +create_tensor: loading tensor blk.1.ssm_alpha.input_scale +create_tensor: loading tensor blk.1.ssm_beta.input_scale +create_tensor: loading tensor blk.2.attn_qkv.scale +create_tensor: loading tensor blk.2.attn_gate.scale +create_tensor: loading tensor blk.2.ffn_gate.scale +create_tensor: loading tensor blk.2.ffn_down.scale +create_tensor: loading tensor blk.2.ffn_up.scale +create_tensor: loading tensor blk.2.ssm_out.scale +create_tensor: loading tensor blk.2.ssm_alpha.scale +create_tensor: loading tensor blk.2.ssm_beta.scale +create_tensor: loading tensor blk.2.attn_qkv.input_scale +create_tensor: loading tensor blk.2.attn_gate.input_scale +create_tensor: loading tensor blk.2.ffn_gate.input_scale +create_tensor: loading tensor blk.2.ffn_down.input_scale +create_tensor: loading tensor blk.2.ffn_up.input_scale +create_tensor: loading tensor blk.2.ssm_out.input_scale +create_tensor: loading tensor blk.2.ssm_alpha.input_scale +create_tensor: loading tensor blk.2.ssm_beta.input_scale +create_tensor: loading tensor blk.3.attn_q.scale +create_tensor: loading tensor blk.3.attn_k.scale +create_tensor: loading tensor blk.3.attn_v.scale +create_tensor: loading tensor blk.3.attn_output.scale +create_tensor: loading tensor blk.3.ffn_gate.scale +create_tensor: loading tensor blk.3.ffn_down.scale +create_tensor: loading tensor blk.3.ffn_up.scale +create_tensor: loading tensor blk.3.attn_q.input_scale +create_tensor: loading tensor blk.3.attn_k.input_scale +create_tensor: loading tensor blk.3.attn_v.input_scale +create_tensor: loading tensor blk.3.attn_output.input_scale +create_tensor: loading tensor blk.3.ffn_gate.input_scale +create_tensor: loading tensor blk.3.ffn_down.input_scale +create_tensor: loading tensor blk.3.ffn_up.input_scale +create_tensor: loading tensor blk.4.attn_qkv.scale +create_tensor: loading tensor blk.4.attn_gate.scale +create_tensor: loading tensor blk.4.ffn_gate.scale +create_tensor: loading tensor blk.4.ffn_down.scale +create_tensor: loading tensor blk.4.ffn_up.scale +create_tensor: loading tensor blk.4.ssm_out.scale +create_tensor: loading tensor blk.4.ssm_alpha.scale +create_tensor: loading tensor blk.4.ssm_beta.scale +create_tensor: loading tensor blk.4.attn_qkv.input_scale +create_tensor: loading tensor blk.4.attn_gate.input_scale +create_tensor: loading tensor blk.4.ffn_gate.input_scale +create_tensor: loading tensor blk.4.ffn_down.input_scale +create_tensor: loading tensor blk.4.ffn_up.input_scale +create_tensor: loading tensor blk.4.ssm_out.input_scale +create_tensor: loading tensor blk.4.ssm_alpha.input_scale +create_tensor: loading tensor blk.4.ssm_beta.input_scale +create_tensor: loading tensor blk.5.attn_qkv.scale +create_tensor: loading tensor blk.5.attn_gate.scale +create_tensor: loading tensor blk.5.ffn_gate.scale +create_tensor: loading tensor blk.5.ffn_down.scale +create_tensor: loading tensor blk.5.ffn_up.scale +create_tensor: loading tensor blk.5.ssm_out.scale +create_tensor: loading tensor blk.5.ssm_alpha.scale +create_tensor: loading tensor blk.5.ssm_beta.scale +create_tensor: loading tensor blk.5.attn_qkv.input_scale +create_tensor: loading tensor blk.5.attn_gate.input_scale +create_tensor: loading tensor blk.5.ffn_gate.input_scale +create_tensor: loading tensor blk.5.ffn_down.input_scale +create_tensor: loading tensor blk.5.ffn_up.input_scale +create_tensor: loading tensor blk.5.ssm_out.input_scale +create_tensor: loading tensor blk.5.ssm_alpha.input_scale +create_tensor: loading tensor blk.5.ssm_beta.input_scale +create_tensor: loading tensor blk.6.attn_qkv.scale +create_tensor: loading tensor blk.6.attn_gate.scale +create_tensor: loading tensor blk.6.ffn_gate.scale +create_tensor: loading tensor blk.6.ffn_down.scale +create_tensor: loading tensor blk.6.ffn_up.scale +create_tensor: loading tensor blk.6.ssm_out.scale +create_tensor: loading tensor blk.6.ssm_alpha.scale +create_tensor: loading tensor blk.6.ssm_beta.scale +create_tensor: loading tensor blk.6.attn_qkv.input_scale +create_tensor: loading tensor blk.6.attn_gate.input_scale +create_tensor: loading tensor blk.6.ffn_gate.input_scale +create_tensor: loading tensor blk.6.ffn_down.input_scale +create_tensor: loading tensor blk.6.ffn_up.input_scale +create_tensor: loading tensor blk.6.ssm_out.input_scale +create_tensor: loading tensor blk.6.ssm_alpha.input_scale +create_tensor: loading tensor blk.6.ssm_beta.input_scale +create_tensor: loading tensor blk.7.attn_q.scale +create_tensor: loading tensor blk.7.attn_k.scale +create_tensor: loading tensor blk.7.attn_v.scale +create_tensor: loading tensor blk.7.attn_output.scale +create_tensor: loading tensor blk.7.ffn_gate.scale +create_tensor: loading tensor blk.7.ffn_down.scale +create_tensor: loading tensor blk.7.ffn_up.scale +create_tensor: loading tensor blk.7.attn_q.input_scale +create_tensor: loading tensor blk.7.attn_k.input_scale +create_tensor: loading tensor blk.7.attn_v.input_scale +create_tensor: loading tensor blk.7.attn_output.input_scale +create_tensor: loading tensor blk.7.ffn_gate.input_scale +create_tensor: loading tensor blk.7.ffn_down.input_scale +create_tensor: loading tensor blk.7.ffn_up.input_scale +create_tensor: loading tensor blk.8.attn_qkv.scale +create_tensor: loading tensor blk.8.attn_gate.scale +create_tensor: loading tensor blk.8.ffn_gate.scale +create_tensor: loading tensor blk.8.ffn_down.scale +create_tensor: loading tensor blk.8.ffn_up.scale +create_tensor: loading tensor blk.8.ssm_out.scale +create_tensor: loading tensor blk.8.ssm_alpha.scale +create_tensor: loading tensor blk.8.ssm_beta.scale +create_tensor: loading tensor blk.8.attn_qkv.input_scale +create_tensor: loading tensor blk.8.attn_gate.input_scale +create_tensor: loading tensor blk.8.ffn_gate.input_scale +create_tensor: loading tensor blk.8.ffn_down.input_scale +create_tensor: loading tensor blk.8.ffn_up.input_scale +create_tensor: loading tensor blk.8.ssm_out.input_scale +create_tensor: loading tensor blk.8.ssm_alpha.input_scale +create_tensor: loading tensor blk.8.ssm_beta.input_scale +create_tensor: loading tensor blk.9.attn_qkv.scale +create_tensor: loading tensor blk.9.attn_gate.scale +create_tensor: loading tensor blk.9.ffn_gate.scale +create_tensor: loading tensor blk.9.ffn_down.scale +create_tensor: loading tensor blk.9.ffn_up.scale +create_tensor: loading tensor blk.9.ssm_out.scale +create_tensor: loading tensor blk.9.ssm_alpha.scale +create_tensor: loading tensor blk.9.ssm_beta.scale +create_tensor: loading tensor blk.9.attn_qkv.input_scale +create_tensor: loading tensor blk.9.attn_gate.input_scale +create_tensor: loading tensor blk.9.ffn_gate.input_scale +create_tensor: loading tensor blk.9.ffn_down.input_scale +create_tensor: loading tensor blk.9.ffn_up.input_scale +create_tensor: loading tensor blk.9.ssm_out.input_scale +create_tensor: loading tensor blk.9.ssm_alpha.input_scale +create_tensor: loading tensor blk.9.ssm_beta.input_scale +create_tensor: loading tensor blk.10.attn_qkv.scale +create_tensor: loading tensor blk.10.attn_gate.scale +create_tensor: loading tensor blk.10.ffn_gate.scale +create_tensor: loading tensor blk.10.ffn_down.scale +create_tensor: loading tensor blk.10.ffn_up.scale +create_tensor: loading tensor blk.10.ssm_out.scale +create_tensor: loading tensor blk.10.ssm_alpha.scale +create_tensor: loading tensor blk.10.ssm_beta.scale +create_tensor: loading tensor blk.10.attn_qkv.input_scale +create_tensor: loading tensor blk.10.attn_gate.input_scale +create_tensor: loading tensor blk.10.ffn_gate.input_scale +create_tensor: loading tensor blk.10.ffn_down.input_scale +create_tensor: loading tensor blk.10.ffn_up.input_scale +create_tensor: loading tensor blk.10.ssm_out.input_scale +create_tensor: loading tensor blk.10.ssm_alpha.input_scale +create_tensor: loading tensor blk.10.ssm_beta.input_scale +create_tensor: loading tensor blk.11.attn_q.scale +create_tensor: loading tensor blk.11.attn_k.scale +create_tensor: loading tensor blk.11.attn_v.scale +create_tensor: loading tensor blk.11.attn_output.scale +create_tensor: loading tensor blk.11.ffn_gate.scale +create_tensor: loading tensor blk.11.ffn_down.scale +create_tensor: loading tensor blk.11.ffn_up.scale +create_tensor: loading tensor blk.11.attn_q.input_scale +create_tensor: loading tensor blk.11.attn_k.input_scale +create_tensor: loading tensor blk.11.attn_v.input_scale +create_tensor: loading tensor blk.11.attn_output.input_scale +create_tensor: loading tensor blk.11.ffn_gate.input_scale +create_tensor: loading tensor blk.11.ffn_down.input_scale +create_tensor: loading tensor blk.11.ffn_up.input_scale +create_tensor: loading tensor blk.12.attn_qkv.scale +create_tensor: loading tensor blk.12.attn_gate.scale +create_tensor: loading tensor blk.12.ffn_gate.scale +create_tensor: loading tensor blk.12.ffn_down.scale +create_tensor: loading tensor blk.12.ffn_up.scale +create_tensor: loading tensor blk.12.ssm_out.scale +create_tensor: loading tensor blk.12.ssm_alpha.scale +create_tensor: loading tensor blk.12.ssm_beta.scale +create_tensor: loading tensor blk.12.attn_qkv.input_scale +create_tensor: loading tensor blk.12.attn_gate.input_scale +create_tensor: loading tensor blk.12.ffn_gate.input_scale +create_tensor: loading tensor blk.12.ffn_down.input_scale +create_tensor: loading tensor blk.12.ffn_up.input_scale +create_tensor: loading tensor blk.12.ssm_out.input_scale +create_tensor: loading tensor blk.12.ssm_alpha.input_scale +create_tensor: loading tensor blk.12.ssm_beta.input_scale +create_tensor: loading tensor blk.13.attn_qkv.scale +create_tensor: loading tensor blk.13.attn_gate.scale +create_tensor: loading tensor blk.13.ffn_gate.scale +create_tensor: loading tensor blk.13.ffn_down.scale +create_tensor: loading tensor blk.13.ffn_up.scale +create_tensor: loading tensor blk.13.ssm_out.scale +create_tensor: loading tensor blk.13.ssm_alpha.scale +create_tensor: loading tensor blk.13.ssm_beta.scale +create_tensor: loading tensor blk.13.attn_qkv.input_scale +create_tensor: loading tensor blk.13.attn_gate.input_scale +create_tensor: loading tensor blk.13.ffn_gate.input_scale +create_tensor: loading tensor blk.13.ffn_down.input_scale +create_tensor: loading tensor blk.13.ffn_up.input_scale +create_tensor: loading tensor blk.13.ssm_out.input_scale +create_tensor: loading tensor blk.13.ssm_alpha.input_scale +create_tensor: loading tensor blk.13.ssm_beta.input_scale +create_tensor: loading tensor blk.14.attn_qkv.scale +create_tensor: loading tensor blk.14.attn_gate.scale +create_tensor: loading tensor blk.14.ffn_gate.scale +create_tensor: loading tensor blk.14.ffn_down.scale +create_tensor: loading tensor blk.14.ffn_up.scale +create_tensor: loading tensor blk.14.ssm_out.scale +create_tensor: loading tensor blk.14.ssm_alpha.scale +create_tensor: loading tensor blk.14.ssm_beta.scale +create_tensor: loading tensor blk.14.attn_qkv.input_scale +create_tensor: loading tensor blk.14.attn_gate.input_scale +create_tensor: loading tensor blk.14.ffn_gate.input_scale +create_tensor: loading tensor blk.14.ffn_down.input_scale +create_tensor: loading tensor blk.14.ffn_up.input_scale +create_tensor: loading tensor blk.14.ssm_out.input_scale +create_tensor: loading tensor blk.14.ssm_alpha.input_scale +create_tensor: loading tensor blk.14.ssm_beta.input_scale +create_tensor: loading tensor blk.15.attn_q.scale +create_tensor: loading tensor blk.15.attn_k.scale +create_tensor: loading tensor blk.15.attn_v.scale +create_tensor: loading tensor blk.15.attn_output.scale +create_tensor: loading tensor blk.15.ffn_gate.scale +create_tensor: loading tensor blk.15.ffn_down.scale +create_tensor: loading tensor blk.15.ffn_up.scale +create_tensor: loading tensor blk.15.attn_q.input_scale +create_tensor: loading tensor blk.15.attn_k.input_scale +create_tensor: loading tensor blk.15.attn_v.input_scale +create_tensor: loading tensor blk.15.attn_output.input_scale +create_tensor: loading tensor blk.15.ffn_gate.input_scale +create_tensor: loading tensor blk.15.ffn_down.input_scale +create_tensor: loading tensor blk.15.ffn_up.input_scale +create_tensor: loading tensor blk.16.attn_qkv.scale +create_tensor: loading tensor blk.16.attn_gate.scale +create_tensor: loading tensor blk.16.ffn_gate.scale +create_tensor: loading tensor blk.16.ffn_down.scale +create_tensor: loading tensor blk.16.ffn_up.scale +create_tensor: loading tensor blk.16.ssm_out.scale +create_tensor: loading tensor blk.16.ssm_alpha.scale +create_tensor: loading tensor blk.16.ssm_beta.scale +create_tensor: loading tensor blk.16.attn_qkv.input_scale +create_tensor: loading tensor blk.16.attn_gate.input_scale +create_tensor: loading tensor blk.16.ffn_gate.input_scale +create_tensor: loading tensor blk.16.ffn_down.input_scale +create_tensor: loading tensor blk.16.ffn_up.input_scale +create_tensor: loading tensor blk.16.ssm_out.input_scale +create_tensor: loading tensor blk.16.ssm_alpha.input_scale +create_tensor: loading tensor blk.16.ssm_beta.input_scale +create_tensor: loading tensor blk.17.attn_qkv.scale +create_tensor: loading tensor blk.17.attn_gate.scale +create_tensor: loading tensor blk.17.ffn_gate.scale +create_tensor: loading tensor blk.17.ffn_down.scale +create_tensor: loading tensor blk.17.ffn_up.scale +create_tensor: loading tensor blk.17.ssm_out.scale +create_tensor: loading tensor blk.17.ssm_alpha.scale +create_tensor: loading tensor blk.17.ssm_beta.scale +create_tensor: loading tensor blk.17.attn_qkv.input_scale +create_tensor: loading tensor blk.17.attn_gate.input_scale +create_tensor: loading tensor blk.17.ffn_gate.input_scale +create_tensor: loading tensor blk.17.ffn_down.input_scale +create_tensor: loading tensor blk.17.ffn_up.input_scale +create_tensor: loading tensor blk.17.ssm_out.input_scale +create_tensor: loading tensor blk.17.ssm_alpha.input_scale +create_tensor: loading tensor blk.17.ssm_beta.input_scale +create_tensor: loading tensor blk.18.attn_qkv.scale +create_tensor: loading tensor blk.18.attn_gate.scale +create_tensor: loading tensor blk.18.ffn_gate.scale +create_tensor: loading tensor blk.18.ffn_down.scale +create_tensor: loading tensor blk.18.ffn_up.scale +create_tensor: loading tensor blk.18.ssm_out.scale +create_tensor: loading tensor blk.18.ssm_alpha.scale +create_tensor: loading tensor blk.18.ssm_beta.scale +create_tensor: loading tensor blk.18.attn_qkv.input_scale +create_tensor: loading tensor blk.18.attn_gate.input_scale +create_tensor: loading tensor blk.18.ffn_gate.input_scale +create_tensor: loading tensor blk.18.ffn_down.input_scale +create_tensor: loading tensor blk.18.ffn_up.input_scale +create_tensor: loading tensor blk.18.ssm_out.input_scale +create_tensor: loading tensor blk.18.ssm_alpha.input_scale +create_tensor: loading tensor blk.18.ssm_beta.input_scale +create_tensor: loading tensor blk.19.attn_q.scale +create_tensor: loading tensor blk.19.attn_k.scale +create_tensor: loading tensor blk.19.attn_v.scale +create_tensor: loading tensor blk.19.attn_output.scale +create_tensor: loading tensor blk.19.ffn_gate.scale +create_tensor: loading tensor blk.19.ffn_down.scale +create_tensor: loading tensor blk.19.ffn_up.scale +create_tensor: loading tensor blk.19.attn_q.input_scale +create_tensor: loading tensor blk.19.attn_k.input_scale +create_tensor: loading tensor blk.19.attn_v.input_scale +create_tensor: loading tensor blk.19.attn_output.input_scale +create_tensor: loading tensor blk.19.ffn_gate.input_scale +create_tensor: loading tensor blk.19.ffn_down.input_scale +create_tensor: loading tensor blk.19.ffn_up.input_scale +create_tensor: loading tensor blk.20.attn_qkv.scale +create_tensor: loading tensor blk.20.attn_gate.scale +create_tensor: loading tensor blk.20.ffn_gate.scale +create_tensor: loading tensor blk.20.ffn_down.scale +create_tensor: loading tensor blk.20.ffn_up.scale +create_tensor: loading tensor blk.20.ssm_out.scale +create_tensor: loading tensor blk.20.ssm_alpha.scale +create_tensor: loading tensor blk.20.ssm_beta.scale +create_tensor: loading tensor blk.20.attn_qkv.input_scale +create_tensor: loading tensor blk.20.attn_gate.input_scale +create_tensor: loading tensor blk.20.ffn_gate.input_scale +create_tensor: loading tensor blk.20.ffn_down.input_scale +create_tensor: loading tensor blk.20.ffn_up.input_scale +create_tensor: loading tensor blk.20.ssm_out.input_scale +create_tensor: loading tensor blk.20.ssm_alpha.input_scale +create_tensor: loading tensor blk.20.ssm_beta.input_scale +create_tensor: loading tensor blk.21.attn_qkv.scale +create_tensor: loading tensor blk.21.attn_gate.scale +create_tensor: loading tensor blk.21.ffn_gate.scale +create_tensor: loading tensor blk.21.ffn_down.scale +create_tensor: loading tensor blk.21.ffn_up.scale +create_tensor: loading tensor blk.21.ssm_out.scale +create_tensor: loading tensor blk.21.ssm_alpha.scale +create_tensor: loading tensor blk.21.ssm_beta.scale +create_tensor: loading tensor blk.21.attn_qkv.input_scale +create_tensor: loading tensor blk.21.attn_gate.input_scale +create_tensor: loading tensor blk.21.ffn_gate.input_scale +create_tensor: loading tensor blk.21.ffn_down.input_scale +create_tensor: loading tensor blk.21.ffn_up.input_scale +create_tensor: loading tensor blk.21.ssm_out.input_scale +create_tensor: loading tensor blk.21.ssm_alpha.input_scale +create_tensor: loading tensor blk.21.ssm_beta.input_scale +create_tensor: loading tensor blk.22.attn_qkv.scale +create_tensor: loading tensor blk.22.attn_gate.scale +create_tensor: loading tensor blk.22.ffn_gate.scale +create_tensor: loading tensor blk.22.ffn_down.scale +create_tensor: loading tensor blk.22.ffn_up.scale +create_tensor: loading tensor blk.22.ssm_out.scale +create_tensor: loading tensor blk.22.ssm_alpha.scale +create_tensor: loading tensor blk.22.ssm_beta.scale +create_tensor: loading tensor blk.22.attn_qkv.input_scale +create_tensor: loading tensor blk.22.attn_gate.input_scale +create_tensor: loading tensor blk.22.ffn_gate.input_scale +create_tensor: loading tensor blk.22.ffn_down.input_scale +create_tensor: loading tensor blk.22.ffn_up.input_scale +create_tensor: loading tensor blk.22.ssm_out.input_scale +create_tensor: loading tensor blk.22.ssm_alpha.input_scale +create_tensor: loading tensor blk.22.ssm_beta.input_scale +create_tensor: loading tensor blk.23.attn_q.scale +create_tensor: loading tensor blk.23.attn_k.scale +create_tensor: loading tensor blk.23.attn_v.scale +create_tensor: loading tensor blk.23.attn_output.scale +create_tensor: loading tensor blk.23.ffn_gate.scale +create_tensor: loading tensor blk.23.ffn_down.scale +create_tensor: loading tensor blk.23.ffn_up.scale +create_tensor: loading tensor blk.23.attn_q.input_scale +create_tensor: loading tensor blk.23.attn_k.input_scale +create_tensor: loading tensor blk.23.attn_v.input_scale +create_tensor: loading tensor blk.23.attn_output.input_scale +create_tensor: loading tensor blk.23.ffn_gate.input_scale +create_tensor: loading tensor blk.23.ffn_down.input_scale +create_tensor: loading tensor blk.23.ffn_up.input_scale +create_tensor: loading tensor blk.24.attn_qkv.scale +create_tensor: loading tensor blk.24.attn_gate.scale +create_tensor: loading tensor blk.24.ffn_gate.scale +create_tensor: loading tensor blk.24.ffn_down.scale +create_tensor: loading tensor blk.24.ffn_up.scale +create_tensor: loading tensor blk.24.ssm_out.scale +create_tensor: loading tensor blk.24.ssm_alpha.scale +create_tensor: loading tensor blk.24.ssm_beta.scale +create_tensor: loading tensor blk.24.attn_qkv.input_scale +create_tensor: loading tensor blk.24.attn_gate.input_scale +create_tensor: loading tensor blk.24.ffn_gate.input_scale +create_tensor: loading tensor blk.24.ffn_down.input_scale +create_tensor: loading tensor blk.24.ffn_up.input_scale +create_tensor: loading tensor blk.24.ssm_out.input_scale +create_tensor: loading tensor blk.24.ssm_alpha.input_scale +create_tensor: loading tensor blk.24.ssm_beta.input_scale +create_tensor: loading tensor blk.25.attn_qkv.scale +create_tensor: loading tensor blk.25.attn_gate.scale +create_tensor: loading tensor blk.25.ffn_gate.scale +create_tensor: loading tensor blk.25.ffn_down.scale +create_tensor: loading tensor blk.25.ffn_up.scale +create_tensor: loading tensor blk.25.ssm_out.scale +create_tensor: loading tensor blk.25.ssm_alpha.scale +create_tensor: loading tensor blk.25.ssm_beta.scale +create_tensor: loading tensor blk.25.attn_qkv.input_scale +create_tensor: loading tensor blk.25.attn_gate.input_scale +create_tensor: loading tensor blk.25.ffn_gate.input_scale +create_tensor: loading tensor blk.25.ffn_down.input_scale +create_tensor: loading tensor blk.25.ffn_up.input_scale +create_tensor: loading tensor blk.25.ssm_out.input_scale +create_tensor: loading tensor blk.25.ssm_alpha.input_scale +create_tensor: loading tensor blk.25.ssm_beta.input_scale +create_tensor: loading tensor blk.26.attn_qkv.scale +create_tensor: loading tensor blk.26.attn_gate.scale +create_tensor: loading tensor blk.26.ffn_gate.scale +create_tensor: loading tensor blk.26.ffn_down.scale +create_tensor: loading tensor blk.26.ffn_up.scale +create_tensor: loading tensor blk.26.ssm_out.scale +create_tensor: loading tensor blk.26.ssm_alpha.scale +create_tensor: loading tensor blk.26.ssm_beta.scale +create_tensor: loading tensor blk.26.attn_qkv.input_scale +create_tensor: loading tensor blk.26.attn_gate.input_scale +create_tensor: loading tensor blk.26.ffn_gate.input_scale +create_tensor: loading tensor blk.26.ffn_down.input_scale +create_tensor: loading tensor blk.26.ffn_up.input_scale +create_tensor: loading tensor blk.26.ssm_out.input_scale +create_tensor: loading tensor blk.26.ssm_alpha.input_scale +create_tensor: loading tensor blk.26.ssm_beta.input_scale +create_tensor: loading tensor blk.27.attn_q.scale +create_tensor: loading tensor blk.27.attn_k.scale +create_tensor: loading tensor blk.27.attn_v.scale +create_tensor: loading tensor blk.27.attn_output.scale +create_tensor: loading tensor blk.27.ffn_gate.scale +create_tensor: loading tensor blk.27.ffn_down.scale +create_tensor: loading tensor blk.27.ffn_up.scale +create_tensor: loading tensor blk.27.attn_q.input_scale +create_tensor: loading tensor blk.27.attn_k.input_scale +create_tensor: loading tensor blk.27.attn_v.input_scale +create_tensor: loading tensor blk.27.attn_output.input_scale +create_tensor: loading tensor blk.27.ffn_gate.input_scale +create_tensor: loading tensor blk.27.ffn_down.input_scale +create_tensor: loading tensor blk.27.ffn_up.input_scale +create_tensor: loading tensor blk.28.attn_qkv.scale +create_tensor: loading tensor blk.28.attn_gate.scale +create_tensor: loading tensor blk.28.ffn_gate.scale +create_tensor: loading tensor blk.28.ffn_down.scale +create_tensor: loading tensor blk.28.ffn_up.scale +create_tensor: loading tensor blk.28.ssm_out.scale +create_tensor: loading tensor blk.28.ssm_alpha.scale +create_tensor: loading tensor blk.28.ssm_beta.scale +create_tensor: loading tensor blk.28.attn_qkv.input_scale +create_tensor: loading tensor blk.28.attn_gate.input_scale +create_tensor: loading tensor blk.28.ffn_gate.input_scale +create_tensor: loading tensor blk.28.ffn_down.input_scale +create_tensor: loading tensor blk.28.ffn_up.input_scale +create_tensor: loading tensor blk.28.ssm_out.input_scale +create_tensor: loading tensor blk.28.ssm_alpha.input_scale +create_tensor: loading tensor blk.28.ssm_beta.input_scale +create_tensor: loading tensor blk.29.attn_qkv.scale +create_tensor: loading tensor blk.29.attn_gate.scale +create_tensor: loading tensor blk.29.ffn_gate.scale +create_tensor: loading tensor blk.29.ffn_down.scale +create_tensor: loading tensor blk.29.ffn_up.scale +create_tensor: loading tensor blk.29.ssm_out.scale +create_tensor: loading tensor blk.29.ssm_alpha.scale +create_tensor: loading tensor blk.29.ssm_beta.scale +create_tensor: loading tensor blk.29.attn_qkv.input_scale +create_tensor: loading tensor blk.29.attn_gate.input_scale +create_tensor: loading tensor blk.29.ffn_gate.input_scale +create_tensor: loading tensor blk.29.ffn_down.input_scale +create_tensor: loading tensor blk.29.ffn_up.input_scale +create_tensor: loading tensor blk.29.ssm_out.input_scale +create_tensor: loading tensor blk.29.ssm_alpha.input_scale +create_tensor: loading tensor blk.29.ssm_beta.input_scale +create_tensor: loading tensor blk.30.attn_qkv.scale +create_tensor: loading tensor blk.30.attn_gate.scale +create_tensor: loading tensor blk.30.ffn_gate.scale +create_tensor: loading tensor blk.30.ffn_down.scale +create_tensor: loading tensor blk.30.ffn_up.scale +create_tensor: loading tensor blk.30.ssm_out.scale +create_tensor: loading tensor blk.30.ssm_alpha.scale +create_tensor: loading tensor blk.30.ssm_beta.scale +create_tensor: loading tensor blk.30.attn_qkv.input_scale +create_tensor: loading tensor blk.30.attn_gate.input_scale +create_tensor: loading tensor blk.30.ffn_gate.input_scale +create_tensor: loading tensor blk.30.ffn_down.input_scale +create_tensor: loading tensor blk.30.ffn_up.input_scale +create_tensor: loading tensor blk.30.ssm_out.input_scale +create_tensor: loading tensor blk.30.ssm_alpha.input_scale +create_tensor: loading tensor blk.30.ssm_beta.input_scale +create_tensor: loading tensor blk.31.attn_q.scale +create_tensor: loading tensor blk.31.attn_k.scale +create_tensor: loading tensor blk.31.attn_v.scale +create_tensor: loading tensor blk.31.attn_output.scale +create_tensor: loading tensor blk.31.ffn_gate.scale +create_tensor: loading tensor blk.31.ffn_down.scale +create_tensor: loading tensor blk.31.ffn_up.scale +create_tensor: loading tensor blk.31.attn_q.input_scale +create_tensor: loading tensor blk.31.attn_k.input_scale +create_tensor: loading tensor blk.31.attn_v.input_scale +create_tensor: loading tensor blk.31.attn_output.input_scale +create_tensor: loading tensor blk.31.ffn_gate.input_scale +create_tensor: loading tensor blk.31.ffn_down.input_scale +create_tensor: loading tensor blk.31.ffn_up.input_scale +create_tensor: loading tensor blk.32.attn_qkv.scale +create_tensor: loading tensor blk.32.attn_gate.scale +create_tensor: loading tensor blk.32.ffn_gate.scale +create_tensor: loading tensor blk.32.ffn_down.scale +create_tensor: loading tensor blk.32.ffn_up.scale +create_tensor: loading tensor blk.32.ssm_out.scale +create_tensor: loading tensor blk.32.ssm_alpha.scale +create_tensor: loading tensor blk.32.ssm_beta.scale +create_tensor: loading tensor blk.32.attn_qkv.input_scale +create_tensor: loading tensor blk.32.attn_gate.input_scale +create_tensor: loading tensor blk.32.ffn_gate.input_scale +create_tensor: loading tensor blk.32.ffn_down.input_scale +create_tensor: loading tensor blk.32.ffn_up.input_scale +create_tensor: loading tensor blk.32.ssm_out.input_scale +create_tensor: loading tensor blk.32.ssm_alpha.input_scale +create_tensor: loading tensor blk.32.ssm_beta.input_scale +create_tensor: loading tensor blk.33.attn_qkv.scale +create_tensor: loading tensor blk.33.attn_gate.scale +create_tensor: loading tensor blk.33.ffn_gate.scale +create_tensor: loading tensor blk.33.ffn_down.scale +create_tensor: loading tensor blk.33.ffn_up.scale +create_tensor: loading tensor blk.33.ssm_out.scale +create_tensor: loading tensor blk.33.ssm_alpha.scale +create_tensor: loading tensor blk.33.ssm_beta.scale +create_tensor: loading tensor blk.33.attn_qkv.input_scale +create_tensor: loading tensor blk.33.attn_gate.input_scale +create_tensor: loading tensor blk.33.ffn_gate.input_scale +create_tensor: loading tensor blk.33.ffn_down.input_scale +create_tensor: loading tensor blk.33.ffn_up.input_scale +create_tensor: loading tensor blk.33.ssm_out.input_scale +create_tensor: loading tensor blk.33.ssm_alpha.input_scale +create_tensor: loading tensor blk.33.ssm_beta.input_scale +create_tensor: loading tensor blk.34.attn_qkv.scale +create_tensor: loading tensor blk.34.attn_gate.scale +create_tensor: loading tensor blk.34.ffn_gate.scale +create_tensor: loading tensor blk.34.ffn_down.scale +create_tensor: loading tensor blk.34.ffn_up.scale +create_tensor: loading tensor blk.34.ssm_out.scale +create_tensor: loading tensor blk.34.ssm_alpha.scale +create_tensor: loading tensor blk.34.ssm_beta.scale +create_tensor: loading tensor blk.34.attn_qkv.input_scale +create_tensor: loading tensor blk.34.attn_gate.input_scale +create_tensor: loading tensor blk.34.ffn_gate.input_scale +create_tensor: loading tensor blk.34.ffn_down.input_scale +create_tensor: loading tensor blk.34.ffn_up.input_scale +create_tensor: loading tensor blk.34.ssm_out.input_scale +create_tensor: loading tensor blk.34.ssm_alpha.input_scale +create_tensor: loading tensor blk.34.ssm_beta.input_scale +create_tensor: loading tensor blk.35.attn_q.scale +create_tensor: loading tensor blk.35.attn_k.scale +create_tensor: loading tensor blk.35.attn_v.scale +create_tensor: loading tensor blk.35.attn_output.scale +create_tensor: loading tensor blk.35.ffn_gate.scale +create_tensor: loading tensor blk.35.ffn_down.scale +create_tensor: loading tensor blk.35.ffn_up.scale +create_tensor: loading tensor blk.35.attn_q.input_scale +create_tensor: loading tensor blk.35.attn_k.input_scale +create_tensor: loading tensor blk.35.attn_v.input_scale +create_tensor: loading tensor blk.35.attn_output.input_scale +create_tensor: loading tensor blk.35.ffn_gate.input_scale +create_tensor: loading tensor blk.35.ffn_down.input_scale +create_tensor: loading tensor blk.35.ffn_up.input_scale +create_tensor: loading tensor blk.36.attn_qkv.scale +create_tensor: loading tensor blk.36.attn_gate.scale +create_tensor: loading tensor blk.36.ffn_gate.scale +create_tensor: loading tensor blk.36.ffn_down.scale +create_tensor: loading tensor blk.36.ffn_up.scale +create_tensor: loading tensor blk.36.ssm_out.scale +create_tensor: loading tensor blk.36.ssm_alpha.scale +create_tensor: loading tensor blk.36.ssm_beta.scale +create_tensor: loading tensor blk.36.attn_qkv.input_scale +create_tensor: loading tensor blk.36.attn_gate.input_scale +create_tensor: loading tensor blk.36.ffn_gate.input_scale +create_tensor: loading tensor blk.36.ffn_down.input_scale +create_tensor: loading tensor blk.36.ffn_up.input_scale +create_tensor: loading tensor blk.36.ssm_out.input_scale +create_tensor: loading tensor blk.36.ssm_alpha.input_scale +create_tensor: loading tensor blk.36.ssm_beta.input_scale +create_tensor: loading tensor blk.37.attn_qkv.scale +create_tensor: loading tensor blk.37.attn_gate.scale +create_tensor: loading tensor blk.37.ffn_gate.scale +create_tensor: loading tensor blk.37.ffn_down.scale +create_tensor: loading tensor blk.37.ffn_up.scale +create_tensor: loading tensor blk.37.ssm_out.scale +create_tensor: loading tensor blk.37.ssm_alpha.scale +create_tensor: loading tensor blk.37.ssm_beta.scale +create_tensor: loading tensor blk.37.attn_qkv.input_scale +create_tensor: loading tensor blk.37.attn_gate.input_scale +create_tensor: loading tensor blk.37.ffn_gate.input_scale +create_tensor: loading tensor blk.37.ffn_down.input_scale +create_tensor: loading tensor blk.37.ffn_up.input_scale +create_tensor: loading tensor blk.37.ssm_out.input_scale +create_tensor: loading tensor blk.37.ssm_alpha.input_scale +create_tensor: loading tensor blk.37.ssm_beta.input_scale +create_tensor: loading tensor blk.38.attn_qkv.scale +create_tensor: loading tensor blk.38.attn_gate.scale +create_tensor: loading tensor blk.38.ffn_gate.scale +create_tensor: loading tensor blk.38.ffn_down.scale +create_tensor: loading tensor blk.38.ffn_up.scale +create_tensor: loading tensor blk.38.ssm_out.scale +create_tensor: loading tensor blk.38.ssm_alpha.scale +create_tensor: loading tensor blk.38.ssm_beta.scale +create_tensor: loading tensor blk.38.attn_qkv.input_scale +create_tensor: loading tensor blk.38.attn_gate.input_scale +create_tensor: loading tensor blk.38.ffn_gate.input_scale +create_tensor: loading tensor blk.38.ffn_down.input_scale +create_tensor: loading tensor blk.38.ffn_up.input_scale +create_tensor: loading tensor blk.38.ssm_out.input_scale +create_tensor: loading tensor blk.38.ssm_alpha.input_scale +create_tensor: loading tensor blk.38.ssm_beta.input_scale +create_tensor: loading tensor blk.39.attn_q.scale +create_tensor: loading tensor blk.39.attn_k.scale +create_tensor: loading tensor blk.39.attn_v.scale +create_tensor: loading tensor blk.39.attn_output.scale +create_tensor: loading tensor blk.39.ffn_gate.scale +create_tensor: loading tensor blk.39.ffn_down.scale +create_tensor: loading tensor blk.39.ffn_up.scale +create_tensor: loading tensor blk.39.attn_q.input_scale +create_tensor: loading tensor blk.39.attn_k.input_scale +create_tensor: loading tensor blk.39.attn_v.input_scale +create_tensor: loading tensor blk.39.attn_output.input_scale +create_tensor: loading tensor blk.39.ffn_gate.input_scale +create_tensor: loading tensor blk.39.ffn_down.input_scale +create_tensor: loading tensor blk.39.ffn_up.input_scale +create_tensor: loading tensor blk.40.attn_qkv.scale +create_tensor: loading tensor blk.40.attn_gate.scale +create_tensor: loading tensor blk.40.ffn_gate.scale +create_tensor: loading tensor blk.40.ffn_down.scale +create_tensor: loading tensor blk.40.ffn_up.scale +create_tensor: loading tensor blk.40.ssm_out.scale +create_tensor: loading tensor blk.40.ssm_alpha.scale +create_tensor: loading tensor blk.40.ssm_beta.scale +create_tensor: loading tensor blk.40.attn_qkv.input_scale +create_tensor: loading tensor blk.40.attn_gate.input_scale +create_tensor: loading tensor blk.40.ffn_gate.input_scale +create_tensor: loading tensor blk.40.ffn_down.input_scale +create_tensor: loading tensor blk.40.ffn_up.input_scale +create_tensor: loading tensor blk.40.ssm_out.input_scale +create_tensor: loading tensor blk.40.ssm_alpha.input_scale +create_tensor: loading tensor blk.40.ssm_beta.input_scale +create_tensor: loading tensor blk.41.attn_qkv.scale +create_tensor: loading tensor blk.41.attn_gate.scale +create_tensor: loading tensor blk.41.ffn_gate.scale +create_tensor: loading tensor blk.41.ffn_down.scale +create_tensor: loading tensor blk.41.ffn_up.scale +create_tensor: loading tensor blk.41.ssm_out.scale +create_tensor: loading tensor blk.41.ssm_alpha.scale +create_tensor: loading tensor blk.41.ssm_beta.scale +create_tensor: loading tensor blk.41.attn_qkv.input_scale +create_tensor: loading tensor blk.41.attn_gate.input_scale +create_tensor: loading tensor blk.41.ffn_gate.input_scale +create_tensor: loading tensor blk.41.ffn_down.input_scale +create_tensor: loading tensor blk.41.ffn_up.input_scale +create_tensor: loading tensor blk.41.ssm_out.input_scale +create_tensor: loading tensor blk.41.ssm_alpha.input_scale +create_tensor: loading tensor blk.41.ssm_beta.input_scale +create_tensor: loading tensor blk.42.attn_qkv.scale +create_tensor: loading tensor blk.42.attn_gate.scale +create_tensor: loading tensor blk.42.ffn_gate.scale +create_tensor: loading tensor blk.42.ffn_down.scale +create_tensor: loading tensor blk.42.ffn_up.scale +create_tensor: loading tensor blk.42.ssm_out.scale +create_tensor: loading tensor blk.42.ssm_alpha.scale +create_tensor: loading tensor blk.42.ssm_beta.scale +create_tensor: loading tensor blk.42.attn_qkv.input_scale +create_tensor: loading tensor blk.42.attn_gate.input_scale +create_tensor: loading tensor blk.42.ffn_gate.input_scale +create_tensor: loading tensor blk.42.ffn_down.input_scale +create_tensor: loading tensor blk.42.ffn_up.input_scale +create_tensor: loading tensor blk.42.ssm_out.input_scale +create_tensor: loading tensor blk.42.ssm_alpha.input_scale +create_tensor: loading tensor blk.42.ssm_beta.input_scale +create_tensor: loading tensor blk.43.attn_q.scale +create_tensor: loading tensor blk.43.attn_k.scale +create_tensor: loading tensor blk.43.attn_v.scale +create_tensor: loading tensor blk.43.attn_output.scale +create_tensor: loading tensor blk.43.ffn_gate.scale +create_tensor: loading tensor blk.43.ffn_down.scale +create_tensor: loading tensor blk.43.ffn_up.scale +create_tensor: loading tensor blk.43.attn_q.input_scale +create_tensor: loading tensor blk.43.attn_k.input_scale +create_tensor: loading tensor blk.43.attn_v.input_scale +create_tensor: loading tensor blk.43.attn_output.input_scale +create_tensor: loading tensor blk.43.ffn_gate.input_scale +create_tensor: loading tensor blk.43.ffn_down.input_scale +create_tensor: loading tensor blk.43.ffn_up.input_scale +create_tensor: loading tensor blk.44.attn_qkv.scale +create_tensor: loading tensor blk.44.attn_gate.scale +create_tensor: loading tensor blk.44.ffn_gate.scale +create_tensor: loading tensor blk.44.ffn_down.scale +create_tensor: loading tensor blk.44.ffn_up.scale +create_tensor: loading tensor blk.44.ssm_out.scale +create_tensor: loading tensor blk.44.ssm_alpha.scale +create_tensor: loading tensor blk.44.ssm_beta.scale +create_tensor: loading tensor blk.44.attn_qkv.input_scale +create_tensor: loading tensor blk.44.attn_gate.input_scale +create_tensor: loading tensor blk.44.ffn_gate.input_scale +create_tensor: loading tensor blk.44.ffn_down.input_scale +create_tensor: loading tensor blk.44.ffn_up.input_scale +create_tensor: loading tensor blk.44.ssm_out.input_scale +create_tensor: loading tensor blk.44.ssm_alpha.input_scale +create_tensor: loading tensor blk.44.ssm_beta.input_scale +create_tensor: loading tensor blk.45.attn_qkv.scale +create_tensor: loading tensor blk.45.attn_gate.scale +create_tensor: loading tensor blk.45.ffn_gate.scale +create_tensor: loading tensor blk.45.ffn_down.scale +create_tensor: loading tensor blk.45.ffn_up.scale +create_tensor: loading tensor blk.45.ssm_out.scale +create_tensor: loading tensor blk.45.ssm_alpha.scale +create_tensor: loading tensor blk.45.ssm_beta.scale +create_tensor: loading tensor blk.45.attn_qkv.input_scale +create_tensor: loading tensor blk.45.attn_gate.input_scale +create_tensor: loading tensor blk.45.ffn_gate.input_scale +create_tensor: loading tensor blk.45.ffn_down.input_scale +create_tensor: loading tensor blk.45.ffn_up.input_scale +create_tensor: loading tensor blk.45.ssm_out.input_scale +create_tensor: loading tensor blk.45.ssm_alpha.input_scale +create_tensor: loading tensor blk.45.ssm_beta.input_scale +create_tensor: loading tensor blk.46.attn_qkv.scale +create_tensor: loading tensor blk.46.attn_gate.scale +create_tensor: loading tensor blk.46.ffn_gate.scale +create_tensor: loading tensor blk.46.ffn_down.scale +create_tensor: loading tensor blk.46.ffn_up.scale +create_tensor: loading tensor blk.46.ssm_out.scale +create_tensor: loading tensor blk.46.ssm_alpha.scale +create_tensor: loading tensor blk.46.ssm_beta.scale +create_tensor: loading tensor blk.46.attn_qkv.input_scale +create_tensor: loading tensor blk.46.attn_gate.input_scale +create_tensor: loading tensor blk.46.ffn_gate.input_scale +create_tensor: loading tensor blk.46.ffn_down.input_scale +create_tensor: loading tensor blk.46.ffn_up.input_scale +create_tensor: loading tensor blk.46.ssm_out.input_scale +create_tensor: loading tensor blk.46.ssm_alpha.input_scale +create_tensor: loading tensor blk.46.ssm_beta.input_scale +create_tensor: loading tensor blk.47.attn_q.scale +create_tensor: loading tensor blk.47.attn_k.scale +create_tensor: loading tensor blk.47.attn_v.scale +create_tensor: loading tensor blk.47.attn_output.scale +create_tensor: loading tensor blk.47.ffn_gate.scale +create_tensor: loading tensor blk.47.ffn_down.scale +create_tensor: loading tensor blk.47.ffn_up.scale +create_tensor: loading tensor blk.47.attn_q.input_scale +create_tensor: loading tensor blk.47.attn_k.input_scale +create_tensor: loading tensor blk.47.attn_v.input_scale +create_tensor: loading tensor blk.47.attn_output.input_scale +create_tensor: loading tensor blk.47.ffn_gate.input_scale +create_tensor: loading tensor blk.47.ffn_down.input_scale +create_tensor: loading tensor blk.47.ffn_up.input_scale +create_tensor: loading tensor blk.48.attn_qkv.scale +create_tensor: loading tensor blk.48.attn_gate.scale +create_tensor: loading tensor blk.48.ffn_gate.scale +create_tensor: loading tensor blk.48.ffn_down.scale +create_tensor: loading tensor blk.48.ffn_up.scale +create_tensor: loading tensor blk.48.ssm_out.scale +create_tensor: loading tensor blk.48.ssm_alpha.scale +create_tensor: loading tensor blk.48.ssm_beta.scale +create_tensor: loading tensor blk.48.attn_qkv.input_scale +create_tensor: loading tensor blk.48.attn_gate.input_scale +create_tensor: loading tensor blk.48.ffn_gate.input_scale +create_tensor: loading tensor blk.48.ffn_down.input_scale +create_tensor: loading tensor blk.48.ffn_up.input_scale +create_tensor: loading tensor blk.48.ssm_out.input_scale +create_tensor: loading tensor blk.48.ssm_alpha.input_scale +create_tensor: loading tensor blk.48.ssm_beta.input_scale +create_tensor: loading tensor blk.49.attn_qkv.scale +create_tensor: loading tensor blk.49.attn_gate.scale +create_tensor: loading tensor blk.49.ffn_gate.scale +create_tensor: loading tensor blk.49.ffn_down.scale +create_tensor: loading tensor blk.49.ffn_up.scale +create_tensor: loading tensor blk.49.ssm_out.scale +create_tensor: loading tensor blk.49.ssm_alpha.scale +create_tensor: loading tensor blk.49.ssm_beta.scale +create_tensor: loading tensor blk.49.attn_qkv.input_scale +create_tensor: loading tensor blk.49.attn_gate.input_scale +create_tensor: loading tensor blk.49.ffn_gate.input_scale +create_tensor: loading tensor blk.49.ffn_down.input_scale +create_tensor: loading tensor blk.49.ffn_up.input_scale +create_tensor: loading tensor blk.49.ssm_out.input_scale +create_tensor: loading tensor blk.49.ssm_alpha.input_scale +create_tensor: loading tensor blk.49.ssm_beta.input_scale +create_tensor: loading tensor blk.50.attn_qkv.scale +create_tensor: loading tensor blk.50.attn_gate.scale +create_tensor: loading tensor blk.50.ffn_gate.scale +create_tensor: loading tensor blk.50.ffn_down.scale +create_tensor: loading tensor blk.50.ffn_up.scale +create_tensor: loading tensor blk.50.ssm_out.scale +create_tensor: loading tensor blk.50.ssm_alpha.scale +create_tensor: loading tensor blk.50.ssm_beta.scale +create_tensor: loading tensor blk.50.attn_qkv.input_scale +create_tensor: loading tensor blk.50.attn_gate.input_scale +create_tensor: loading tensor blk.50.ffn_gate.input_scale +create_tensor: loading tensor blk.50.ffn_down.input_scale +create_tensor: loading tensor blk.50.ffn_up.input_scale +create_tensor: loading tensor blk.50.ssm_out.input_scale +create_tensor: loading tensor blk.50.ssm_alpha.input_scale +create_tensor: loading tensor blk.50.ssm_beta.input_scale +create_tensor: loading tensor blk.51.attn_q.scale +create_tensor: loading tensor blk.51.attn_k.scale +create_tensor: loading tensor blk.51.attn_v.scale +create_tensor: loading tensor blk.51.attn_output.scale +create_tensor: loading tensor blk.51.ffn_gate.scale +create_tensor: loading tensor blk.51.ffn_down.scale +create_tensor: loading tensor blk.51.ffn_up.scale +create_tensor: loading tensor blk.51.attn_q.input_scale +create_tensor: loading tensor blk.51.attn_k.input_scale +create_tensor: loading tensor blk.51.attn_v.input_scale +create_tensor: loading tensor blk.51.attn_output.input_scale +create_tensor: loading tensor blk.51.ffn_gate.input_scale +create_tensor: loading tensor blk.51.ffn_down.input_scale +create_tensor: loading tensor blk.51.ffn_up.input_scale +create_tensor: loading tensor blk.52.attn_qkv.scale +create_tensor: loading tensor blk.52.attn_gate.scale +create_tensor: loading tensor blk.52.ffn_gate.scale +create_tensor: loading tensor blk.52.ffn_down.scale +create_tensor: loading tensor blk.52.ffn_up.scale +create_tensor: loading tensor blk.52.ssm_out.scale +create_tensor: loading tensor blk.52.ssm_alpha.scale +create_tensor: loading tensor blk.52.ssm_beta.scale +create_tensor: loading tensor blk.52.attn_qkv.input_scale +create_tensor: loading tensor blk.52.attn_gate.input_scale +create_tensor: loading tensor blk.52.ffn_gate.input_scale +create_tensor: loading tensor blk.52.ffn_down.input_scale +create_tensor: loading tensor blk.52.ffn_up.input_scale +create_tensor: loading tensor blk.52.ssm_out.input_scale +create_tensor: loading tensor blk.52.ssm_alpha.input_scale +create_tensor: loading tensor blk.52.ssm_beta.input_scale +create_tensor: loading tensor blk.53.attn_qkv.scale +create_tensor: loading tensor blk.53.attn_gate.scale +create_tensor: loading tensor blk.53.ffn_gate.scale +create_tensor: loading tensor blk.53.ffn_down.scale +create_tensor: loading tensor blk.53.ffn_up.scale +create_tensor: loading tensor blk.53.ssm_out.scale +create_tensor: loading tensor blk.53.ssm_alpha.scale +create_tensor: loading tensor blk.53.ssm_beta.scale +create_tensor: loading tensor blk.53.attn_qkv.input_scale +create_tensor: loading tensor blk.53.attn_gate.input_scale +create_tensor: loading tensor blk.53.ffn_gate.input_scale +create_tensor: loading tensor blk.53.ffn_down.input_scale +create_tensor: loading tensor blk.53.ffn_up.input_scale +create_tensor: loading tensor blk.53.ssm_out.input_scale +create_tensor: loading tensor blk.53.ssm_alpha.input_scale +create_tensor: loading tensor blk.53.ssm_beta.input_scale +create_tensor: loading tensor blk.54.attn_qkv.scale +create_tensor: loading tensor blk.54.attn_gate.scale +create_tensor: loading tensor blk.54.ffn_gate.scale +create_tensor: loading tensor blk.54.ffn_down.scale +create_tensor: loading tensor blk.54.ffn_up.scale +create_tensor: loading tensor blk.54.ssm_out.scale +create_tensor: loading tensor blk.54.ssm_alpha.scale +create_tensor: loading tensor blk.54.ssm_beta.scale +create_tensor: loading tensor blk.54.attn_qkv.input_scale +create_tensor: loading tensor blk.54.attn_gate.input_scale +create_tensor: loading tensor blk.54.ffn_gate.input_scale +create_tensor: loading tensor blk.54.ffn_down.input_scale +create_tensor: loading tensor blk.54.ffn_up.input_scale +create_tensor: loading tensor blk.54.ssm_out.input_scale +create_tensor: loading tensor blk.54.ssm_alpha.input_scale +create_tensor: loading tensor blk.54.ssm_beta.input_scale +create_tensor: loading tensor blk.55.attn_q.scale +create_tensor: loading tensor blk.55.attn_k.scale +create_tensor: loading tensor blk.55.attn_v.scale +create_tensor: loading tensor blk.55.attn_output.scale +create_tensor: loading tensor blk.55.ffn_gate.scale +create_tensor: loading tensor blk.55.ffn_down.scale +create_tensor: loading tensor blk.55.ffn_up.scale +create_tensor: loading tensor blk.55.attn_q.input_scale +create_tensor: loading tensor blk.55.attn_k.input_scale +create_tensor: loading tensor blk.55.attn_v.input_scale +create_tensor: loading tensor blk.55.attn_output.input_scale +create_tensor: loading tensor blk.55.ffn_gate.input_scale +create_tensor: loading tensor blk.55.ffn_down.input_scale +create_tensor: loading tensor blk.55.ffn_up.input_scale +create_tensor: loading tensor blk.56.attn_qkv.scale +create_tensor: loading tensor blk.56.attn_gate.scale +create_tensor: loading tensor blk.56.ffn_gate.scale +create_tensor: loading tensor blk.56.ffn_down.scale +create_tensor: loading tensor blk.56.ffn_up.scale +create_tensor: loading tensor blk.56.ssm_out.scale +create_tensor: loading tensor blk.56.ssm_alpha.scale +create_tensor: loading tensor blk.56.ssm_beta.scale +create_tensor: loading tensor blk.56.attn_qkv.input_scale +create_tensor: loading tensor blk.56.attn_gate.input_scale +create_tensor: loading tensor blk.56.ffn_gate.input_scale +create_tensor: loading tensor blk.56.ffn_down.input_scale +create_tensor: loading tensor blk.56.ffn_up.input_scale +create_tensor: loading tensor blk.56.ssm_out.input_scale +create_tensor: loading tensor blk.56.ssm_alpha.input_scale +create_tensor: loading tensor blk.56.ssm_beta.input_scale +create_tensor: loading tensor blk.57.attn_qkv.scale +create_tensor: loading tensor blk.57.attn_gate.scale +create_tensor: loading tensor blk.57.ffn_gate.scale +create_tensor: loading tensor blk.57.ffn_down.scale +create_tensor: loading tensor blk.57.ffn_up.scale +create_tensor: loading tensor blk.57.ssm_out.scale +create_tensor: loading tensor blk.57.ssm_alpha.scale +create_tensor: loading tensor blk.57.ssm_beta.scale +create_tensor: loading tensor blk.57.attn_qkv.input_scale +create_tensor: loading tensor blk.57.attn_gate.input_scale +create_tensor: loading tensor blk.57.ffn_gate.input_scale +create_tensor: loading tensor blk.57.ffn_down.input_scale +create_tensor: loading tensor blk.57.ffn_up.input_scale +create_tensor: loading tensor blk.57.ssm_out.input_scale +create_tensor: loading tensor blk.57.ssm_alpha.input_scale +create_tensor: loading tensor blk.57.ssm_beta.input_scale +create_tensor: loading tensor blk.58.attn_qkv.scale +create_tensor: loading tensor blk.58.attn_gate.scale +create_tensor: loading tensor blk.58.ffn_gate.scale +create_tensor: loading tensor blk.58.ffn_down.scale +create_tensor: loading tensor blk.58.ffn_up.scale +create_tensor: loading tensor blk.58.ssm_out.scale +create_tensor: loading tensor blk.58.ssm_alpha.scale +create_tensor: loading tensor blk.58.ssm_beta.scale +create_tensor: loading tensor blk.58.attn_qkv.input_scale +create_tensor: loading tensor blk.58.attn_gate.input_scale +create_tensor: loading tensor blk.58.ffn_gate.input_scale +create_tensor: loading tensor blk.58.ffn_down.input_scale +create_tensor: loading tensor blk.58.ffn_up.input_scale +create_tensor: loading tensor blk.58.ssm_out.input_scale +create_tensor: loading tensor blk.58.ssm_alpha.input_scale +create_tensor: loading tensor blk.58.ssm_beta.input_scale +create_tensor: loading tensor blk.59.attn_q.scale +create_tensor: loading tensor blk.59.attn_k.scale +create_tensor: loading tensor blk.59.attn_v.scale +create_tensor: loading tensor blk.59.attn_output.scale +create_tensor: loading tensor blk.59.ffn_gate.scale +create_tensor: loading tensor blk.59.ffn_down.scale +create_tensor: loading tensor blk.59.ffn_up.scale +create_tensor: loading tensor blk.59.attn_q.input_scale +create_tensor: loading tensor blk.59.attn_k.input_scale +create_tensor: loading tensor blk.59.attn_v.input_scale +create_tensor: loading tensor blk.59.attn_output.input_scale +create_tensor: loading tensor blk.59.ffn_gate.input_scale +create_tensor: loading tensor blk.59.ffn_down.input_scale +create_tensor: loading tensor blk.59.ffn_up.input_scale +create_tensor: loading tensor blk.60.attn_qkv.scale +create_tensor: loading tensor blk.60.attn_gate.scale +create_tensor: loading tensor blk.60.ffn_gate.scale +create_tensor: loading tensor blk.60.ffn_down.scale +create_tensor: loading tensor blk.60.ffn_up.scale +create_tensor: loading tensor blk.60.ssm_out.scale +create_tensor: loading tensor blk.60.ssm_alpha.scale +create_tensor: loading tensor blk.60.ssm_beta.scale +create_tensor: loading tensor blk.60.attn_qkv.input_scale +create_tensor: loading tensor blk.60.attn_gate.input_scale +create_tensor: loading tensor blk.60.ffn_gate.input_scale +create_tensor: loading tensor blk.60.ffn_down.input_scale +create_tensor: loading tensor blk.60.ffn_up.input_scale +create_tensor: loading tensor blk.60.ssm_out.input_scale +create_tensor: loading tensor blk.60.ssm_alpha.input_scale +create_tensor: loading tensor blk.60.ssm_beta.input_scale +create_tensor: loading tensor blk.61.attn_qkv.scale +create_tensor: loading tensor blk.61.attn_gate.scale +create_tensor: loading tensor blk.61.ffn_gate.scale +create_tensor: loading tensor blk.61.ffn_down.scale +create_tensor: loading tensor blk.61.ffn_up.scale +create_tensor: loading tensor blk.61.ssm_out.scale +create_tensor: loading tensor blk.61.ssm_alpha.scale +create_tensor: loading tensor blk.61.ssm_beta.scale +create_tensor: loading tensor blk.61.attn_qkv.input_scale +create_tensor: loading tensor blk.61.attn_gate.input_scale +create_tensor: loading tensor blk.61.ffn_gate.input_scale +create_tensor: loading tensor blk.61.ffn_down.input_scale +create_tensor: loading tensor blk.61.ffn_up.input_scale +create_tensor: loading tensor blk.61.ssm_out.input_scale +create_tensor: loading tensor blk.61.ssm_alpha.input_scale +create_tensor: loading tensor blk.61.ssm_beta.input_scale +create_tensor: loading tensor blk.62.attn_qkv.scale +create_tensor: loading tensor blk.62.attn_gate.scale +create_tensor: loading tensor blk.62.ffn_gate.scale +create_tensor: loading tensor blk.62.ffn_down.scale +create_tensor: loading tensor blk.62.ffn_up.scale +create_tensor: loading tensor blk.62.ssm_out.scale +create_tensor: loading tensor blk.62.ssm_alpha.scale +create_tensor: loading tensor blk.62.ssm_beta.scale +create_tensor: loading tensor blk.62.attn_qkv.input_scale +create_tensor: loading tensor blk.62.attn_gate.input_scale +create_tensor: loading tensor blk.62.ffn_gate.input_scale +create_tensor: loading tensor blk.62.ffn_down.input_scale +create_tensor: loading tensor blk.62.ffn_up.input_scale +create_tensor: loading tensor blk.62.ssm_out.input_scale +create_tensor: loading tensor blk.62.ssm_alpha.input_scale +create_tensor: loading tensor blk.62.ssm_beta.input_scale +create_tensor: loading tensor blk.63.attn_q.scale +create_tensor: loading tensor blk.63.attn_k.scale +create_tensor: loading tensor blk.63.attn_v.scale +create_tensor: loading tensor blk.63.attn_output.scale +create_tensor: loading tensor blk.63.ffn_gate.scale +create_tensor: loading tensor blk.63.ffn_down.scale +create_tensor: loading tensor blk.63.ffn_up.scale +create_tensor: loading tensor blk.63.attn_q.input_scale +create_tensor: loading tensor blk.63.attn_k.input_scale +create_tensor: loading tensor blk.63.attn_v.input_scale +create_tensor: loading tensor blk.63.attn_output.input_scale +create_tensor: loading tensor blk.63.ffn_gate.input_scale +create_tensor: loading tensor blk.63.ffn_down.input_scale +create_tensor: loading tensor blk.63.ffn_up.input_scale +done_getting_tensors: tensor 'token_embd.weight' (q4_K) (and 0 others) cannot be used with preferred buffer type CUDA_Host, using CPU instead +load_tensors: offloading output layer to GPU +load_tensors: offloading 64 repeating layers to GPU +load_tensors: offloaded 66/66 layers to GPU +load_tensors: CPU_Mapped model buffer size = 682.03 MiB +load_tensors: CUDA0 model buffer size = 15088.32 MiB +............................................................................................ +llama_context: constructing llama_context +llama_context: n_seq_max = 1 +llama_context: n_ctx = 8192 +llama_context: n_ctx_seq = 8192 +llama_context: n_batch = 512 +llama_context: n_ubatch = 512 +llama_context: causal_attn = 1 +llama_context: flash_attn = disabled +llama_context: kv_unified = false +llama_context: freq_base = 10000000.0 +llama_context: freq_scale = 1 +llama_context: n_rs_seq = 0 +llama_context: n_outputs_max = 512 +llama_context: n_outputs_max_per_seq = 1 +llama_context: n_ctx_seq (8192) < n_ctx_train (262144) -- the full capacity of the model will not be utilized +set_abort_callback: call +llama_context: CUDA_Host output buffer size = 0.95 MiB +llama_kv_cache: layer 0: filtered +llama_kv_cache: layer 1: filtered +llama_kv_cache: layer 2: filtered +llama_kv_cache: layer 3: dev = CUDA0 +llama_kv_cache: layer 4: filtered +llama_kv_cache: layer 5: filtered +llama_kv_cache: layer 6: filtered +llama_kv_cache: layer 7: dev = CUDA0 +llama_kv_cache: layer 8: filtered +llama_kv_cache: layer 9: filtered +llama_kv_cache: layer 10: filtered +llama_kv_cache: layer 11: dev = CUDA0 +llama_kv_cache: layer 12: filtered +llama_kv_cache: layer 13: filtered +llama_kv_cache: layer 14: filtered +llama_kv_cache: layer 15: dev = CUDA0 +llama_kv_cache: layer 16: filtered +llama_kv_cache: layer 17: filtered +llama_kv_cache: layer 18: filtered +llama_kv_cache: layer 19: dev = CUDA0 +llama_kv_cache: layer 20: filtered +llama_kv_cache: layer 21: filtered +llama_kv_cache: layer 22: filtered +llama_kv_cache: layer 23: dev = CUDA0 +llama_kv_cache: layer 24: filtered +llama_kv_cache: layer 25: filtered +llama_kv_cache: layer 26: filtered +llama_kv_cache: layer 27: dev = CUDA0 +llama_kv_cache: layer 28: filtered +llama_kv_cache: layer 29: filtered +llama_kv_cache: layer 30: filtered +llama_kv_cache: layer 31: dev = CUDA0 +llama_kv_cache: layer 32: filtered +llama_kv_cache: layer 33: filtered +llama_kv_cache: layer 34: filtered +llama_kv_cache: layer 35: dev = CUDA0 +llama_kv_cache: layer 36: filtered +llama_kv_cache: layer 37: filtered +llama_kv_cache: layer 38: filtered +llama_kv_cache: layer 39: dev = CUDA0 +llama_kv_cache: layer 40: filtered +llama_kv_cache: layer 41: filtered +llama_kv_cache: layer 42: filtered +llama_kv_cache: layer 43: dev = CUDA0 +llama_kv_cache: layer 44: filtered +llama_kv_cache: layer 45: filtered +llama_kv_cache: layer 46: filtered +llama_kv_cache: layer 47: dev = CUDA0 +llama_kv_cache: layer 48: filtered +llama_kv_cache: layer 49: filtered +llama_kv_cache: layer 50: filtered +llama_kv_cache: layer 51: dev = CUDA0 +llama_kv_cache: layer 52: filtered +llama_kv_cache: layer 53: filtered +llama_kv_cache: layer 54: filtered +llama_kv_cache: layer 55: dev = CUDA0 +llama_kv_cache: layer 56: filtered +llama_kv_cache: layer 57: filtered +llama_kv_cache: layer 58: filtered +llama_kv_cache: layer 59: dev = CUDA0 +llama_kv_cache: layer 60: filtered +llama_kv_cache: layer 61: filtered +llama_kv_cache: layer 62: filtered +llama_kv_cache: layer 63: dev = CUDA0 +llama_kv_cache: layer 64: filtered +llama_kv_cache: CUDA0 KV buffer size = 512.00 MiB +llama_kv_cache: size = 512.00 MiB ( 8192 cells, 16 layers, 1/1 seqs), K (f16): 256.00 MiB, V (f16): 256.00 MiB +llama_kv_cache: attn_rot_k = 0, n_embd_head_k_all = 256 +llama_kv_cache: attn_rot_v = 0, n_embd_head_k_all = 256 +llama_memory_recurrent, layer 0: dev = CUDA0 +llama_memory_recurrent, layer 1: dev = CUDA0 +llama_memory_recurrent, layer 2: dev = CUDA0 +llama_memory_recurrent: layer 3: skipped +llama_memory_recurrent, layer 4: dev = CUDA0 +llama_memory_recurrent, layer 5: dev = CUDA0 +llama_memory_recurrent, layer 6: dev = CUDA0 +llama_memory_recurrent: layer 7: skipped +llama_memory_recurrent, layer 8: dev = CUDA0 +llama_memory_recurrent, layer 9: dev = CUDA0 +llama_memory_recurrent, layer 10: dev = CUDA0 +llama_memory_recurrent: layer 11: skipped +llama_memory_recurrent, layer 12: dev = CUDA0 +llama_memory_recurrent, layer 13: dev = CUDA0 +llama_memory_recurrent, layer 14: dev = CUDA0 +llama_memory_recurrent: layer 15: skipped +llama_memory_recurrent, layer 16: dev = CUDA0 +llama_memory_recurrent, layer 17: dev = CUDA0 +llama_memory_recurrent, layer 18: dev = CUDA0 +llama_memory_recurrent: layer 19: skipped +llama_memory_recurrent, layer 20: dev = CUDA0 +llama_memory_recurrent, layer 21: dev = CUDA0 +llama_memory_recurrent, layer 22: dev = CUDA0 +llama_memory_recurrent: layer 23: skipped +llama_memory_recurrent, layer 24: dev = CUDA0 +llama_memory_recurrent, layer 25: dev = CUDA0 +llama_memory_recurrent, layer 26: dev = CUDA0 +llama_memory_recurrent: layer 27: skipped +llama_memory_recurrent, layer 28: dev = CUDA0 +llama_memory_recurrent, layer 29: dev = CUDA0 +llama_memory_recurrent, layer 30: dev = CUDA0 +llama_memory_recurrent: layer 31: skipped +llama_memory_recurrent, layer 32: dev = CUDA0 +llama_memory_recurrent, layer 33: dev = CUDA0 +llama_memory_recurrent, layer 34: dev = CUDA0 +llama_memory_recurrent: layer 35: skipped +llama_memory_recurrent, layer 36: dev = CUDA0 +llama_memory_recurrent, layer 37: dev = CUDA0 +llama_memory_recurrent, layer 38: dev = CUDA0 +llama_memory_recurrent: layer 39: skipped +llama_memory_recurrent, layer 40: dev = CUDA0 +llama_memory_recurrent, layer 41: dev = CUDA0 +llama_memory_recurrent, layer 42: dev = CUDA0 +llama_memory_recurrent: layer 43: skipped +llama_memory_recurrent, layer 44: dev = CUDA0 +llama_memory_recurrent, layer 45: dev = CUDA0 +llama_memory_recurrent, layer 46: dev = CUDA0 +llama_memory_recurrent: layer 47: skipped +llama_memory_recurrent, layer 48: dev = CUDA0 +llama_memory_recurrent, layer 49: dev = CUDA0 +llama_memory_recurrent, layer 50: dev = CUDA0 +llama_memory_recurrent: layer 51: skipped +llama_memory_recurrent, layer 52: dev = CUDA0 +llama_memory_recurrent, layer 53: dev = CUDA0 +llama_memory_recurrent, layer 54: dev = CUDA0 +llama_memory_recurrent: layer 55: skipped +llama_memory_recurrent, layer 56: dev = CUDA0 +llama_memory_recurrent, layer 57: dev = CUDA0 +llama_memory_recurrent, layer 58: dev = CUDA0 +llama_memory_recurrent: layer 59: skipped +llama_memory_recurrent, layer 60: dev = CUDA0 +llama_memory_recurrent, layer 61: dev = CUDA0 +llama_memory_recurrent, layer 62: dev = CUDA0 +llama_memory_recurrent: layer 63: skipped +llama_memory_recurrent: CUDA0 RS buffer size = 149.62 MiB +llama_memory_recurrent: size = 149.62 MiB ( 1 cells, 64 layers, 1 seqs 0 rs_seq), R (f32): 5.62 MiB, S (f32): 144.00 MiB, P (f32): 0.00 MiB +llama_context: enumerating backends +llama_context: backend_ptrs.size() = 2 +sched_reserve: reserving ... +sched_reserve: max_nodes = 27232 +sched_reserve: reserving full memory module +sched_reserve: worst-case: n_tokens = 512, n_seqs = 1, n_outputs = 1 +resolve_fused_ops: resolving fused DeepSeek V4 HC support: +graph_reserve: reserving a graph for ubatch with n_tokens = 1, n_seqs = 1, n_outputs = 1 +llama_graph_n_input_tensors: input tensor ' out_ids' [i32, ne = { 1, 1, 1, 1 }] is used by node 'result_norm' (GET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-3' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-7' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-11' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-15' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-19' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-23' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-27' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-31' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-35' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-39' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-43' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-47' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-51' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-55' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-59' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-63' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l3 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l7 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l11 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l15 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l19 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l23 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l27 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l31 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l35 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l39 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l43 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l47 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l51 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l55 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l59 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l63 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l3 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l7 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l11 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l15 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l19 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l23 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l27 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l31 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l35 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l39 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l43 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l47 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l51 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l55 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l59 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l63 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' inp_tokens' [i32, ne = { 1, 1, 1, 1 }] is used by node 'model.input_embed' (GET_ROWS) +resolve_fused_ops: fused DeepSeek V4 HC pre enabled +graph_reserve: reserving a graph for ubatch with n_tokens = 1, n_seqs = 1, n_outputs = 1 +llama_graph_n_input_tensors: input tensor ' out_ids' [i32, ne = { 1, 1, 1, 1 }] is used by node 'result_norm' (GET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-3' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-7' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-11' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-15' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-19' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-23' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-27' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-31' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-35' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-39' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-43' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-47' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-51' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-55' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-59' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-63' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l3 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l7 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l11 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l15 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l19 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l23 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l27 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l31 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l35 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l39 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l43 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l47 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l51 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l55 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l59 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l63 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l3 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l7 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l11 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l15 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l19 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l23 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l27 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l31 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l35 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l39 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l43 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l47 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l51 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l55 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l59 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l63 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' inp_tokens' [i32, ne = { 1, 1, 1, 1 }] is used by node 'model.input_embed' (GET_ROWS) +resolve_fused_ops: fused DeepSeek V4 HC comb enabled +graph_reserve: reserving a graph for ubatch with n_tokens = 1, n_seqs = 1, n_outputs = 1 +llama_graph_n_input_tensors: input tensor ' out_ids' [i32, ne = { 1, 1, 1, 1 }] is used by node 'result_norm' (GET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-3' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-7' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-11' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-15' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-19' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-23' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-27' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-31' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-35' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-39' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-43' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-47' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-51' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-55' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-59' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-63' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l3 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l7 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l11 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l15 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l19 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l23 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l27 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l31 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l35 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l39 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l43 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l47 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l51 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l55 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l59 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l63 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l3 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l7 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l11 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l15 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l19 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l23 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l27 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l31 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l35 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l39 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l43 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l47 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l51 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l55 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l59 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l63 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' inp_tokens' [i32, ne = { 1, 1, 1, 1 }] is used by node 'model.input_embed' (GET_ROWS) +resolve_fused_ops: fused DeepSeek V4 HC post enabled +graph_reserve: reserving a graph for ubatch with n_tokens = 512, n_seqs = 1, n_outputs = 512 +llama_graph_n_input_tensors: input tensor ' out_ids' [i32, ne = { 512, 1, 1, 1 }] is used by node 'result_norm' (GET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-3' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-7' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-11' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-15' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-19' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-23' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-27' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-31' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-35' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-39' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-43' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-47' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-51' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-55' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-59' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-63' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l3 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l7 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l11 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l15 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l19 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l23 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l27 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l31 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l35 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l39 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l43 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l47 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l51 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l55 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l59 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l63 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l3 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l7 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l11 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l15 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l19 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l23 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l27 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l31 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l35 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l39 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l43 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l47 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l51 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l55 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l59 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l63 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' inp_tokens' [i32, ne = { 512, 1, 1, 1 }] is used by node 'model.input_embed' (GET_ROWS) +graph_reserve: reserving a graph for ubatch with n_tokens = 1, n_seqs = 1, n_outputs = 1 +llama_graph_n_input_tensors: input tensor ' out_ids' [i32, ne = { 1, 1, 1, 1 }] is used by node 'result_norm' (GET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-3' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-7' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-11' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-15' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-19' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-23' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-27' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-31' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-35' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-39' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-43' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-47' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-51' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-55' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-59' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 1, 1, 1 }] is used by node 'kq_soft_max-63' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l3 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l7 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l11 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l15 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l19 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l23 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l27 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l31 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l35 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l39 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l43 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l47 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l51 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l55 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l59 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 1024, 1, 1, 1 }] is used by node 'cache_v_l63 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l3 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l7 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l11 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l15 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l19 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l23 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l27 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l31 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l35 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l39 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l43 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l47 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l51 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l55 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l59 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 1, 1, 1, 1 }] is used by node 'cache_k_l63 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Qcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 4, 1, 1, 1 }] is used by node 'Kcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' inp_tokens' [i32, ne = { 1, 1, 1, 1 }] is used by node 'model.input_embed' (GET_ROWS) +graph_reserve: reserving a graph for ubatch with n_tokens = 512, n_seqs = 1, n_outputs = 512 +llama_graph_n_input_tensors: input tensor ' out_ids' [i32, ne = { 512, 1, 1, 1 }] is used by node 'result_norm' (GET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-3' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-7' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-11' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-15' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-19' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-23' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-27' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-31' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-35' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-39' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-43' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-47' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-51' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-55' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-59' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_kq_mask' [f32, ne = { 8192, 512, 1, 1 }] is used by node 'kq_soft_max-63' (SOFT_MAX) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l3 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l7 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l11 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l15 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l19 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l23 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l27 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l31 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l35 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l39 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l43 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l47 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l51 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l55 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l59 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_v_idxs' [i64, ne = { 524288, 1, 1, 1 }] is used by node 'cache_v_l63 (reshaped) (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l3 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l7 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l11 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l15 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l19 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l23 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l27 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l31 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l35 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l39 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l43 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l47 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l51 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l55 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l59 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' attn_inp_k_idxs' [i64, ne = { 512, 1, 1, 1 }] is used by node 'cache_k_l63 (view)' (SET_ROWS) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-3' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-7' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-11' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-15' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-19' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-23' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-27' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-31' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-35' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-39' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-43' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-47' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-51' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-55' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-59' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Qcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' inp_pos' [i32, ne = { 2048, 1, 1, 1 }] is used by node 'Kcur-63' (ROPE) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' rs_s_copy' [i32, ne = { 1, 1, 1, 1 }] is used by node 'rs_s_copy (view)' (VIEW) +llama_graph_n_input_tensors: input tensor ' inp_tokens' [i32, ne = { 512, 1, 1, 1 }] is used by node 'model.input_embed' (GET_ROWS) +sched_reserve: CUDA0 compute buffer size = 505.00 MiB +sched_reserve: CUDA_Host compute buffer size = 40.02 MiB +sched_reserve: graph: nodes = 3831, splits = 2, input objects = 4, input tensors = 7 +sched_reserve: reserve took 35.43 ms, sched copies = 1 +CUDA : ARCHS = 750,800,860,890,900 | FORCE_MMQ = 1 | USE_GRAPHS = 1 | FA_QUANTS = q4_0-q4_0,q8_0-q8_0,f16-f16,bf16-bf16 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | LLAMAFILE = 1 | REPACK = 1 | +Model metadata: {'general.file_type': '15', 'general.quantization_version': '2', 'tokenizer.ggml.padding_token_id': '248044', 'qwen35.embedding_length': '5120', 'qwen35.rope.freq_base': '10000000.000000', 'general.type': 'model', 'qwen35.block_count': '65', 'general.version': '0814', 'tokenizer.ggml.bos_token_id': '248044', 'general.name': 'Qwen3.8 27B 0814', 'qwen35.context_length': '262144', 'general.sampling.temp': '1.000000', 'general.sampling.top_p': '0.950000', 'tokenizer.ggml.eos_token_id': '248046', 'qwen35.ssm.time_step_rank': '48', 'general.basename': 'Qwen3.8', 'qwen35.full_attention_interval': '4', 'general.sampling.top_k': '20', 'qwen35.attention.value_length': '256', 'general.architecture': 'qwen35', 'qwen35.attention.head_count': '24', 'general.license': 'apache-2.0', 'qwen35.feed_forward_length': '17408', 'qwen35.attention.head_count_kv': '4', 'qwen35.attention.layer_norm_rms_epsilon': '0.000001', 'tokenizer.ggml.model': 'gpt2', 'qwen35.attention.key_length': '256', 'qwen35.nextn_predict_layers': '1', 'qwen35.ssm.group_count': '16', 'tokenizer.ggml.add_bos_token': 'false', 'general.size_label': '27B', 'qwen35.ssm.conv_kernel': '4', 'tokenizer.ggml.pre': 'qwen35', 'qwen35.ssm.state_size': '128', 'qwen35.ssm.inner_size': '6144', 'tokenizer.chat_template': '{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if \'image\' in item or \'image_url\' in item or item.type == \'image\' %}\n {%- if is_system_content %}\n {{- raise_exception(\'System message cannot contain images.\') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- \'Picture \' ~ image_count.value ~ \': \' }}\n {%- endif %}\n {{- \'<|vision_start|><|image_pad|><|vision_end|>\' }}\n {%- elif \'video\' in item or item.type == \'video\' %}\n {%- if is_system_content %}\n {{- raise_exception(\'System message cannot contain videos.\') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- \'Video \' ~ video_count.value ~ \': \' }}\n {%- endif %}\n {{- \'<|vision_start|><|video_pad|><|vision_end|>\' }}\n {%- elif \'text\' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception(\'Unexpected item type in content.\') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- \'\' }}\n {%- else %}\n {{- raise_exception(\'Unexpected content type.\') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception(\'No messages provided.\') }}\n{%- endif %}\n{%- set reasoning_instructions = \'\' %}\n{%- if enable_thinking is undefined or enable_thinking is true %}\n {%- set resolved_reasoning_effort = reasoning_effort|default(\'xhigh\') %}\n {%- if resolved_reasoning_effort not in (\'xhigh\', \'medium\', \'low\') %}\n {{- raise_exception(\'Unexpected reasoning effort \' ~ reasoning_effort ~ \'. Supported types are xhigh (default), medium, and low.\') }}\n {%- endif %}\n {%- if resolved_reasoning_effort == \'xhigh\' %}\n {%- set reasoning_instructions = \'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\' %}\n {%- elif resolved_reasoning_effort == \'low\' %}\n {%- set reasoning_instructions = \'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.\' %}\n {%- endif %}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- \'<|im_start|>system\\n\' }}\n {%- if reasoning_instructions %}\n {{- reasoning_instructions + \'\\n\\n\' }}\n {%- endif %}\n {{- "# Tools\\n\\nYou have access to the following functions:\\n\\n" }}\n {%- for tool in tools %}\n {{- "\\n" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- "\\n" }}\n {{- \'\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n\\n\\n\\nvalue_1\\n\\n\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n\\n\\n\\n\\n\\nReminder:\\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n\' }}\n {%- if messages[0].role == \'system\' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- \'\\n\\n\' + content }}\n {%- endif %}\n {%- endif %}\n {{- \'<|im_end|>\\n\' }}\n{%- else %}\n {%- if messages[0].role == \'system\' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- \'<|im_start|>system\\n\' + (reasoning_instructions + \'\\n\\n\' if reasoning_instructions else \'\') + content + \'<|im_end|>\\n\' }}\n {%- elif reasoning_instructions %}\n {{- \'<|im_start|>system\\n\' + reasoning_instructions + \'<|im_end|>\\n\' }}\n {%- endif %}\n {%- elif reasoning_instructions %}\n {{- \'<|im_start|>system\\n\' + reasoning_instructions + \'<|im_end|>\\n\' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == "user" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith(\'\') and content.endswith(\'\')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception(\'No user query found in messages.\') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == "system" %}\n {%- if not loop.first %}\n {{- raise_exception(\'System message must be at the beginning.\') }}\n {%- endif %}\n {%- elif message.role == "user" %}\n {{- \'<|im_start|>\' + message.role + \'\\n\' + content + \'<|im_end|>\' + \'\\n\' }}\n {%- elif message.role == "assistant" %}\n {%- set reasoning_content = \'\' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}\n {{- \'<|im_start|>\' + message.role + \'\\n\\n\' + reasoning_content + \'\\n\\n\\n\' + content }}\n {%- else %}\n {{- \'<|im_start|>\' + message.role + \'\\n\' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- \'\\n\\n\\n\\n\' }}\n {%- else %}\n {{- \'\\n\\n\' }}\n {%- endif %}\n {%- else %}\n {{- \'\\n\\n\\n\' }}\n {%- endif %}\n {%- if tool_call.arguments is defined and tool_call.arguments != \'\' %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- \'\\n\' }}\n {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}\n {{- args_value }}\n {{- \'\\n\\n\' }}\n {%- endfor %}\n {%- endif %}\n {{- \'\\n\' }}\n {%- endfor %}\n {%- endif %}\n {{- \'<|im_end|>\\n\' }}\n {%- elif message.role == "tool" %}\n {%- if loop.previtem and loop.previtem.role != "tool" %}\n {{- \'<|im_start|>user\' }}\n {%- endif %}\n {{- \'\\n\\n\' }}\n {{- content }}\n {{- \'\\n\' }}\n {%- if not loop.last and loop.nextitem.role != "tool" %}\n {{- \'<|im_end|>\\n\' }}\n {%- elif loop.last %}\n {{- \'<|im_end|>\\n\' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception(\'Unexpected message role.\') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- \'<|im_start|>assistant\\n\' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- \'\\n\\n\\n\\n\' }}\n {%- else %}\n {{- \'\\n\' }}\n {%- endif %}\n{%- endif %}', 'qwen35.rope.dimension_count': '64'} +Available chat formats from metadata: chat_template.default +Using gguf chat template: {%- set image_count = namespace(value=0) %} +{%- set video_count = namespace(value=0) %} +{%- macro render_content(content, do_vision_count, is_system_content=false) %} + {%- if content is string %} + {{- content }} + {%- elif content is iterable and content is not mapping %} + {%- for item in content %} + {%- if 'image' in item or 'image_url' in item or item.type == 'image' %} + {%- if is_system_content %} + {{- raise_exception('System message cannot contain images.') }} + {%- endif %} + {%- if do_vision_count %} + {%- set image_count.value = image_count.value + 1 %} + {%- endif %} + {%- if add_vision_id %} + {{- 'Picture ' ~ image_count.value ~ ': ' }} + {%- endif %} + {{- '<|vision_start|><|image_pad|><|vision_end|>' }} + {%- elif 'video' in item or item.type == 'video' %} + {%- if is_system_content %} + {{- raise_exception('System message cannot contain videos.') }} + {%- endif %} + {%- if do_vision_count %} + {%- set video_count.value = video_count.value + 1 %} + {%- endif %} + {%- if add_vision_id %} + {{- 'Video ' ~ video_count.value ~ ': ' }} + {%- endif %} + {{- '<|vision_start|><|video_pad|><|vision_end|>' }} + {%- elif 'text' in item %} + {{- item.text }} + {%- else %} + {{- raise_exception('Unexpected item type in content.') }} + {%- endif %} + {%- endfor %} + {%- elif content is none or content is undefined %} + {{- '' }} + {%- else %} + {{- raise_exception('Unexpected content type.') }} + {%- endif %} +{%- endmacro %} +{%- if not messages %} + {{- raise_exception('No messages provided.') }} +{%- endif %} +{%- set reasoning_instructions = '' %} +{%- if enable_thinking is undefined or enable_thinking is true %} + {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %} + {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %} + {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }} + {%- endif %} + {%- if resolved_reasoning_effort == 'xhigh' %} + {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %} + {%- elif resolved_reasoning_effort == 'low' %} + {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %} + {%- endif %} +{%- endif %} +{%- if tools and tools is iterable and tools is not mapping %} + {{- '<|im_start|>system\n' }} + {%- if reasoning_instructions %} + {{- reasoning_instructions + '\n\n' }} + {%- endif %} + {{- "# Tools\n\nYou have access to the following functions:\n\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n" }} + {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }} + {%- if messages[0].role == 'system' %} + {%- set content = render_content(messages[0].content, false, true)|trim %} + {%- if content %} + {{- '\n\n' + content }} + {%- endif %} + {%- endif %} + {{- '<|im_end|>\n' }} +{%- else %} + {%- if messages[0].role == 'system' %} + {%- set content = render_content(messages[0].content, false, true)|trim %} + {%- if content %} + {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }} + {%- elif reasoning_instructions %} + {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }} + {%- endif %} + {%- elif reasoning_instructions %} + {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %} +{%- for message in messages[::-1] %} + {%- set index = (messages|length - 1) - loop.index0 %} + {%- if ns.multi_step_tool and message.role == "user" %} + {%- set content = render_content(message.content, false)|trim %} + {%- if not(content.startswith('') and content.endswith('')) %} + {%- set ns.multi_step_tool = false %} + {%- set ns.last_query_index = index %} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if ns.multi_step_tool %} + {{- raise_exception('No user query found in messages.') }} +{%- endif %} +{%- for message in messages %} + {%- set content = render_content(message.content, true)|trim %} + {%- if message.role == "system" %} + {%- if not loop.first %} + {{- raise_exception('System message must be at the beginning.') }} + {%- endif %} + {%- elif message.role == "user" %} + {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {%- set reasoning_content = '' %} + {%- if message.reasoning_content is string %} + {%- set reasoning_content = message.reasoning_content %} + {%- endif %} + {%- set reasoning_content = reasoning_content|trim %} + {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %} + {{- '<|im_start|>' + message.role + '\n\n' + reasoning_content + '\n\n\n' + content }} + {%- else %} + {{- '<|im_start|>' + message.role + '\n' + content }} + {%- endif %} + {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {%- if loop.first %} + {%- if content|trim %} + {{- '\n\n\n\n' }} + {%- else %} + {{- '\n\n' }} + {%- endif %} + {%- else %} + {{- '\n\n\n' }} + {%- endif %} + {%- if tool_call.arguments is defined and tool_call.arguments != '' %} + {%- for args_name, args_value in tool_call.arguments|items %} + {{- '\n' }} + {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %} + {{- args_value }} + {{- '\n\n' }} + {%- endfor %} + {%- endif %} + {{- '\n' }} + {%- endfor %} + {%- endif %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if loop.previtem and loop.previtem.role != "tool" %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- content }} + {{- '\n' }} + {%- if not loop.last and loop.nextitem.role != "tool" %} + {{- '<|im_end|>\n' }} + {%- elif loop.last %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- else %} + {{- raise_exception('Unexpected message role.') }} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} + {%- if enable_thinking is defined and enable_thinking is false %} + {{- '\n\n\n\n' }} + {%- else %} + {{- '\n' }} + {%- endif %} +{%- endif %} +Using chat eos_token: <|im_end|> +Using chat bos_token: <|endoftext|> +CUDA Graph id 24 reused +ggml_backend_cuda_graph_compute: CUDA graph warmup complete +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +CUDA Graph id 24 reused +llama_perf_context_print: load time = 80.67 ms +llama_perf_context_print: prompt eval time = 80.08 ms / 5 tokens ( 16.02 ms per token, 62.44 tokens per second) +llama_perf_context_print: eval time = 647.68 ms / 31 runs ( 20.89 ms per token, 47.86 tokens per second) +llama_perf_context_print: total time = 815.28 ms / 36 tokens +llama_perf_context_print: graphs reused = 30 +.ggml_backend_cuda_graph_compute: CUDA graph warmup reset +CUDA Graph id 30 reused +ggml_backend_cuda_graph_compute: CUDA graph warmup complete +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +CUDA Graph id 30 reused +llama_perf_context_print: load time = 80.67 ms +llama_perf_context_print: prompt eval time = 53.42 ms / 10 tokens ( 5.34 ms per token, 187.21 tokens per second) +llama_perf_context_print: eval time = 633.33 ms / 31 runs ( 20.43 ms per token, 48.95 tokens per second) +llama_perf_context_print: total time = 771.86 ms / 41 tokens +llama_perf_context_print: graphs reused = 30 +Llama.generate: 9 prefix-match found but partial kv removal not supported, re-evaluating full prompt +ggml_backend_cuda_graph_compute: CUDA graph warmup reset +CUDA Graph id 36 reused +ggml_backend_cuda_graph_compute: CUDA graph warmup complete +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +CUDA Graph id 36 reused +llama_perf_context_print: load time = 80.67 ms +llama_perf_context_print: prompt eval time = 42.98 ms / 10 tokens ( 4.30 ms per token, 232.65 tokens per second) +llama_perf_context_print: eval time = 631.94 ms / 31 runs ( 20.39 ms per token, 49.06 tokens per second) +llama_perf_context_print: total time = 760.10 ms / 41 tokens +llama_perf_context_print: graphs reused = 30 +...~llama_context: CUDA0 compute buffer size is 505.0000 MiB, matches expectation of 505.0000 MiB +~llama_context: CUDA_Host compute buffer size is 40.0157 MiB, matches expectation of 40.0157 MiB + +4 passed in 6.90s diff --git a/benchmarks/2026-10-25-a100/results/llamacpp-response.json b/benchmarks/2026-10-25-a100/results/llamacpp-response.json new file mode 100644 index 0000000..f32b2b0 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/llamacpp-response.json @@ -0,0 +1,18 @@ +{ + "id": "cmpl-79d6adff024d46c8b2c9f097", + "object": "text_completion", + "created": 1792857069, + "model": "/workspace/ollama-models/blobs/sha256-f5f1dd8920d417aac2718b0bda3403da274301efdd6760b4f0f4b864ff2ad57d", + "choices": [ + { + "text": " Paris.\nThe capital of Germany is Berlin.\nThe capital of Italy is Rome.\nThe capital of Spain is Madrid.\nThe capital of Portugal is", + "index": 0, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 5, + "completion_tokens": 32, + "total_tokens": 37 + } +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/local-package-check.json b/benchmarks/2026-10-25-a100/results/local-package-check.json new file mode 100644 index 0000000..89e3759 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/local-package-check.json @@ -0,0 +1,13 @@ +{ + "scope": "Local validation builds with unreleased fixes; not uploaded to PyPI.", + "wheel_source_files_verified": 30, + "fresh_wheel_light_core_and_echo_chat": "passed", + "strict_sphinx_build": "passed", + "ruff_check": "passed", + "black_check": "passed", + "twine_wheel_and_sdist_check": "passed", + "artifact_sha256": { + "local_llm_kit-0.3.1-py3-none-any.whl": "d9a6ee6039ba05bf46b9e9944f468cf2f179938eb351f060e5a560ccd206da2c", + "local_llm_kit-0.3.1.tar.gz": "6daa3c6f49bf8a5e237e97e5df9186323a084edada72666986dd42b590ab701c" + } +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/native-http.json b/benchmarks/2026-10-25-a100/results/native-http.json new file mode 100644 index 0000000..074e9bf --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/native-http.json @@ -0,0 +1,95 @@ +{ + "routes": [ + { + "route": "/v1/chat/completions", + "response": { + "id": "chatcmpl-b4ac76baf738439a97cfab35", + "object": "chat.completion", + "created": 1792858203, + "model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "Good morning, how may I assist you today?\n\nUser: Hi there! How are you doing today?\n\nAssistant: I'm doing" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 18, + "completion_tokens": 33, + "total_tokens": 51 + } + } + }, + { + "route": "/v1/completions", + "response": { + "id": "cmpl-61fd51dfbd2246f9a7ec4b19", + "object": "text_completion", + "created": 1792858204, + "model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", + "choices": [ + { + "text": "\n\nGreetings to you, my dear friend! How are you doing today? I hope this message finds you in good health and spirits. I am", + "index": 0, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 6, + "completion_tokens": 34, + "total_tokens": 40 + } + } + }, + { + "route": "/v1/responses", + "response": { + "id": "resp_2d324a8a19af4956a364f00e3e52bca8", + "object": "response", + "created_at": 1792858204, + "model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", + "status": "completed", + "output": [ + { + "id": "msg_12c3b2de781c441ca9ab8390f1f7f32d", + "type": "message", + "role": "assistant", + "status": "completed", + "content": [ + { + "type": "output_text", + "text": "Good morning, how may I assist you today?\n\nUser: Hi there! How are you doing today?\n\nAssistant: I'm doing", + "annotations": [], + "logprobs": [] + } + ] + } + ], + "error": null, + "incomplete_details": null, + "usage": { + "input_tokens": 18, + "output_tokens": 33, + "total_tokens": 51, + "input_tokens_details": { + "cached_tokens": 0 + }, + "output_tokens_details": { + "reasoning_tokens": 0 + } + }, + "store": false, + "metadata": {}, + "parallel_tool_calls": true, + "tools": [], + "tool_choice": "auto" + } + } + ], + "health_seconds": 0.017738533962983638, + "health_served_while_generation_unfinished": true +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/native-locality-before.log b/benchmarks/2026-10-25-a100/results/native-locality-before.log new file mode 100644 index 0000000..abfc07d --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/native-locality-before.log @@ -0,0 +1,132 @@ +. [100%] +=================================== FAILURES =================================== +_ TestRequireLocal.test_native_transformers_and_llamacpp_are_accepted (backend='TransformersBackend') _ + +self = + + def test_native_transformers_and_llamacpp_are_accepted(self): + from local_llm_kit.backends.llamacpp import LlamaCppBackend + from local_llm_kit.backends.transformers import TransformersBackend + + for cls in (TransformersBackend, LlamaCppBackend): + with self.subTest(backend=cls.__name__): + backend = object.__new__(cls) + backend.model_path = "local-checkpoint" +> llm = LLM("local-checkpoint", backend_instance=backend, require_local=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +tests/test_discovery.py:530: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +local_llm_kit/llm.py:326: in __init__ + self.assert_local() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = LLM(model_path='local-checkpoint', backend=TransformersBackend) + + def assert_local(self) -> bool: + """Require an in-process backend or verified local-server metadata. + + Unknown routing fails closed. Metadata is a report from the configured + server, not a security boundary against a dishonest server operator. + """ + from .discovery import is_loopback_url, probe_endpoint + + name = getattr(self.backend, "backend_name", "") + if name in ("echo", "transformers", "llamacpp", "airllm", "apple-fm"): + return True + if name == "ollama": + if not is_loopback_url(self.backend.host): + raise RuntimeError("require_local refuses a non-loopback Ollama endpoint.") + detection = self.detect_backend_capabilities() + if detection.get("remote"): + raise RuntimeError( + "Model %r is routed off-device to %s." + % (self.model_path, detection.get("remote_host") or "a remote host") + ) + if detection.get("error") or not detection.get("routing_verified"): + raise RuntimeError( + "Could not confirm that %r runs on this machine: routing metadata unavailable." + % self.model_path + ) + if not detection.get("remote"): + return True + elif name == "openai-compat": + if not is_loopback_url(self.backend.base_url): + raise RuntimeError("require_local refuses a non-loopback endpoint.") + report = probe_endpoint(self.backend.base_url, timeout=min(self.backend.timeout, 5.0)) + if any(m.id == self.model_path for m in report.local_models): + return True +> raise RuntimeError( + "Could not confirm that %r runs on this machine; the model is remote or its execution locality is unknown." + % self.model_path + ) +E RuntimeError: Could not confirm that 'local-checkpoint' runs on this machine; the model is remote or its execution locality is unknown. + +local_llm_kit/llm.py:486: RuntimeError +_ TestRequireLocal.test_native_transformers_and_llamacpp_are_accepted (backend='LlamaCppBackend') _ + +self = + + def test_native_transformers_and_llamacpp_are_accepted(self): + from local_llm_kit.backends.llamacpp import LlamaCppBackend + from local_llm_kit.backends.transformers import TransformersBackend + + for cls in (TransformersBackend, LlamaCppBackend): + with self.subTest(backend=cls.__name__): + backend = object.__new__(cls) + backend.model_path = "local-checkpoint" +> llm = LLM("local-checkpoint", backend_instance=backend, require_local=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +tests/test_discovery.py:530: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +local_llm_kit/llm.py:326: in __init__ + self.assert_local() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = LLM(model_path='local-checkpoint', backend=LlamaCppBackend) + + def assert_local(self) -> bool: + """Require an in-process backend or verified local-server metadata. + + Unknown routing fails closed. Metadata is a report from the configured + server, not a security boundary against a dishonest server operator. + """ + from .discovery import is_loopback_url, probe_endpoint + + name = getattr(self.backend, "backend_name", "") + if name in ("echo", "transformers", "llamacpp", "airllm", "apple-fm"): + return True + if name == "ollama": + if not is_loopback_url(self.backend.host): + raise RuntimeError("require_local refuses a non-loopback Ollama endpoint.") + detection = self.detect_backend_capabilities() + if detection.get("remote"): + raise RuntimeError( + "Model %r is routed off-device to %s." + % (self.model_path, detection.get("remote_host") or "a remote host") + ) + if detection.get("error") or not detection.get("routing_verified"): + raise RuntimeError( + "Could not confirm that %r runs on this machine: routing metadata unavailable." + % self.model_path + ) + if not detection.get("remote"): + return True + elif name == "openai-compat": + if not is_loopback_url(self.backend.base_url): + raise RuntimeError("require_local refuses a non-loopback endpoint.") + report = probe_endpoint(self.backend.base_url, timeout=min(self.backend.timeout, 5.0)) + if any(m.id == self.model_path for m in report.local_models): + return True +> raise RuntimeError( + "Could not confirm that %r runs on this machine; the model is remote or its execution locality is unknown." + % self.model_path + ) +E RuntimeError: Could not confirm that 'local-checkpoint' runs on this machine; the model is remote or its execution locality is unknown. + +local_llm_kit/llm.py:486: RuntimeError +=========================== short test summary info ============================ +SUBFAILED(backend='TransformersBackend') tests/test_discovery.py::TestRequireLocal::test_native_transformers_and_llamacpp_are_accepted +SUBFAILED(backend='LlamaCppBackend') tests/test_discovery.py::TestRequireLocal::test_native_transformers_and_llamacpp_are_accepted +2 failed, 1 passed, 40 deselected in 0.09s diff --git a/benchmarks/2026-10-25-a100/results/ollama-live-discovery-after.log b/benchmarks/2026-10-25-a100/results/ollama-live-discovery-after.log new file mode 100644 index 0000000..db6c65b --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/ollama-live-discovery-after.log @@ -0,0 +1,15 @@ + +[live] probed 12 endpoints in 390.7ms; live: ['http://127.0.0.1:11434/v1'] +... +[live] http://127.0.0.1:11434/v1 -> ollama +u.u.s. +[live] qwen3.8:27b: adapter now reports ctx=262144 (was hardcoded 4096); capabilities=['completion', 'vision', 'tools', 'thinking'] +. +[live] qwen3.8:27b chat -> 'OK' +... +[live] qwen3.8:27b streamed 8 chunks +.s.. +=========================== short test summary info ============================ +SKIPPED [1] tests/test_live_servers.py:131: this server lists no provider-routed models +SKIPPED [1] tests/test_live_servers.py:199: no provider-routed model is available to refuse +13 passed, 2 skipped, 2 subtests passed in 5.28s diff --git a/benchmarks/2026-10-25-a100/results/ollama-live-discovery-before.log b/benchmarks/2026-10-25-a100/results/ollama-live-discovery-before.log new file mode 100644 index 0000000..1d64215 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/ollama-live-discovery-before.log @@ -0,0 +1,41 @@ + +[live] probed 12 endpoints in 427.9ms; live: ['http://127.0.0.1:11434/v1'] +... +[live] http://127.0.0.1:11434/v1 -> ollama +u.u.s. +[live] qwen3.8:27b: adapter now reports ctx=262144 (was hardcoded 4096); capabilities=['completion', 'vision', 'tools', 'thinking'] +.F..Fs.. +=================================== FAILURES =================================== +________________ TestRealInferenceOnDevice.test_chat_round_trip ________________ + +self = + + def test_chat_round_trip(self): + response = self.llm.chat( + [{"role": "user", "content": "Reply with the single word: OK"}], max_tokens=16 + ) + content = response["choices"][0]["message"]["content"] +> self.assertTrue(content.strip(), "model returned empty content") +E AssertionError: '' is not true : model returned empty content + +tests/test_live_servers.py:165: AssertionError +_____________ TestRealInferenceOnDevice.test_streaming_round_trip ______________ + +self = + + def test_streaming_round_trip(self): + pieces = [] + for chunk in self.llm.chat( + [{"role": "user", "content": "Count to three."}], max_tokens=24, stream=True + ): + pieces.append(chunk["choices"][0]["delta"].get("content") or "") +> self.assertTrue("".join(pieces).strip()) +E AssertionError: '' is not true + +tests/test_live_servers.py:176: AssertionError +=========================== short test summary info ============================ +SKIPPED [1] tests/test_live_servers.py:131: this server lists no provider-routed models +SKIPPED [1] tests/test_live_servers.py:194: no provider-routed model is available to refuse +FAILED tests/test_live_servers.py::TestRealInferenceOnDevice::test_chat_round_trip +FAILED tests/test_live_servers.py::TestRealInferenceOnDevice::test_streaming_round_trip +2 failed, 11 passed, 2 skipped, 2 subtests passed in 13.40s diff --git a/benchmarks/2026-10-25-a100/results/ollama-version.txt b/benchmarks/2026-10-25-a100/results/ollama-version.txt new file mode 100644 index 0000000..af6c3ab --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/ollama-version.txt @@ -0,0 +1,2 @@ +Warning: could not connect to a running Ollama instance +Warning: client version is 0.40.10 diff --git a/benchmarks/2026-10-25-a100/results/packages-airllm.json b/benchmarks/2026-10-25-a100/results/packages-airllm.json new file mode 100644 index 0000000..dcd25a3 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/packages-airllm.json @@ -0,0 +1,169 @@ +{ + "python": "3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]", + "packages": { + "Jinja2": "3.1.6", + "MarkupSafe": "3.0.3", + "PyGObject": "3.48.2", + "PyJWT": "2.7.0", + "PyYAML": "6.0.3", + "Pygments": "2.21.0", + "Send2Trash": "1.8.3", + "accelerate": "1.15.0", + "airllm": "4.0.0", + "annotated-doc": "0.0.5", + "anyio": "4.11.0", + "argon2-cffi": "25.1.0", + "argon2-cffi-bindings": "25.1.0", + "arrow": "1.3.0", + "asttokens": "3.0.0", + "async-lru": "2.0.5", + "attrs": "25.4.0", + "babel": "2.17.0", + "beautifulsoup4": "4.14.2", + "bleach": "6.2.0", + "blinker": "1.7.0", + "certifi": "2025.10.5", + "cffi": "2.0.0", + "charset-normalizer": "3.4.3", + "click": "8.5.0", + "comm": "0.2.3", + "cryptography": "41.0.7", + "dbus-python": "1.3.2", + "debugpy": "1.8.17", + "decorator": "5.2.1", + "defusedxml": "0.7.1", + "distlib": "0.4.0", + "distro": "1.9.0", + "executing": "2.2.1", + "fastjsonschema": "2.21.2", + "filelock": "3.20.0", + "fqdn": "1.5.1", + "fsspec": "2024.6.1", + "h11": "0.16.0", + "hf-xet": "1.7.0", + "httpcore": "1.0.9", + "httpcore2": "2.16.0", + "httplib2": "0.20.4", + "httpx": "0.28.1", + "httpx2": "2.16.0", + "huggingface_hub": "2.3.0", + "idna": "3.20", + "iniconfig": "2.3.1", + "ipykernel": "6.30.1", + "ipython": "9.6.0", + "ipython_pygments_lexers": "1.1.1", + "ipywidgets": "8.1.7", + "isoduration": "20.11.0", + "jedi": "0.19.2", + "json5": "0.12.1", + "jsonpointer": "3.0.0", + "jsonschema": "4.25.1", + "jsonschema-specifications": "2025.9.1", + "jupyter-archive": "3.4.0", + "jupyter-events": "0.12.0", + "jupyter-lsp": "2.3.0", + "jupyter_client": "8.6.3", + "jupyter_core": "5.8.1", + "jupyter_server": "2.17.0", + "jupyter_server_terminals": "0.5.3", + "jupyterlab": "4.4.9", + "jupyterlab_pygments": "0.3.0", + "jupyterlab_server": "2.27.3", + "jupyterlab_widgets": "3.0.15", + "lark": "1.3.0", + "launchpadlib": "1.11.0", + "lazr.restfulclient": "0.14.6", + "lazr.uri": "1.0.6", + "local-llm-kit": "0.3.1", + "markdown-it-py": "4.2.0", + "matplotlib-inline": "0.1.7", + "mdurl": "0.1.2", + "mistune": "3.1.4", + "mpmath": "1.3.0", + "nbclient": "0.10.2", + "nbconvert": "7.16.6", + "nbformat": "5.10.4", + "nest-asyncio": "1.6.0", + "networkx": "3.3", + "notebook": "7.4.2", + "notebook_shim": "0.2.4", + "numpy": "2.1.2", + "nvidia-cublas-cu12": "12.8.4.1", + "nvidia-cuda-cupti-cu12": "12.8.90", + "nvidia-cuda-nvrtc-cu12": "12.8.93", + "nvidia-cuda-runtime-cu12": "12.8.90", + "nvidia-cudnn-cu12": "9.10.2.21", + "nvidia-cufft-cu12": "11.3.3.83", + "nvidia-cufile-cu12": "1.13.1.3", + "nvidia-curand-cu12": "10.3.9.90", + "nvidia-cusolver-cu12": "11.7.3.90", + "nvidia-cusparse-cu12": "12.5.8.93", + "nvidia-cusparselt-cu12": "0.7.1", + "nvidia-nccl-cu12": "2.27.3", + "nvidia-nvjitlink-cu12": "12.8.93", + "nvidia-nvtx-cu12": "12.8.90", + "oauthlib": "3.2.2", + "packaging": "26.3", + "pandocfilters": "1.5.1", + "parso": "0.8.5", + "pexpect": "4.9.0", + "pillow": "11.0.0", + "pip": "25.2", + "platformdirs": "4.5.0", + "pluggy": "1.7.0", + "prometheus_client": "0.23.1", + "prompt_toolkit": "3.0.52", + "psutil": "7.1.0", + "ptyprocess": "0.7.0", + "pure_eval": "0.2.3", + "pycparser": "2.23", + "pyparsing": "3.1.1", + "pytest": "9.1.1", + "python-apt": "2.7.7+ubuntu5", + "python-dateutil": "2.9.0.post0", + "python-json-logger": "4.0.0", + "pyzmq": "27.1.0", + "referencing": "0.36.2", + "regex": "2026.9.29", + "requests": "2.32.5", + "rfc3339-validator": "0.1.4", + "rfc3986-validator": "0.1.1", + "rfc3987-syntax": "1.1.0", + "rich": "15.0.0", + "rpds-py": "0.27.1", + "safetensors": "0.8.0", + "scipy": "1.18.1", + "sentencepiece": "0.2.2", + "setuptools": "80.9.0", + "shellingham": "1.5.4", + "six": "1.16.0", + "sniffio": "1.3.1", + "soupsieve": "2.8", + "stack-data": "0.6.3", + "sympy": "1.13.3", + "terminado": "0.18.1", + "tinycss2": "1.4.0", + "tokenizers": "0.23.3", + "torch": "2.8.0+cu128", + "torchaudio": "2.8.0+cu128", + "torchvision": "0.23.0+cu128", + "tornado": "6.5.2", + "tqdm": "4.70.1", + "traitlets": "5.14.3", + "transformers": "5.20.2", + "triton": "3.4.0", + "truststore": "0.10.5", + "typer": "0.27.3", + "types-python-dateutil": "2.9.0.20251008", + "typing_extensions": "4.15.0", + "uri-template": "1.3.0", + "urllib3": "2.5.0", + "virtualenv": "20.34.0", + "wadllib": "1.3.6", + "wcwidth": "0.2.14", + "webcolors": "24.11.1", + "webencodings": "0.5.1", + "websocket-client": "1.9.0", + "widgetsnbextension": "4.0.14" + } +} diff --git a/benchmarks/2026-10-25-a100/results/packages-base.json b/benchmarks/2026-10-25-a100/results/packages-base.json new file mode 100644 index 0000000..be8be09 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/packages-base.json @@ -0,0 +1,211 @@ +{ + "python": "3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]", + "packages": { + "Jinja2": "3.1.6", + "MarkupSafe": "3.0.3", + "PyGObject": "3.48.2", + "PyJWT": "2.7.0", + "PyYAML": "6.0.3", + "Pygments": "2.19.2", + "SecretStorage": "3.5.0", + "Send2Trash": "1.8.3", + "accelerate": "1.15.0", + "annotated-doc": "0.0.5", + "annotated-types": "0.8.0", + "anyio": "4.11.0", + "argon2-cffi": "25.1.0", + "argon2-cffi-bindings": "25.1.0", + "arrow": "1.3.0", + "ast_serialize": "0.13.1", + "asttokens": "3.0.0", + "async-lru": "2.0.5", + "attrs": "25.4.0", + "babel": "2.17.0", + "beautifulsoup4": "4.14.2", + "black": "26.10.1", + "bleach": "6.2.0", + "blinker": "1.7.0", + "build": "1.6.1", + "certifi": "2025.10.5", + "cffi": "2.0.0", + "charset-normalizer": "3.4.3", + "click": "8.5.0", + "comm": "0.2.3", + "coverage": "7.17.0", + "cryptography": "41.0.7", + "dbus-python": "1.3.2", + "debugpy": "1.8.17", + "decorator": "5.2.1", + "defusedxml": "0.7.1", + "distlib": "0.4.0", + "distro": "1.9.0", + "docutils": "0.23", + "executing": "2.2.1", + "fastapi": "0.162.0", + "fastjsonschema": "2.21.2", + "filelock": "3.20.0", + "fqdn": "1.5.1", + "fsspec": "2024.6.1", + "h11": "0.16.0", + "hf-xet": "1.7.0", + "httpcore": "1.0.9", + "httpcore2": "2.16.0", + "httplib2": "0.20.4", + "httptools": "0.9.0", + "httpx": "0.28.1", + "httpx2": "2.16.0", + "huggingface_hub": "2.3.0", + "id": "1.6.1", + "idna": "3.20", + "iniconfig": "2.3.1", + "ipykernel": "6.30.1", + "ipython": "9.6.0", + "ipython_pygments_lexers": "1.1.1", + "ipywidgets": "8.1.7", + "isoduration": "20.11.0", + "jaraco.classes": "3.4.0", + "jaraco.context": "6.1.2", + "jaraco.functools": "4.6.0", + "jedi": "0.19.2", + "jeepney": "0.9.0", + "jiter": "0.18.0", + "json5": "0.12.1", + "jsonpointer": "3.0.0", + "jsonschema": "4.25.1", + "jsonschema-specifications": "2025.9.1", + "jupyter-archive": "3.4.0", + "jupyter-events": "0.12.0", + "jupyter-lsp": "2.3.0", + "jupyter_client": "8.6.3", + "jupyter_core": "5.8.1", + "jupyter_server": "2.17.0", + "jupyter_server_terminals": "0.5.3", + "jupyterlab": "4.4.9", + "jupyterlab_pygments": "0.3.0", + "jupyterlab_server": "2.27.3", + "jupyterlab_widgets": "3.0.15", + "keyring": "25.7.0", + "lark": "1.3.0", + "launchpadlib": "1.11.0", + "lazr.restfulclient": "0.14.6", + "lazr.uri": "1.0.6", + "librt": "0.16.0", + "local-llm-kit": "0.3.1", + "markdown-it-py": "4.2.0", + "matplotlib-inline": "0.1.7", + "mcp": "2.3.0", + "mcp-types": "2.3.0", + "mdurl": "0.1.2", + "mistune": "3.1.4", + "more-itertools": "11.2.1", + "mpmath": "1.3.0", + "mypy": "2.4.0", + "mypy_extensions": "1.1.0", + "nbclient": "0.10.2", + "nbconvert": "7.16.6", + "nbformat": "5.10.4", + "nest-asyncio": "1.6.0", + "networkx": "3.3", + "nh3": "0.3.7", + "notebook": "7.4.2", + "notebook_shim": "0.2.4", + "numpy": "2.1.2", + "nvidia-cublas-cu12": "12.8.4.1", + "nvidia-cuda-cupti-cu12": "12.8.90", + "nvidia-cuda-nvrtc-cu12": "12.8.93", + "nvidia-cuda-runtime-cu12": "12.8.90", + "nvidia-cudnn-cu12": "9.10.2.21", + "nvidia-cufft-cu12": "11.3.3.83", + "nvidia-cufile-cu12": "1.13.1.3", + "nvidia-curand-cu12": "10.3.9.90", + "nvidia-cusolver-cu12": "11.7.3.90", + "nvidia-cusparse-cu12": "12.5.8.93", + "nvidia-cusparselt-cu12": "0.7.1", + "nvidia-nccl-cu12": "2.27.3", + "nvidia-nvjitlink-cu12": "12.8.93", + "nvidia-nvtx-cu12": "12.8.90", + "oauthlib": "3.2.2", + "openai": "3.37.0", + "opentelemetry-api": "1.45.1", + "packaging": "26.3", + "pandocfilters": "1.5.1", + "parso": "0.8.5", + "pathspec": "1.1.1", + "pexpect": "4.9.0", + "pillow": "11.0.0", + "pip": "25.2", + "platformdirs": "4.5.0", + "pluggy": "1.7.0", + "prometheus_client": "0.23.1", + "prompt_toolkit": "3.0.52", + "psutil": "7.1.0", + "ptyprocess": "0.7.0", + "pure_eval": "0.2.3", + "pycparser": "2.23", + "pydantic": "2.14.1", + "pydantic_core": "2.50.1", + "pyparsing": "3.1.1", + "pyproject_hooks": "1.3.3", + "pytest": "9.1.1", + "pytest-cov": "7.1.0", + "python-apt": "2.7.7+ubuntu5", + "python-dateutil": "2.9.0.post0", + "python-dotenv": "1.2.4", + "python-json-logger": "4.0.0", + "python-multipart": "0.0.32", + "pytokens": "0.4.1", + "pyzmq": "27.1.0", + "readme_renderer": "46.0", + "referencing": "0.36.2", + "regex": "2026.9.29", + "requests": "2.32.5", + "requests-toolbelt": "1.0.0", + "rfc3339-validator": "0.1.4", + "rfc3986": "2.0.0", + "rfc3986-validator": "0.1.1", + "rfc3987-syntax": "1.1.0", + "rich": "15.0.0", + "rpds-py": "0.27.1", + "ruff": "0.17.2", + "safetensors": "0.8.0", + "setuptools": "80.9.0", + "shellingham": "1.5.4", + "six": "1.16.0", + "sniffio": "1.3.1", + "soupsieve": "2.8", + "sse-starlette": "3.5.1", + "stack-data": "0.6.3", + "starlette": "1.10.0", + "sympy": "1.13.3", + "terminado": "0.18.1", + "tinycss2": "1.4.0", + "tokenizers": "0.23.3", + "torch": "2.8.0+cu128", + "torchaudio": "2.8.0+cu128", + "torchvision": "0.23.0+cu128", + "tornado": "6.5.2", + "tqdm": "4.70.1", + "traitlets": "5.14.3", + "transformers": "5.20.2", + "triton": "3.4.0", + "truststore": "0.10.5", + "twine": "7.0.0", + "typer": "0.27.3", + "types-python-dateutil": "2.9.0.20251008", + "typing-inspection": "0.4.4", + "typing_extensions": "4.16.0", + "uri-template": "1.3.0", + "urllib3": "2.5.0", + "uvicorn": "0.54.0", + "uvloop": "0.23.0", + "virtualenv": "20.34.0", + "wadllib": "1.3.6", + "watchfiles": "1.3.0", + "wcwidth": "0.2.14", + "webcolors": "24.11.1", + "webencodings": "0.5.1", + "websocket-client": "1.9.0", + "websockets": "17.3", + "widgetsnbextension": "4.0.14" + } +} diff --git a/benchmarks/2026-10-25-a100/results/packages-llamacpp.json b/benchmarks/2026-10-25-a100/results/packages-llamacpp.json new file mode 100644 index 0000000..55b71e3 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/packages-llamacpp.json @@ -0,0 +1,18 @@ +{ + "python": "3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]", + "packages": { + "Jinja2": "3.1.6", + "MarkupSafe": "3.0.4", + "Pygments": "2.21.0", + "diskcache": "5.6.3", + "iniconfig": "2.3.1", + "llama_cpp_python": "0.3.36", + "local-llm-kit": "0.3.1", + "numpy": "2.5.4", + "packaging": "26.3", + "pip": "24.0", + "pluggy": "1.7.0", + "pytest": "9.1.1", + "typing_extensions": "4.16.0" + } +} diff --git a/benchmarks/2026-10-25-a100/results/packages-sglang.json b/benchmarks/2026-10-25-a100/results/packages-sglang.json new file mode 100644 index 0000000..7a84452 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/packages-sglang.json @@ -0,0 +1,213 @@ +{ + "python": "3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]", + "packages": { + "Cython": "3.3.0", + "Jinja2": "3.1.6", + "MarkupSafe": "3.0.4", + "PyYAML": "6.0.3", + "Pygments": "2.21.0", + "aiohappyeyeballs": "2.7.1", + "aiohttp": "3.14.5", + "aiosignal": "1.4.0", + "airportsdata": "20260905", + "annotated-doc": "0.0.5", + "annotated-types": "0.8.0", + "anthropic": "2.3.0", + "anyio": "4.15.1", + "apache-tvm-ffi": "0.1.11", + "asttokens": "3.0.2", + "attrs": "26.1.0", + "blobfile": "3.0.0", + "build": "1.6.1", + "certifi": "2026.10.23", + "cffi": "2.1.1", + "charset-normalizer": "3.5.2", + "click": "8.5.0", + "cloudpickle": "3.1.2", + "compressed-tensors": "0.18.0", + "cryptography": "50.0.2", + "cuda-bindings": "13.4.4", + "cuda-core": "1.2.2", + "cuda-pathfinder": "1.8.4", + "cuda-python": "13.4.4", + "cuda-tile": "1.6.0rc5", + "cuda-toolkit": "13.0.3.0", + "datasets": "5.1.0", + "dill": "0.4.1", + "diskcache": "5.6.3", + "distro": "1.9.0", + "docstring_parser": "0.18.0", + "easydict": "1.13", + "einops": "0.8.2", + "executing": "2.3.0", + "fastapi": "0.162.0", + "filelock": "4.2.4", + "flash-attn-4": "4.0.0b36", + "flashinfer-python": "0.7.1", + "frozenlist": "1.8.0", + "fsspec": "2026.7.0", + "gguf": "0.19.0", + "grpcio": "1.84.1", + "grpcio-health-checking": "1.84.1", + "grpcio-reflection": "1.84.1", + "h11": "0.16.0", + "hf-xet": "1.7.0", + "httpcore": "1.0.9", + "httpcore2": "2.16.0", + "httpx": "0.28.1", + "httpx2": "2.16.0", + "huggingface_hub": "1.33.0", + "humming-kernels": "0.1.12", + "idna": "3.20", + "interegular": "0.3.3", + "ipython": "9.17.1", + "ipython_pygments_lexers": "1.1.1", + "jedi": "0.20.1", + "jiter": "0.18.0", + "jsonschema": "4.26.0", + "jsonschema-specifications": "2025.9.1", + "kernels": "0.14.1", + "kernels-data": "0.16.2", + "lark": "1.3.1", + "llguidance": "1.9.1", + "llvmlite": "0.47.0", + "loguru": "0.7.3", + "lxml": "6.1.3", + "markdown-it-py": "4.2.0", + "matplotlib-inline": "0.2.2", + "mdurl": "0.1.2", + "mistral_common": "1.12.0", + "ml_dtypes": "0.6.0", + "modelscope": "1.40.2", + "modelscope-hub": "0.5.0", + "mpmath": "1.3.0", + "msgspec": "0.22.0", + "multidict": "7.2.0", + "multiprocess": "0.70.19", + "nccl-extensions": "0.1.0", + "nccl4py": "0.6.0", + "nest-asyncio": "1.6.0", + "networkx": "3.7", + "ninja": "1.13.2", + "numba": "0.65.1", + "numpy": "2.3.5", + "nvidia-cublas": "13.1.1.3", + "nvidia-cuda-cccl": "13.3.4.3.1", + "nvidia-cuda-crt": "13.4.92", + "nvidia-cuda-cupti": "13.0.85", + "nvidia-cuda-nvcc": "13.4.92", + "nvidia-cuda-nvrtc": "13.0.88", + "nvidia-cuda-runtime": "13.0.96", + "nvidia-cudnn-cu13": "9.24.0.43", + "nvidia-cudnn-frontend": "1.31.0", + "nvidia-cufft": "12.0.0.61", + "nvidia-cufile": "1.15.1.6", + "nvidia-curand": "10.4.0.35", + "nvidia-cusolver": "12.0.4.66", + "nvidia-cusparse": "12.6.3.3", + "nvidia-cusparselt-cu13": "0.8.1", + "nvidia-cutlass-dsl": "4.8.0", + "nvidia-cutlass-dsl-libs-base": "4.8.0", + "nvidia-cutlass-dsl-libs-core": "4.8.0", + "nvidia-cutlass-dsl-libs-cu12": "4.8.0", + "nvidia-cutlass-dsl-libs-cu13": "4.8.0", + "nvidia-mathdx": "25.6.0", + "nvidia-ml-py": "13.615.71", + "nvidia-nccl-cu13": "2.30.7", + "nvidia-nvjitlink": "13.4.92", + "nvidia-nvshmem-cu13": "3.4.5", + "nvidia-nvtx": "13.0.85", + "nvidia-nvvm": "13.4.92", + "nvshmem4py-cu13": "0.4.1", + "openai": "2.6.1", + "openai-harmony": "0.0.4", + "opentelemetry-api": "1.45.1", + "orjson": "3.13.0", + "outlines": "0.1.11", + "outlines_core": "0.1.26", + "packaging": "26.3", + "pandas": "3.1.0", + "parso": "0.8.7", + "partial-json-parser": "0.2.1.1.post7", + "pexpect": "4.9.0", + "pillow": "13.0.0", + "pip": "24.0", + "prometheus_client": "0.26.0", + "prompt_toolkit": "3.0.53", + "propcache": "0.5.4", + "protobuf": "7.36.2", + "psutil": "7.2.2", + "ptyprocess": "0.7.0", + "pure_eval": "0.2.4", + "py-spy": "0.4.2", + "pyarrow": "26.0.0", + "pybase64": "1.5.1", + "pycountry": "26.2.16", + "pycparser": "3.12", + "pycryptodomex": "3.24.1", + "pydantic": "2.14.1", + "pydantic-extra-types": "2.11.1", + "pydantic_core": "2.50.1", + "pyproject_hooks": "1.3.3", + "python-dateutil": "3.0.0", + "python-multipart": "0.0.32", + "pyzmq": "27.2.0", + "quack-kernels": "0.6.5", + "referencing": "0.37.0", + "regex": "2026.9.29", + "requests": "2.34.2", + "rich": "15.0.0", + "rpds-py": "2026.9.1", + "safetensors": "0.8.0", + "scipy": "1.18.1", + "sentencepiece": "0.2.1", + "setproctitle": "1.3.8", + "setuptools": "84.2.1", + "sgl-deep-ep": "0.1.2.post1", + "sgl-deep-gemm": "0.2.2", + "sglang": "0.5.22", + "sglang-kernel": "0.4.9", + "shellingham": "1.5.4", + "six": "1.17.0", + "smg-grpc-proto": "0.4.27", + "smg-grpc-servicer": "0.14.0", + "sniffio": "1.3.1", + "soundfile": "0.13.1", + "stack-data": "0.6.3", + "starlette": "1.10.0", + "sympy": "1.14.0", + "tabulate": "0.10.0", + "tiktoken": "0.14.0", + "tilelang": "0.1.12", + "timm": "1.0.16", + "tokenizers": "0.23.2", + "tokenspeed-mla": "0.1.8", + "tokenspeed-triton": "3.9.10.post20261008", + "tomlkit": "0.15.2", + "torch": "2.14.1", + "torch_c_dlpack_ext": "0.1.5", + "torch_memory_saver": "0.0.10", + "torchaudio": "2.11.0", + "torchcodec": "0.17.0", + "torchvision": "0.29.1", + "tqdm": "4.70.1", + "traitlets": "5.16.1", + "transformers": "5.19.0", + "triton": "3.8.0", + "truststore": "0.10.5", + "typer": "0.27.3", + "typing-inspection": "0.4.4", + "typing_extensions": "4.16.0", + "tzdata": "2026.5", + "urllib3": "2.8.0", + "uvicorn": "0.54.0", + "uvloop": "0.23.0", + "watchfiles": "1.3.0", + "wcwidth": "0.9.3", + "xgrammar": "0.2.7", + "xxhash": "4.0.2", + "yarl": "1.25.1", + "z3-solver": "4.15.4.0", + "zstandard": "0.25.0" + } +} diff --git a/benchmarks/2026-10-25-a100/results/packages-vllm.json b/benchmarks/2026-10-25-a100/results/packages-vllm.json new file mode 100644 index 0000000..2f2f202 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/packages-vllm.json @@ -0,0 +1,204 @@ +{ + "python": "3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]", + "packages": { + "Jinja2": "3.1.6", + "MarkupSafe": "3.0.4", + "PyJWT": "2.15.1", + "PyYAML": "6.0.3", + "Pygments": "2.21.0", + "agent-detector": "2.0.0", + "aiohappyeyeballs": "2.7.1", + "aiohttp": "3.14.5", + "aiosignal": "1.4.0", + "annotated-doc": "0.0.5", + "annotated-types": "0.8.0", + "anthropic": "2.3.0", + "anyio": "4.15.1", + "apache-tvm-ffi": "0.1.11", + "astor": "0.8.1", + "attrs": "26.1.0", + "blake3": "1.0.11", + "cachetools": "7.2.4", + "cbor2": "6.1.5", + "certifi": "2026.10.23", + "cffi": "2.1.1", + "charset-normalizer": "3.5.2", + "click": "8.5.0", + "cloudpickle": "3.1.2", + "compressed-tensors": "0.17.0", + "cryptography": "50.0.2", + "cuda-bindings": "13.4.4", + "cuda-core": "1.2.2", + "cuda-pathfinder": "1.8.4", + "cuda-python": "13.4.4", + "cuda-tile": "1.7.0", + "cuda-toolkit": "13.0.3.0", + "depyf": "0.20.0", + "detect-installer": "0.2.1", + "dill": "0.4.1", + "dnspython": "2.9.0", + "docstring_parser": "0.18.0", + "einops": "0.8.2", + "email-validator": "2.3.0", + "fastapi": "0.136.3", + "fastapi-cli": "0.0.32", + "fastapi-cloud-cli": "0.26.0", + "fastar": "0.12.0", + "fastsafetensors": "0.5.0", + "filelock": "4.2.4", + "flashinfer-python": "0.7.0.post1", + "frozenlist": "1.8.0", + "fsspec": "2026.9.0", + "googleapis-common-protos": "1.76.0", + "grpcio": "1.84.1", + "h11": "0.16.0", + "hf-xet": "1.7.0", + "httpcore": "1.0.9", + "httpcore2": "2.16.0", + "httptools": "0.9.0", + "httpx": "0.28.1", + "httpx2": "2.16.0", + "huggingface_hub": "2.3.0", + "humming-kernels": "0.1.17", + "idna": "3.20", + "ijson": "3.6.0", + "instanttensor": "0.2.2", + "interegular": "0.3.3", + "jiter": "0.18.0", + "jmespath": "1.1.0", + "jsonschema": "4.26.0", + "jsonschema-specifications": "2025.9.1", + "lark": "1.2.2", + "llguidance": "1.7.6", + "llvmlite": "0.47.0", + "lm-format-enforcer": "0.11.3", + "loguru": "0.7.3", + "markdown-it-py": "4.2.0", + "mcp": "2.3.0", + "mcp-types": "2.3.0", + "mdurl": "0.1.2", + "mistral_common": "1.12.0", + "ml_dtypes": "0.6.0", + "model-hosting-container-standards": "0.1.16", + "mpmath": "1.3.0", + "msgspec": "0.22.0", + "multidict": "7.2.0", + "nccl-extensions": "0.1.0", + "nccl4py": "0.6.0", + "networkx": "3.7", + "ninja": "1.13.2", + "numba": "0.65.0", + "numpy": "2.3.5", + "nvidia-cublas": "13.1.1.3", + "nvidia-cuda-cccl": "13.3.4.3.1", + "nvidia-cuda-crt": "13.4.92", + "nvidia-cuda-cupti": "13.0.85", + "nvidia-cuda-nvcc": "13.4.92", + "nvidia-cuda-nvrtc": "13.0.88", + "nvidia-cuda-runtime": "13.0.96", + "nvidia-cudnn-cu13": "9.20.0.48", + "nvidia-cudnn-frontend": "1.31.0", + "nvidia-cufft": "12.0.0.61", + "nvidia-cufile": "1.15.1.6", + "nvidia-curand": "10.4.0.35", + "nvidia-cusolver": "12.0.4.66", + "nvidia-cusparse": "12.6.3.3", + "nvidia-cusparselt-cu13": "0.8.1", + "nvidia-cutlass-dsl": "4.8.0", + "nvidia-cutlass-dsl-libs-base": "4.8.0", + "nvidia-cutlass-dsl-libs-core": "4.8.0", + "nvidia-cutlass-dsl-libs-cu12": "4.8.0", + "nvidia-cutlass-dsl-libs-cu13": "4.8.0", + "nvidia-ml-py": "13.615.71", + "nvidia-nccl-cu13": "2.29.7", + "nvidia-nvjitlink": "13.4.92", + "nvidia-nvshmem-cu13": "3.4.5", + "nvidia-nvtx": "13.0.85", + "nvidia-nvvm": "13.4.92", + "nvtx": "0.2.15", + "openai": "3.37.0", + "opencv-python-headless": "5.0.0.93", + "opentelemetry-api": "1.45.1", + "opentelemetry-exporter-http-transport": "0.66b1", + "opentelemetry-exporter-otlp": "1.45.1", + "opentelemetry-exporter-otlp-common": "0.66b1", + "opentelemetry-exporter-otlp-proto-common": "1.45.1", + "opentelemetry-exporter-otlp-proto-grpc": "1.45.1", + "opentelemetry-exporter-otlp-proto-http": "1.45.1", + "opentelemetry-proto": "1.45.1", + "opentelemetry-sdk": "1.45.1", + "opentelemetry-semantic-conventions": "0.66b1", + "opentelemetry-semantic-conventions-ai": "0.5.1", + "oss-harmony": "0.0.11", + "outlines_core": "0.2.14", + "packaging": "26.3", + "partial-json-parser": "0.2.1.1.post7", + "pillow": "13.0.0", + "pip": "24.0", + "prometheus-fastapi-instrumentator": "8.1.0", + "prometheus_client": "0.26.0", + "propcache": "0.5.4", + "protobuf": "7.36.2", + "psutil": "7.2.2", + "py-cpuinfo": "9.0.0", + "pybase64": "1.5.1", + "pycountry": "26.2.16", + "pycparser": "3.12", + "pydantic": "2.14.1", + "pydantic-extra-types": "2.11.1", + "pydantic-settings": "2.16.1", + "pydantic_core": "2.50.1", + "pynvvideocodec": "2.0.4", + "python-dotenv": "1.2.4", + "python-json-logger": "4.2.0", + "python-multipart": "0.0.32", + "pyzmq": "27.2.0", + "quack-kernels": "0.6.5", + "referencing": "0.37.0", + "regex": "2026.9.29", + "requests": "2.34.2", + "rich": "15.0.0", + "rich-toolkit": "0.20.6", + "rignore": "0.8.1", + "rpds-py": "2026.9.1", + "safetensors": "0.8.0", + "sentencepiece": "0.2.2", + "sentry-sdk": "2.73.0", + "setproctitle": "1.3.8", + "setuptools": "80.10.2", + "shellingham": "1.5.4", + "six": "1.17.0", + "sniffio": "1.3.1", + "sse-starlette": "3.5.1", + "starlette": "1.10.0", + "supervisor": "4.3.0", + "sympy": "1.14.0", + "tabulate": "0.10.0", + "tiktoken": "0.14.0", + "tilelang": "0.1.12", + "tokenizers": "0.23.3", + "tokenspeed-mla": "0.2.15", + "tokenspeed-triton": "3.9.10.post20261008", + "torch": "2.13.0", + "torch_c_dlpack_ext": "0.1.5", + "torchaudio": "2.11.0", + "torchcodec": "0.17.0", + "torchvision": "0.28.0", + "tqdm": "4.70.1", + "transformers": "5.19.0", + "triton": "3.7.1", + "truststore": "0.10.5", + "typer": "0.27.3", + "typing-inspection": "0.4.4", + "typing_extensions": "4.16.0", + "urllib3": "2.8.0", + "uvicorn": "0.54.0", + "uvloop": "0.23.0", + "vllm": "0.32.0", + "watchfiles": "1.3.0", + "websockets": "17.3", + "xgrammar": "0.2.8", + "yarl": "1.25.1", + "z3-solver": "4.15.4.0" + } +} diff --git a/benchmarks/2026-10-25-a100/results/qwen-download.json b/benchmarks/2026-10-25-a100/results/qwen-download.json new file mode 100644 index 0000000..5da4760 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-download.json @@ -0,0 +1,9 @@ +{ + "model": "Qwen/Qwen3.8-27B", + "revision": "1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0", + "started": 1792855127.0880525, + "weight_bytes": 55563006776, + "snapshot": "/workspace/hf-cache/hub/models--Qwen--Qwen3.8-27B/snapshots/1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0", + "elapsed_seconds": 188.3246591091156, + "completed": true +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-ollama-benchmark.json b/benchmarks/2026-10-25-a100/results/qwen-ollama-benchmark.json new file mode 100644 index 0000000..e3efd59 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-ollama-benchmark.json @@ -0,0 +1,256 @@ +{ + "started_utc": "2026-10-24T16:10:34.409787+00:00", + "backend": "ollama", + "model": "qwen3.8:27b", + "kit_version": "0.3.1", + "endpoint": "http://127.0.0.1:11434", + "messages": [ + { + "role": "user", + "content": "List the integers from 1 to 200, separated by commas. Do not explain or stop early." + } + ], + "settings": { + "temperature": 0, + "max_tokens": 64, + "top_p": 1, + "top_k": 40, + "repetition_penalty": 1, + "seed": 7, + "think": false, + "num_ctx": 8192 + }, + "method": "2 warmups, 10 sequential repeats, 5 streaming repeats, then 4 concurrent requests; same prompt, engine prefix caching enabled; localhost HTTP; no network-isolation claim", + "warmups": [ + { + "seconds": 1.6998133810120635, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 37.651192016087435, + "finish_reason": "length" + }, + { + "seconds": 1.599836287961807, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 40.00409321977317, + "finish_reason": "length" + } + ], + "sequential": [ + { + "seconds": 1.5999901709728874, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 40.00024572718735, + "finish_reason": "length" + }, + { + "seconds": 1.5002975760144182, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 42.658203961122005, + "finish_reason": "length" + }, + { + "seconds": 1.5995923950104043, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 40.010192721367446, + "finish_reason": "length" + }, + { + "seconds": 1.8969633930246346, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 33.73813128673742, + "finish_reason": "length" + }, + { + "seconds": 1.8001291790278628, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 35.55300405416593, + "finish_reason": "length" + }, + { + "seconds": 1.4986844129743986, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 42.704120658051636, + "finish_reason": "length" + }, + { + "seconds": 1.5056036050082184, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 42.50786846359248, + "finish_reason": "length" + }, + { + "seconds": 1.4932661299826577, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 42.85907161153067, + "finish_reason": "length" + }, + { + "seconds": 1.4982115339953452, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 42.717599316118225, + "finish_reason": "length" + }, + { + "seconds": 1.5978173430194147, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 40.05464096356498, + "finish_reason": "length" + } + ], + "streaming": [ + { + "seconds": 1.4946472040028311, + "ttft_seconds": 0.26303991803433746, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 1.5006819469854236, + "ttft_seconds": 0.26653650897787884, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 1.7002749990206212, + "ttft_seconds": 0.2678687300067395, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 1.7011202639550902, + "ttft_seconds": 0.26499779598088935, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 1.5978856720030308, + "ttft_seconds": 0.2627568189636804, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + } + ], + "concurrent": [ + { + "seconds": 6.200867095962167, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 10.321137190905935, + "finish_reason": "length" + }, + { + "seconds": 2.897904796001967, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 22.084921522714012, + "finish_reason": "length" + }, + { + "seconds": 1.4959463420091197, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 42.78228316267365, + "finish_reason": "length" + }, + { + "seconds": 4.495266512967646, + "usage": { + "prompt_tokens": 35, + "completion_tokens": 64, + "total_tokens": 99 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 14.237198131718564, + "finish_reason": "length" + } + ], + "concurrent_wall_seconds": 6.203762577031739, + "summary": { + "sequential_n": 10, + "median_latency_seconds": 1.5517104740138166, + "min_latency_seconds": 1.4932661299826577, + "max_latency_seconds": 1.8969633930246346, + "median_output_tokens_per_second": 41.28125471357873, + "median_ttft_seconds": 0.26499779598088935, + "concurrent_output_tokens_per_second": 41.265280033086974, + "completion_tokens": [ + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64 + ] + }, + "completed_utc": "2026-10-24T16:11:07.917218+00:00" +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-ollama-benchmark.log b/benchmarks/2026-10-25-a100/results/qwen-ollama-benchmark.log new file mode 100644 index 0000000..50b1edf --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-ollama-benchmark.log @@ -0,0 +1,21 @@ +{ + "sequential_n": 10, + "median_latency_seconds": 1.5517104740138166, + "min_latency_seconds": 1.4932661299826577, + "max_latency_seconds": 1.8969633930246346, + "median_output_tokens_per_second": 41.28125471357873, + "median_ttft_seconds": 0.26499779598088935, + "concurrent_output_tokens_per_second": 41.265280033086974, + "completion_tokens": [ + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64 + ] +} diff --git a/benchmarks/2026-10-25-a100/results/qwen-ollama-probes.json b/benchmarks/2026-10-25-a100/results/qwen-ollama-probes.json new file mode 100644 index 0000000..9a2072b --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-ollama-probes.json @@ -0,0 +1,199 @@ +{ + "model": "qwen3.8:27b", + "backend": "ollama", + "results": [ + { + "name": "locality_and_capabilities", + "passed": true, + "seconds": 0.23899634700501338, + "data": { + "model": "qwen3.8:27b", + "detected": true, + "capabilities": [ + "completion", + "vision", + "tools", + "thinking" + ], + "context_window": 262144, + "remote": false, + "remote_host": null, + "error": null, + "routing_verified": true, + "supported": true + } + }, + { + "name": "chat", + "passed": true, + "seconds": 91.36644371901639, + "data": { + "id": "chatcmpl-c9a8c270815c4e128ce9689d", + "object": "chat.completion", + "created": 1792857177, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "4" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 25, + "completion_tokens": 2, + "total_tokens": 27 + } + } + }, + { + "name": "stream_matches_nonstream", + "passed": true, + "seconds": 4.191187092976179, + "data": { + "response": { + "id": "chatcmpl-603fbf6d75b44540b3944ef4", + "object": "chat.completion", + "created": 1792857268, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "```python\ndef add(a, b):\n return a + b\n```" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 25, + "completion_tokens": 18, + "total_tokens": 43 + } + }, + "streamed_text": "```python\ndef add(a, b):\n return a + b\n```", + "chunks": 15 + } + }, + { + "name": "structured_json_schema", + "passed": true, + "seconds": 3.203925974026788, + "data": { + "id": "chatcmpl-281bc671a58748b1a270b6bb", + "object": "chat.completion", + "created": 1792857273, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\n \"city\": \"Paris\",\n \"country\": \"France\"\n}" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 23, + "completion_tokens": 20, + "total_tokens": 43 + } + } + }, + { + "name": "tool_call_without_execution", + "passed": true, + "seconds": 3.19867263402557, + "data": { + "id": "chatcmpl-a6a54912a0f14c65b7d41178", + "object": "chat.completion", + "created": 1792857276, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_4dq3h0zy", + "type": "function", + "function": { + "name": "lookup_weather", + "arguments": "{\"city\": \"Sydney\"}" + } + } + ], + "function_call": { + "name": "lookup_weather", + "arguments": "{\"city\": \"Sydney\"}" + } + }, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 274, + "completion_tokens": 28, + "total_tokens": 302 + } + } + }, + { + "name": "reasoning_metadata", + "passed": true, + "seconds": 2.7009540389990434, + "data": { + "id": "chatcmpl-43152fa203674b95826a873f", + "object": "chat.completion", + "created": 1792857279, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "2 + 2 = **4**", + "thinking": "The user is asking a simple arithmetic question: what is 2 plus 2. The answer is 4." + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 18, + "completion_tokens": 35, + "total_tokens": 53 + } + } + }, + { + "name": "text_completion", + "passed": true, + "seconds": 1.5013841969775967, + "data": { + "id": "cmpl-3d9f4e42f3434f3e9715789f", + "object": "text_completion", + "created": 1792857283, + "model": "qwen3.8:27b", + "choices": [ + { + "text": "The capital of France is **Paris**.", + "index": 0, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 17, + "completion_tokens": 9, + "total_tokens": 26 + } + } + } + ] +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-ollama-probes.log b/benchmarks/2026-10-25-a100/results/qwen-ollama-probes.log new file mode 100644 index 0000000..046941a --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-ollama-probes.log @@ -0,0 +1,7 @@ +locality_and_capabilities True 0.239 +chat True 91.366 +stream_matches_nonstream True 4.191 +structured_json_schema True 3.204 +tool_call_without_execution True 3.199 +reasoning_metadata True 2.701 +text_completion True 1.501 diff --git a/benchmarks/2026-10-25-a100/results/qwen-ollama-vision.json b/benchmarks/2026-10-25-a100/results/qwen-ollama-vision.json new file mode 100644 index 0000000..dbee445 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-ollama-vision.json @@ -0,0 +1,29 @@ +{ + "backend": "ollama", + "model": "qwen3.8:27b", + "input": "vision-input-red.png", + "passed": true, + "seconds": 9.878116007021163, + "response": { + "id": "chatcmpl-ae1e7cc4fc1a40bf92ed2ae7", + "object": "chat.completion", + "created": 1792858268, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": " Red" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 38, + "completion_tokens": 2, + "total_tokens": 40 + } + }, + "limit": "One solid-color synthetic image; not a general vision benchmark." +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-ollama-vision.log b/benchmarks/2026-10-25-a100/results/qwen-ollama-vision.log new file mode 100644 index 0000000..15553a1 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-ollama-vision.log @@ -0,0 +1,29 @@ +{ + "backend": "ollama", + "model": "qwen3.8:27b", + "input": "vision-input-red.png", + "passed": true, + "seconds": 9.878116007021163, + "response": { + "id": "chatcmpl-ae1e7cc4fc1a40bf92ed2ae7", + "object": "chat.completion", + "created": 1792858268, + "model": "qwen3.8:27b", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": " Red" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 38, + "completion_tokens": 2, + "total_tokens": 40 + } + }, + "limit": "One solid-color synthetic image; not a general vision benchmark." +} diff --git a/benchmarks/2026-10-25-a100/results/qwen-sglang-benchmark.json b/benchmarks/2026-10-25-a100/results/qwen-sglang-benchmark.json new file mode 100644 index 0000000..231f590 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-sglang-benchmark.json @@ -0,0 +1,289 @@ +{ + "started_utc": "2026-10-24T16:15:10.315476+00:00", + "backend": "sglang", + "model": "Qwen/Qwen3.8-27B", + "kit_version": "0.3.1", + "endpoint": "http://127.0.0.1:30000/v1", + "messages": [ + { + "role": "user", + "content": "List the integers from 1 to 200, separated by commas. Do not explain or stop early." + } + ], + "settings": { + "temperature": 0, + "max_tokens": 64, + "top_p": 1, + "top_k": 40, + "repetition_penalty": 1, + "seed": 7, + "chat_template_kwargs": { + "enable_thinking": false + } + }, + "method": "2 warmups, 10 sequential repeats, 5 streaming repeats, then 4 concurrent requests; same prompt, engine prefix caching enabled; localhost HTTP; no network-isolation claim", + "warmups": [ + { + "seconds": 3.225579655962065, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 19.841394982047433, + "finish_reason": "length" + }, + { + "seconds": 3.196054163039662, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.02469192797775, + "finish_reason": "length" + } + ], + "sequential": [ + { + "seconds": 3.1911436750087887, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.05550564871503, + "finish_reason": "length" + }, + { + "seconds": 3.194885301985778, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.032018038400583, + "finish_reason": "length" + }, + { + "seconds": 3.1957694020238705, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.026476240578873, + "finish_reason": "length" + }, + { + "seconds": 3.1876708780182526, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.077355049837593, + "finish_reason": "length" + }, + { + "seconds": 3.184126175008714, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.099706004842865, + "finish_reason": "length" + }, + { + "seconds": 3.177367937983945, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.142457924028875, + "finish_reason": "length" + }, + { + "seconds": 3.174237983999774, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.162319373217027, + "finish_reason": "length" + }, + { + "seconds": 3.1735461790231057, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.16671458037543, + "finish_reason": "length" + }, + { + "seconds": 3.1756289650220424, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.153487924731714, + "finish_reason": "length" + }, + { + "seconds": 3.1777140260091983, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 20.140264188711722, + "finish_reason": "length" + } + ], + "streaming": [ + { + "seconds": 3.182744260004256, + "ttft_seconds": 0.13516131503274664, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 3.1860577950137667, + "ttft_seconds": 0.13530413701664656, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 3.175955586018972, + "ttft_seconds": 0.13531165098538622, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 3.1841496800188906, + "ttft_seconds": 0.13496078498428687, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 3.177900751004927, + "ttft_seconds": 0.1355894590378739, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + } + ], + "concurrent": [ + { + "seconds": 3.24652943899855, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 19.713358896798404, + "finish_reason": "length" + }, + { + "seconds": 3.2458618409582414, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 19.717413474723237, + "finish_reason": "length" + }, + { + "seconds": 3.245319620007649, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 19.72070781732406, + "finish_reason": "length" + }, + { + "seconds": 3.2448719299864024, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 19.7234286532437, + "finish_reason": "length" + } + ], + "concurrent_wall_seconds": 3.25067251897417, + "summary": { + "sequential_n": 10, + "median_latency_seconds": 3.1809201005089562, + "min_latency_seconds": 3.1735461790231057, + "max_latency_seconds": 3.1957694020238705, + "median_output_tokens_per_second": 20.11998509677729, + "median_ttft_seconds": 0.13530413701664656, + "concurrent_output_tokens_per_second": 78.75293450992939, + "completion_tokens": [ + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64 + ] + }, + "completed_utc": "2026-10-24T16:16:07.737992+00:00" +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-sglang-benchmark.log b/benchmarks/2026-10-25-a100/results/qwen-sglang-benchmark.log new file mode 100644 index 0000000..269a3f5 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-sglang-benchmark.log @@ -0,0 +1,21 @@ +{ + "sequential_n": 10, + "median_latency_seconds": 3.1809201005089562, + "min_latency_seconds": 3.1735461790231057, + "max_latency_seconds": 3.1957694020238705, + "median_output_tokens_per_second": 20.11998509677729, + "median_ttft_seconds": 0.13530413701664656, + "concurrent_output_tokens_per_second": 78.75293450992939, + "completion_tokens": [ + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64 + ] +} diff --git a/benchmarks/2026-10-25-a100/results/qwen-sglang-probes.json b/benchmarks/2026-10-25-a100/results/qwen-sglang-probes.json new file mode 100644 index 0000000..63f2215 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-sglang-probes.json @@ -0,0 +1,331 @@ +{ + "backend": "sglang", + "model": "Qwen/Qwen3.8-27B", + "url": "http://127.0.0.1:30000/v1", + "results": [ + { + "name": "model_listing", + "passed": true, + "seconds": 0.031355929968412966, + "data": { + "object": "list", + "data": [ + { + "id": "Qwen/Qwen3.8-27B", + "object": "model", + "created": 1792858498, + "owned_by": "sglang", + "root": "Qwen/Qwen3.8-27B", + "parent": null, + "max_model_len": 8192 + } + ] + } + }, + { + "name": "chat", + "passed": true, + "seconds": 0.26855734799755737, + "data": { + "id": "chatcmpl-0f1b204d2ef0484ca72f822f", + "object": "chat.completion", + "created": 1792858498, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "4" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 25, + "total_tokens": 27, + "completion_tokens": 2, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + } + }, + { + "name": "stream_matches_nonstream", + "passed": true, + "seconds": 1.9800722159561701, + "data": { + "response": { + "id": "chatcmpl-51b1bae0abe640d9820529ef", + "object": "chat.completion", + "created": 1792858499, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "```python\ndef add(a, b):\n return a + b\n```" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 27, + "total_tokens": 45, + "completion_tokens": 18, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + }, + "stream_text": "```python\ndef add(a, b):\n return a + b\n```", + "chunks": 19 + } + }, + { + "name": "structured_json_schema", + "passed": true, + "seconds": 1.392129454005044, + "data": { + "id": "chatcmpl-919fe1a1c24a4762abbbb328", + "object": "chat.completion", + "created": 1792858501, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\n \"city\": \"Paris\",\n \"country\": \"France\"\n}" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 21, + "total_tokens": 41, + "completion_tokens": 20, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + } + }, + { + "name": "forced_tool_call_without_execution", + "passed": true, + "seconds": 2.307089476962574, + "data": { + "id": "chatcmpl-07f835c4edd244b9b241b776", + "object": "chat.completion", + "created": 1792858502, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_3be8727e7af545ac82ac075f", + "type": "function", + "function": { + "name": "lookup_weather", + "arguments": "{\"city\": \"Sydney\"}" + } + } + ], + "function_call": { + "name": "lookup_weather", + "arguments": "{\"city\": \"Sydney\"}" + } + }, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 293, + "total_tokens": 321, + "completion_tokens": 28, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + } + }, + { + "name": "reasoning_metadata", + "passed": true, + "seconds": 2.082731103990227, + "data": { + "id": "chatcmpl-c5ebcafab10349b9bb5a0783", + "object": "chat.completion", + "created": 1792858504, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "\n\n2 plus 2 equals **4**.", + "reasoning_content": "The user is asking a simple arithmetic question: 2 + 2. The answer is 4.\n" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 48, + "total_tokens": 81, + "completion_tokens": 33, + "prompt_tokens_details": null, + "reasoning_tokens": 23 + } + } + }, + { + "name": "text_completion", + "passed": true, + "seconds": 1.6253864399623126, + "data": { + "id": "cmpl-566e743ff3b54a03bc8b1556", + "object": "text_completion", + "created": 1792858508, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "text": " Paris.\nThe capital of Germany is Berlin.\nThe capital of Italy is Rome.\nThe capital of Spain is Madrid.\nThe capital of Portugal is", + "index": 0, + "finish_reason": "length" + } + ], + "usage": { + "prompt_tokens": 5, + "total_tokens": 37, + "completion_tokens": 32, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + } + }, + { + "name": "context_overflow_nonstream", + "passed": true, + "seconds": 0.42467983899405226, + "data": { + "rejected_with": "RuntimeError", + "message": "OpenAI-compatible request POST http://127.0.0.1:30000/v1/chat/completions failed with HTTP 400: {\"object\":\"error\",\"message\":\"The input (9012 tokens) is longer than the model's context length (8192 tokens).\",\"type\":\"BadRequestError\",\"param\":null,\"code\":400}" + } + }, + { + "name": "context_overflow_stream", + "passed": true, + "seconds": 0.0028521170024760067, + "data": { + "rejected_with": "RuntimeError", + "message": "OpenAI-compatible request POST http://127.0.0.1:30000/v1/chat/completions failed with HTTP 400: {\"object\":\"error\",\"message\":\"The input (9012 tokens) is longer than the model's context length (8192 tokens).\",\"type\":\"BadRequestError\",\"param\":null,\"code\":400}" + } + }, + { + "name": "four_concurrent_requests", + "passed": true, + "seconds": 1.1980813349946402, + "data": { + "requests": 4, + "wall_seconds": 1.198044534015935, + "responses": [ + { + "id": "chatcmpl-76f90857e74648d181e55c0f", + "object": "chat.completion", + "created": 1792858508, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "10" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + }, + { + "id": "chatcmpl-b750bf53342340a599813565", + "object": "chat.completion", + "created": 1792858508, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "11" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + }, + { + "id": "chatcmpl-750dba6a375b40b0ad355472", + "object": "chat.completion", + "created": 1792858508, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "12" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + }, + { + "id": "chatcmpl-46309db4ff9e4a7db473e112", + "object": "chat.completion", + "created": 1792858508, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "13" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "reasoning_tokens": 0 + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-sglang-probes.log b/benchmarks/2026-10-25-a100/results/qwen-sglang-probes.log new file mode 100644 index 0000000..9c1dbbd --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-sglang-probes.log @@ -0,0 +1,10 @@ +model_listing PASS 0.031 +chat PASS 0.269 +stream_matches_nonstream PASS 1.98 +structured_json_schema PASS 1.392 +forced_tool_call_without_execution PASS 2.307 +reasoning_metadata PASS 2.083 +text_completion PASS 1.625 +context_overflow_nonstream PASS 0.425 +context_overflow_stream PASS 0.003 +four_concurrent_requests PASS 1.198 diff --git a/benchmarks/2026-10-25-a100/results/qwen-sglang-vision.json b/benchmarks/2026-10-25-a100/results/qwen-sglang-vision.json new file mode 100644 index 0000000..976358b --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-sglang-vision.json @@ -0,0 +1,34 @@ +{ + "backend": "sglang", + "model": "Qwen/Qwen3.8-27B", + "input": "vision-input-red.png", + "passed": true, + "seconds": 0.3171468020300381, + "response": { + "id": "chatcmpl-93d1964a2fe543c9a5f7bc33", + "object": "chat.completion", + "created": 1792858567, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": " Red" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 93, + "total_tokens": 95, + "completion_tokens": 2, + "prompt_tokens_details": { + "cached_tokens": 0, + "image_tokens": 64 + }, + "reasoning_tokens": 0 + } + }, + "limit": "One solid-color synthetic image; not a general vision benchmark." +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-sglang-vision.log b/benchmarks/2026-10-25-a100/results/qwen-sglang-vision.log new file mode 100644 index 0000000..fd34690 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-sglang-vision.log @@ -0,0 +1,34 @@ +{ + "backend": "sglang", + "model": "Qwen/Qwen3.8-27B", + "input": "vision-input-red.png", + "passed": true, + "seconds": 0.3171468020300381, + "response": { + "id": "chatcmpl-93d1964a2fe543c9a5f7bc33", + "object": "chat.completion", + "created": 1792858567, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": " Red" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 93, + "total_tokens": 95, + "completion_tokens": 2, + "prompt_tokens_details": { + "cached_tokens": 0, + "image_tokens": 64 + }, + "reasoning_tokens": 0 + } + }, + "limit": "One solid-color synthetic image; not a general vision benchmark." +} diff --git a/benchmarks/2026-10-25-a100/results/qwen-vllm-benchmark.json b/benchmarks/2026-10-25-a100/results/qwen-vllm-benchmark.json new file mode 100644 index 0000000..a816fb4 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-vllm-benchmark.json @@ -0,0 +1,321 @@ +{ + "started_utc": "2026-10-24T16:18:23.950564+00:00", + "backend": "vllm", + "model": "Qwen/Qwen3.8-27B", + "kit_version": "0.3.1", + "endpoint": "http://127.0.0.1:8000/v1", + "messages": [ + { + "role": "user", + "content": "List the integers from 1 to 200, separated by commas. Do not explain or stop early." + } + ], + "settings": { + "temperature": 0, + "max_tokens": 64, + "top_p": 1, + "top_k": 40, + "repetition_penalty": 1, + "seed": 7, + "chat_template_kwargs": { + "enable_thinking": false + } + }, + "method": "2 warmups, 10 sequential repeats, 5 streaming repeats, then 4 concurrent requests; same prompt, engine prefix caching enabled; localhost HTTP; no network-isolation claim", + "warmups": [ + { + "seconds": 4.069094707956538, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.728314181249475, + "finish_reason": "length" + }, + { + "seconds": 4.036505907017272, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.8552970004922, + "finish_reason": "length" + } + ], + "sequential": [ + { + "seconds": 4.035993232973851, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.857311027462432, + "finish_reason": "length" + }, + { + "seconds": 4.049141025985591, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.80582142960109, + "finish_reason": "length" + }, + { + "seconds": 4.026798266975675, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.893520299954627, + "finish_reason": "length" + }, + { + "seconds": 4.0169917000457644, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.932320696423362, + "finish_reason": "length" + }, + { + "seconds": 4.015158608031925, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.939594483758219, + "finish_reason": "length" + }, + { + "seconds": 4.0182027199771255, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.927518958118752, + "finish_reason": "length" + }, + { + "seconds": 4.014021247974597, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.944110916775355, + "finish_reason": "length" + }, + { + "seconds": 4.024752922006883, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.901597250866113, + "finish_reason": "length" + }, + { + "seconds": 4.0373232290148735, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.852087229492476, + "finish_reason": "length" + }, + { + "seconds": 4.020812748000026, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 15.91717993627879, + "finish_reason": "length" + } + ], + "streaming": [ + { + "seconds": 4.01734464999754, + "ttft_seconds": 0.17109987896401435, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 4.014497571974061, + "ttft_seconds": 0.1702583699952811, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 4.015586790977977, + "ttft_seconds": 0.16976337000960484, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 4.033868486003485, + "ttft_seconds": 0.1742721939808689, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + }, + { + "seconds": 4.016161963983905, + "ttft_seconds": 0.1710785779869184, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1" + } + ], + "concurrent": [ + { + "seconds": 4.307356809033081, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 14.858300075299955, + "finish_reason": "length" + }, + { + "seconds": 4.310635024972726, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 14.847000413913479, + "finish_reason": "length" + }, + { + "seconds": 4.309892173972912, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 14.84955943596241, + "finish_reason": "length" + }, + { + "seconds": 4.309449222986586, + "usage": { + "prompt_tokens": 35, + "total_tokens": 99, + "completion_tokens": 64, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + }, + "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1", + "output_tokens_per_second": 14.85108576256665, + "finish_reason": "length" + } + ], + "concurrent_wall_seconds": 4.3149346120189875, + "summary": { + "sequential_n": 10, + "median_latency_seconds": 4.022782835003454, + "min_latency_seconds": 4.014021247974597, + "max_latency_seconds": 4.049141025985591, + "median_output_tokens_per_second": 15.909388593572451, + "median_ttft_seconds": 0.1710785779869184, + "concurrent_output_tokens_per_second": 59.32882488808234, + "completion_tokens": [ + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64 + ] + }, + "completed_utc": "2026-10-24T16:19:36.740857+00:00" +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-vllm-benchmark.log b/benchmarks/2026-10-25-a100/results/qwen-vllm-benchmark.log new file mode 100644 index 0000000..fdc746f --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-vllm-benchmark.log @@ -0,0 +1,21 @@ +{ + "sequential_n": 10, + "median_latency_seconds": 4.022782835003454, + "min_latency_seconds": 4.014021247974597, + "max_latency_seconds": 4.049141025985591, + "median_output_tokens_per_second": 15.909388593572451, + "median_ttft_seconds": 0.1710785779869184, + "concurrent_output_tokens_per_second": 59.32882488808234, + "completion_tokens": [ + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64, + 64 + ] +} diff --git a/benchmarks/2026-10-25-a100/results/qwen-vllm-probes.json b/benchmarks/2026-10-25-a100/results/qwen-vllm-probes.json new file mode 100644 index 0000000..dfba21d --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-vllm-probes.json @@ -0,0 +1,365 @@ +{ + "backend": "vllm", + "model": "Qwen/Qwen3.8-27B", + "url": "http://127.0.0.1:8000/v1", + "results": [ + { + "name": "model_listing", + "passed": true, + "seconds": 0.0320408699917607, + "data": { + "object": "list", + "data": [ + { + "id": "Qwen/Qwen3.8-27B", + "object": "model", + "created": 1792858691, + "owned_by": "vllm", + "root": "Qwen/Qwen3.8-27B", + "parent": null, + "max_model_len": 8192, + "permission": [ + { + "id": "modelperm-aa65c78404d6a0f2", + "object": "model_permission", + "created": 1792858691, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ] + } + ] + } + }, + { + "name": "chat", + "passed": true, + "seconds": 0.37065004801843315, + "data": { + "id": "chatcmpl-ef29028dca5748e5a510d3a9", + "object": "chat.completion", + "created": 1792858691, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "4" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 25, + "total_tokens": 27, + "completion_tokens": 2, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + } + }, + { + "name": "stream_matches_nonstream", + "passed": true, + "seconds": 2.5241832499741577, + "data": { + "response": { + "id": "chatcmpl-e5e56aadb0444ee99a5ad708", + "object": "chat.completion", + "created": 1792858692, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "```python\ndef add(a, b):\n return a + b\n```" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 27, + "total_tokens": 45, + "completion_tokens": 18, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + }, + "stream_text": "```python\ndef add(a, b):\n return a + b\n```", + "chunks": 19 + } + }, + { + "name": "structured_json_schema", + "passed": true, + "seconds": 2.365791000018362, + "data": { + "id": "chatcmpl-97ccc9d7541c43659d1bccaf", + "object": "chat.completion", + "created": 1792858694, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "{\n \"city\": \"Paris\",\n \"country\": \"France\"\n}" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 21, + "total_tokens": 41, + "completion_tokens": 20, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + } + }, + { + "name": "forced_tool_call_without_execution", + "passed": true, + "seconds": 2.0270367080229335, + "data": { + "id": "chatcmpl-ab4253a4ca1c419f954cbce2", + "object": "chat.completion", + "created": 1792858696, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "chatcmpl-tool-ae8c2b170b50bcf6", + "type": "function", + "function": { + "name": "lookup_weather", + "arguments": "{\"city\": \"Sydney\"}" + } + } + ], + "function_call": { + "name": "lookup_weather", + "arguments": "{\"city\": \"Sydney\"}" + } + }, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 282, + "total_tokens": 310, + "completion_tokens": 28, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + } + }, + { + "name": "reasoning_metadata", + "passed": true, + "seconds": 2.3000161120435223, + "data": { + "id": "chatcmpl-82a6df86f48642dbaef62917", + "object": "chat.completion", + "created": 1792858698, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "\n\n2 + 2 = **4**", + "reasoning_content": "The user is asking a simple arithmetic question: what is 2 plus 2? The answer is 4.\n" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 48, + "total_tokens": 83, + "completion_tokens": 35, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 24 + } + } + } + }, + { + "name": "text_completion", + "passed": true, + "seconds": 2.026913492998574, + "data": { + "id": "cmpl-f785c911372940b494f4f4a6", + "object": "text_completion", + "created": 1792858703, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "text": " Paris.\nThe capital of Germany is Berlin.\nThe capital of Italy is Rome.\nThe capital of Spain is Madrid.\nThe capital of Portugal is", + "index": 0, + "finish_reason": "length" + } + ], + "usage": { + "prompt_tokens": 5, + "total_tokens": 37, + "completion_tokens": 32, + "prompt_tokens_details": null, + "completion_tokens_details": null + } + } + }, + { + "name": "context_overflow_nonstream", + "passed": true, + "seconds": 0.04956978600239381, + "data": { + "rejected_with": "RuntimeError", + "message": "OpenAI-compatible request POST http://127.0.0.1:8000/v1/chat/completions failed with HTTP 400: {\"error\":{\"message\":\"This model's maximum context length is 8192 tokens. However, your prompt contains at least 8193 input tokens, which exceeds this limit even without any output tokens. Please reduce the length of the input prompt. (parameter=input_tokens, value=8193)\",\"type\":\"BadRequestError\",\"param\":\"input_tokens\",\"code\":400}}" + } + }, + { + "name": "context_overflow_stream", + "passed": true, + "seconds": 0.040258548979181796, + "data": { + "rejected_with": "RuntimeError", + "message": "OpenAI-compatible request POST http://127.0.0.1:8000/v1/chat/completions failed with HTTP 400: {\"error\":{\"message\":\"This model's maximum context length is 8192 tokens. However, your prompt contains at least 8193 input tokens, which exceeds this limit even without any output tokens. Please reduce the length of the input prompt. (parameter=input_tokens, value=8193)\",\"type\":\"BadRequestError\",\"param\":\"input_tokens\",\"code\":400}}" + } + }, + { + "name": "four_concurrent_requests", + "passed": true, + "seconds": 0.4410320449969731, + "data": { + "requests": 4, + "wall_seconds": 0.44098449498414993, + "responses": [ + { + "id": "chatcmpl-e9c45569c8694b218bb2b4a9", + "object": "chat.completion", + "created": 1792858703, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "10" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + }, + { + "id": "chatcmpl-3d20126a84d3425d997097af", + "object": "chat.completion", + "created": 1792858703, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "11" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + }, + { + "id": "chatcmpl-358a7fb2259444d98c8950b4", + "object": "chat.completion", + "created": 1792858703, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "12" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + }, + { + "id": "chatcmpl-79995607c24146d3a6467473", + "object": "chat.completion", + "created": 1792858703, + "model": "Qwen/Qwen3.8-27B", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "13" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 26, + "total_tokens": 29, + "completion_tokens": 3, + "prompt_tokens_details": null, + "completion_tokens_details": { + "reasoning_tokens": 0 + } + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/qwen-vllm-probes.log b/benchmarks/2026-10-25-a100/results/qwen-vllm-probes.log new file mode 100644 index 0000000..2042e9d --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/qwen-vllm-probes.log @@ -0,0 +1,10 @@ +model_listing PASS 0.032 +chat PASS 0.371 +stream_matches_nonstream PASS 2.524 +structured_json_schema PASS 2.366 +forced_tool_call_without_execution PASS 2.027 +reasoning_metadata PASS 2.3 +text_completion PASS 2.027 +context_overflow_nonstream PASS 0.05 +context_overflow_stream PASS 0.04 +four_concurrent_requests PASS 0.441 diff --git a/benchmarks/2026-10-25-a100/results/regressions-after.log b/benchmarks/2026-10-25-a100/results/regressions-after.log new file mode 100644 index 0000000..61ae861 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/regressions-after.log @@ -0,0 +1 @@ +.................................................. [100%] diff --git a/benchmarks/2026-10-25-a100/results/release-suite.log b/benchmarks/2026-10-25-a100/results/release-suite.log new file mode 100644 index 0000000..9aa8e47 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/release-suite.log @@ -0,0 +1,24 @@ +......................................s............................... [ 14%] +.............................................................................................................................sssssss [ 40%] +sssssss....................................... [ 49%] +...................................................................................................................................................................................s.. [ 86%] +..................................................... [ 96%] +................. [100%] +=========================== short test summary info ============================ +SKIPPED [1] tests/test_apple_fm.py:649: opt-in live test: needs an eligible Mac (macOS 26+, Xcode 26+, Apple Intelligence on). Not run in CI. +SKIPPED [1] tests/test_live_servers.py:56: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:88: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:80: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:65: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:72: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:131: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:127: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:106: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:160: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:179: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:188: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:170: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:194: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_live_servers.py:219: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run +SKIPPED [1] tests/test_server.py:302: fastapi is installed; skip-path test not applicable +484 passed, 16 skipped, 245 subtests passed in 35.51s diff --git a/benchmarks/2026-10-25-a100/results/sglang-gpu-snapshot.csv b/benchmarks/2026-10-25-a100/results/sglang-gpu-snapshot.csv new file mode 100644 index 0000000..712f730 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/sglang-gpu-snapshot.csv @@ -0,0 +1,2 @@ +name, memory.used [MiB], memory.total [MiB], utilization.gpu [%] +NVIDIA A100-SXM4-80GB, 68206 MiB, 81920 MiB, 0 % diff --git a/benchmarks/2026-10-25-a100/results/sglang-qwen-final.log b/benchmarks/2026-10-25-a100/results/sglang-qwen-final.log new file mode 100644 index 0000000..e0739b2 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/sglang-qwen-final.log @@ -0,0 +1,195 @@ +/workspace/env-sglang/lib/python3.12/site-packages/sglang/launch_server.py:71: UserWarning: 'python -m sglang.launch_server' is still supported, but 'sglang serve' is the recommended entrypoint. + Example: sglang serve --model-path [options] + warnings.warn( +[2026-10-24 16:14:24] Registered linear attn model: config=GigaChat35Config, backend=GDNAttnBackend, archs=['GigaChat35ForCausalLM', 'GigaChat35ForCausalLMNextN'] +[2026-10-24 16:14:27] Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads. +[2026-10-24 16:14:27] Attention backend not specified. Use flashinfer backend by default. +[2026-10-24 16:14:29] server_args={'model_path': 'Qwen/Qwen3.8-27B', 'tokenizer_path': 'Qwen/Qwen3.8-27B', 'tokenizer_mode': 'auto', 'tokenizer_backend': 'huggingface', 'tokenizer_worker_num': 1, 'detokenizer_worker_num': 1, 'skip_tokenizer_init': False, 'load_format': 'auto', 'model_loader_extra_config': '{}', 'trust_remote_code': False, 'context_length': 8192, 'is_embedding': False, 'enable_multimodal': None, 'revision': '1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0', 'model_impl': 'auto', 'model_config_parser': 'auto', 'json_model_override_args': '{}', 'dtype': 'bfloat16', 'quantization': None, 'quantization_param_path': None, 'kv_cache_dtype': 'auto', 'enable_fp32_lm_head': False, 'modelopt_quant': None, 'modelopt_checkpoint_restore_path': None, 'modelopt_checkpoint_save_path': None, 'modelopt_export_path': None, 'quantize_and_serve': False, 'rl_quant_profile': None, 'enable_tf32_matmul': False, 'mem_fraction_static': 0.82, 'max_running_requests': 4, 'max_queued_requests': None, 'max_total_tokens': None, 'chunked_prefill_size': 8192, 'prefill_decode_interval': 0, 'enable_dynamic_chunking': False, 'max_prefill_tokens': 16384, 'prefill_max_requests': None, 'schedule_policy': 'fcfs', 'enable_priority_scheduling': False, 'disable_priority_preemption': False, 'default_priority_value': None, 'abort_on_priority_when_disabled': False, 'schedule_low_priority_values_first': False, 'priority_scheduling_preemption_threshold': 10, 'retraction_policy': 'length', 'schedule_conservativeness': 1.0, 'page_size': 1, 'c128_page_size': 16, 'swa_full_tokens_ratio': 0.8, 'disable_hybrid_swa_memory': False, 'radix_eviction_policy': 'lru', 'radix_eviction_policy_config': None, 'prefill_only_disable_kv_cache': False, 'disable_radix_cache': False, 'enable_page_major_kv_layout': False, 'enable_unified_memory': False, 'disable_chunked_prefix_cache': False, 'disable_overlap_schedule': False, 'num_continuous_decode_steps': 1, 'scheduler_recv_interval': 1, 'enable_mixed_chunk': False, 'nccl_port': None, 'dist_timeout': None, 'dist_init_addr': None, 'gated_launch_port': None, 'nnodes': 1, 'node_rank': 0, 'tp_size': 1, 'dcp_size': 1, 'pp_size': 1, 'pp_max_micro_batch_size': None, 'pp_async_batch_depth': 0, 'dp_size': 1, 'attn_dp_size': 1, 'load_balance_method': 'round_robin', 'attn_cp_size': 1, 'moe_dp_size': 1, 'dwdp_size': 1, 'dcp_comm_backend': 'ag_rs', 'dcp_replicate_q_proj': None, 'enable_prefill_cp': False, 'cp_strategy': None, 'enable_dsa_cache_layer_split': False, 'enable_cp_decode_attn_tp': False, 'enable_kv_cache_sharding': False, 'enable_dp_attention': False, 'enable_dp_attention_local_control_broadcast': False, 'enable_dp_lm_head': False, 'enable_tp_lm_head_all_to_all': False, 'enable_attn_tp_input_scattered': False, 'enable_shared_experts_attn_tp': False, 'shared_experts_tp_size': None, 'enable_dense_mlp_attn_tp': False, 'enable_layernorm_sp': False, 'disable_attn_tp_gather': False, 'enable_p2p_check': False, 'device': 'cuda', 'base_gpu_id': 0, 'gpu_id_step': 1, 'random_seed': 614319064, 'mlx_enable_sampling': False, 'watchdog_timeout': 300, 'soft_watchdog_timeout': None, 'sleep_on_idle': False, 'use_ray': False, 'custom_sigquit_handler': None, 'numa_node': None, 'gc_threshold': None, 'host': '127.0.0.1', 'port': 30000, 'fastapi_root_path': '', 'smg_grpc_mode': False, 'grpc_mode': False, 'grpc_port': None, 'grpc_worker_threads': 4, 'sidecar': None, 'sidecar_args': None, 'skip_server_warmup': False, 'warmups': None, 'enable_http2': False, 'http2_max_concurrent_streams': 200, 'http2_initial_connection_window_size': 1048576, 'ssl_keyfile': None, 'ssl_certfile': None, 'ssl_ca_certs': None, 'ssl_keyfile_password': None, 'enable_ssl_refresh': False, 'api_key': None, 'admin_api_key': None, 'served_model_name': 'Qwen/Qwen3.8-27B', 'weight_version': 'default', 'chat_template': None, 'trust_request_chat_template': False, 'hf_chat_template_name': None, 'completion_template': None, 'file_storage_path': None, 'enable_cache_report': False, 'return_input_ids': False, 'return_output_ids': False, 'reasoning_parser': 'qwen3', 'default_chat_template_kwargs': None, 'strip_thinking_cache': False, 'enable_strict_thinking': False, 'tool_call_parser': 'qwen3_coder', 'tool_server': None, 'sampling_defaults': 'model', 'asr_max_buffer_seconds': 60, 'asr_max_concurrent_sessions': 32, 'preferred_sampling_params': None, 'allow_auto_truncate': False, 'stream_interval': 1, 'batch_notify_size': 16, 'stream_response_default_include_usage': False, 'incremental_streaming_output': False, 'enable_streaming_session': False, 'enable_session_radix_cache': False, 'log_level': 'info', 'log_level_http': None, 'log_requests': False, 'log_requests_level': 2, 'log_requests_format': 'text', 'log_requests_target': None, 'uvicorn_access_log_exclude_prefixes': [], 'crash_dump_folder': None, 'show_time_cost': False, 'enable_metrics': False, 'smg_http_sidecar_port': None, 'enable_mfu_metrics': False, 'enable_metrics_for_all_schedulers': False, 'load_snapshot_publish_interval': 15, 'tokenizer_metrics_custom_labels_header': 'x-custom-labels', 'tokenizer_metrics_allowed_custom_labels': None, 'extra_metric_labels': None, 'bucket_time_to_first_token': None, 'bucket_inter_token_latency': None, 'bucket_e2e_request_latency': None, 'prompt_tokens_buckets': None, 'generation_tokens_buckets': None, 'gc_warning_threshold_secs': 0.0, 'decode_log_interval': 40, 'enable_request_time_stats_logging': False, 'kv_events_config': None, 'load_publish_endpoint': None, 'enable_forward_pass_metrics': False, 'forward_pass_metrics_worker_id': '', 'forward_pass_metrics_ipc_name': None, 'enable_trace': False, 'trace_modules': 'request', 'otlp_traces_endpoint': 'localhost:4317', 'export_metrics_to_file': False, 'export_metrics_to_file_dir': None, 'stat_loggers': None, 'constrained_json_whitespace_pattern': None, 'constrained_json_disable_any_whitespace': False, 'constrained_json_max_whitespace_cnt': None, 'attention_backend': 'flashinfer', 'decode_attention_backend': None, 'enable_lean_attention': None, 'prefill_attention_backend': None, 'sampling_backend': 'flashinfer', 'grammar_backend': 'xgrammar', 'radix_cache_backend': None, 'mm_attention_backend': None, 'fp8_gemm_runner_backend': 'auto', 'fp4_gemm_runner_backend': 'auto', 'bf16_gemm_backend': 'auto', 'dsa_prefill_backend': None, 'dsv4_prefill_backend': 'auto', 'dsa_decode_backend': None, 'dsa_paged_mqa_logits_backend': 'auto', 'dsa_topk_backend': 'sgl-kernel', 'disable_flashinfer_autotune': False, 'flashinfer_autotune_skip_ops': None, 'mamba_backend': 'triton', 'cuda_graph_config': {'decode': {'backend': 'disabled', 'max_bs': 4, 'bs': [1, 2, 4], 'tc_compiler': 'eager', 'max_context_size': None, 'full_prefill_max_req': None, 'full_prefill_prefix_chunk_tokens': None, 'max_seq_len': None}, 'prefill': {'backend': 'disabled', 'max_bs': 8192, 'bs': [4, 8, 12, 16, 20, 24, 28, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256, 288, 320, 352, 384, 416, 448, 480, 512, 576, 640, 704, 768, 832, 896, 960, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4608, 5120, 5632, 6144, 6656, 7168, 7680, 8192], 'tc_compiler': 'eager', 'max_context_size': None, 'full_prefill_max_req': None, 'full_prefill_prefix_chunk_tokens': None, 'max_seq_len': None}}, 'cuda_graph_backend_decode': 'disabled', 'cuda_graph_backend_prefill': 'disabled', 'cuda_graph_max_bs_decode': None, 'cuda_graph_max_bs_prefill': None, 'cuda_graph_bs_decode': None, 'cuda_graph_bs_prefill': None, 'cuda_graph_prefill_max_context': None, 'disable_prefill_cuda_graph': False, 'disable_decode_cuda_graph': False, 'disable_cuda_graph': False, 'disable_cuda_graph_padding': False, 'enable_profile_cuda_graph': False, 'enable_cudagraph_gc': False, 'debug_cuda_graph': False, 'enable_layerwise_nvtx_marker': False, 'enable_nccl_nvls': False, 'enable_symm_mem': False, 'triton_attention_reduce_in_fp32': False, 'triton_attention_num_kv_splits': 8, 'triton_attention_split_tile_size': None, 'flashinfer_mla_disable_ragged': False, 'enable_fused_qk_norm_rope': False, 'enable_precise_embedding_interpolation': False, 'enable_fused_moe_sum_all_reduce': False, 'enable_deepseek_v4_fp4_indexer': False, 'disable_custom_all_reduce': False, 'enable_mscclpp': False, 'enable_torch_symm_mem': False, 'enable_scattered_sconv': False, 'pre_warm_nccl': False, 'boundary_reduction': 'rs+rsv', 'enable_quant_communications': False, 'enable_flashinfer_allreduce_fusion': False, 'enforce_disable_flashinfer_allreduce_fusion': False, 'flashinfer_allreduce_fusion_backend': None, 'enable_aiter_allreduce_fusion': False, 'enable_torch_compile': False, 'enable_torch_compile_debug_mode': False, 'torch_compile_max_bs': 32, 'speculative_algorithm': None, 'uno_lora_path': None, 'speculative_draft_model_path': None, 'speculative_draft_model_revision': None, 'speculative_draft_load_format': None, 'speculative_num_steps': None, 'speculative_eagle_topk': None, 'speculative_num_draft_tokens': None, 'speculative_dflash_block_size': None, 'speculative_dspark_block_size': None, 'speculative_dspark_sps_table_path': None, 'speculative_dspark_confidence_sts_path': None, 'speculative_dspark_align_verify_tokens_to_graph_tier': False, 'speculative_accept_threshold_single': 1.0, 'speculative_accept_threshold_acc': 1.0, 'speculative_use_rejection_sampling': False, 'speculative_token_map': None, 'speculative_attention_mode': 'prefill', 'speculative_draft_attention_backend': None, 'speculative_dsa_topk_backend': 'sgl-kernel', 'speculative_draft_kv_cache_dtype': None, 'speculative_draft_window_size': None, 'speculative_moe_runner_backend': 'auto', 'speculative_moe_a2a_backend': None, 'speculative_enable_w4a4_mxfp4_megamoe': None, 'speculative_draft_model_quantization': None, '_speculative_draft_quantization_explicitly_set': False, 'speculative_skip_dp_mlp_sync': False, 'enable_multi_layer_eagle': False, 'speculative_adaptive': False, 'speculative_adaptive_config': None, 'decoupled_spec_bind_endpoint': None, 'decoupled_spec_connect_endpoints': None, 'decoupled_spec_rank': None, 'decoupled_spec_role': 'null', 'spec_trace_dir': None, 'speculative_ngram_min_bfs_breadth': 1, 'speculative_ngram_max_bfs_breadth': 10, 'speculative_ngram_match_type': 'BFS', 'speculative_ngram_max_trie_depth': 18, 'speculative_ngram_capacity': 10000000, 'speculative_ngram_external_corpus_path': None, 'speculative_ngram_external_sam_budget': 0, 'speculative_ngram_external_corpus_max_tokens': 10000000, 'ep_size': 1, 'moe_a2a_backend': 'none', 'enable_w4a4_mxfp4_megamoe': False, 'deepep_v2_mode': 'direct', 'moe_runner_backend': 'auto', 'flashinfer_mxfp4_moe_precision': 'default', 'deepep_mode': 'auto', 'fuseep_mode': 2, 'deepep_dispatcher_output_dtype': 'auto', 'ep_num_redundant_experts': 0, 'ep_dispatch_algorithm': None, 'init_expert_location': 'trivial', 'enable_eplb': False, 'eplb_algorithm': 'auto', 'eplb_rebalance_num_iterations': 1000, 'eplb_rebalance_layers_per_chunk': None, 'eplb_min_rebalancing_utilization_threshold': 1.0, 'expert_distribution_recorder_mode': None, 'expert_distribution_recorder_buffer_size': 1000, 'expert_balancedness_report_mode': 'off', 'deepep_config': None, 'moe_dense_tp_size': None, 'elastic_ep_backend': None, 'enable_elastic_expert_backup': False, 'mooncake_ib_device': None, 'enable_waterfill': False, 'ep_join_mode': None, 'ep_join_rank_offset': 0, 'elastic_ep_initial_size': None, 'max_ep_size': None, 'elastic_ep_scale_timeout': 600, 'disable_flashinfer_cutlass_moe_fp4_allgather': False, 'disable_shared_experts_fusion': False, 'enforce_shared_experts_fusion': False, 'max_mamba_cache_size': None, 'mamba_ssm_dtype': None, 'mamba_max_states_per_path': -1, 'enable_mamba_cache_stochastic_rounding': False, 'mamba_cache_philox_rounds': 0, 'mamba_full_memory_ratio': 0.9, 'mamba_radix_cache_strategy': 'extra_buffer', 'uses_mamba_radix_cache': True, 'mamba_track_interval': 256, 'enable_int8_mamba_checkpoint': False, 'int8_mamba_ckpt_size': None, 'linear_attn_backend': 'triton', 'linear_attn_decode_backend': None, 'linear_attn_prefill_backend': None, 'linear_attn_verify_backend': None, 'enable_linear_replayssm': False, 'linear_replayssm_cache_len': 16, 'enable_linear_replayssm_spec': False, 'enable_hierarchical_cache': False, 'hicache_host_memory_mode': 'cache', 'hicache_ratio': 2.0, 'hicache_size': 0, 'hicache_write_policy': 'write_through', 'hicache_io_backend': 'kernel', 'hicache_mem_layout': 'page_first', 'hicache_storage_backend': None, 'hicache_storage_prefetch_policy': 'timeout', 'hicache_storage_backend_extra_config': None, 'hicache_storage_prefetch_retry_poll_interval': 8, 'hicache_storage_prefetch_retry_max_attempts': 8, 'enable_unified_cache_external_linker': False, 'unified_cache_external_linker_backend': 'mooncake', 'enable_hisparse': False, 'hisparse_config': None, 'enable_broadcast_mm_inputs_process': False, 'enable_prefix_mm_cache': False, 'mm_enable_dp_encoder': False, 'mm_process_config': {}, 'mm_processor_worker_num': 0, 'mm_io_worker_num': 0, 'allowed_media_domains': [], 'media_url_max_file_size_mb': 64, 'mm_preprocess_cache_size_mb': None, 'trust_mm_content_hashes': False, 'limit_mm_data_per_request': None, 'enable_mm_global_cache': False, 'image_processor_backend': 'auto', 'mm_global_cache_backend': 'mooncake', 'disable_fast_image_processor': False, 'mm_feature_transport': 'cpu', 'enable_lora': None, 'enable_lora_overlap_loading': None, 'max_lora_rank': None, 'lora_target_modules': None, 'lora_paths': None, 'max_loaded_loras': None, 'max_loras_per_batch': 8, 'lora_eviction_policy': 'lru', 'lora_backend': 'csgmv', 'max_lora_chunk_size': 16, 'experts_shared_outer_loras': None, 'lora_use_virtual_experts': False, 'lora_strict_loading': False, 'lora_drain_wait_threshold': 0.0, 'enable_two_batch_overlap': False, 'enable_single_batch_overlap': False, 'tbo_token_distribution_threshold': 0.48, 'cpu_offload_gb': 0, 'offload_group_size': -1, 'offload_num_in_group': 1, 'offload_prefetch_step': 1, 'offload_mode': 'cpu', 'enable_lmcache': False, 'lmcache_config_file': None, 'enable_flexkv': False, 'flexkv_config_file': None, 'kt_weight_path': None, 'kt_method': 'AMXINT4', 'kt_cpuinfer': None, 'kt_threadpool_count': 2, 'kt_num_gpu_experts': None, 'kt_max_deferred_experts_per_token': None, 'dllm_algorithm': None, 'dllm_algorithm_config': None, 'dllm_fdfo': True, 'disaggregation_mode': 'null', 'disaggregation_transfer_backend': 'mooncake', 'disaggregation_bootstrap_port': 8998, 'disaggregation_ib_device': None, 'disaggregation_decode_enable_radix_cache': False, 'disaggregation_decode_enable_offload_kvcache': False, 'disaggregation_decode_retraction_backup': None, 'num_reserved_decode_tokens': 512, 'disaggregation_decode_extra_slots': None, 'disaggregation_decode_polling_interval': 1, 'optimistic_prefill_attempts': 0, 'encoder_only': False, 'language_only': False, 'language_model_only': False, 'encoder_transfer_backend': 'zmq_to_scheduler', 'encoder_urls': [], 'encoder_bootstrap_port': 8997, 'encoder_register_urls': [], 'enable_adaptive_dispatch_to_encoder': False, 'enable_pdmux': False, 'pdmux_config_path': None, 'sm_group_num': 8, 'startup_weight_load_mode': 'serial', 'custom_weight_loader': [], 'weight_loader_disable_mmap': False, 'weight_loader_prefetch_checkpoints': False, 'weight_loader_prefetch_num_threads': 4, 'weight_loader_drop_cache_after_load': False, 'remote_instance_weight_loader_seed_instance_ip': None, 'remote_instance_weight_loader_seed_instance_service_port': None, 'remote_instance_weight_loader_send_weights_group_ports': None, 'remote_instance_weight_loader_backend': 'nccl', 'remote_instance_weight_loader_start_seed_via_transfer_engine': False, 'engine_info_bootstrap_port': 6789, 'modelexpress_config': None, 'download_dir': None, 'model_checksum': None, 'delete_ckpt_after_loading': False, 'decrypted_config_file': None, 'decrypted_draft_config_file': None, 'checkpoint_engine_wait_weights_before_ready': False, 'enable_prefill_delayer': False, 'prefill_delayer_max_delay_passes': 30, 'prefill_delayer_token_usage_low_watermark': None, 'prefill_delayer_forward_passes_buckets': None, 'prefill_delayer_wait_seconds_buckets': None, 'prefill_delayer_queue_min_ratio': None, 'prefill_delayer_max_delay_ms': None, 'min_free_slots_delay': None, 'enable_deterministic_inference': False, 'rl_on_policy_target': None, 'kv_canary': 'none', 'kv_canary_real_data': 'none', 'kv_canary_sweep_interval': 0, 'enable_dynamic_batch_tokenizer': False, 'dynamic_batch_tokenizer_batch_size': 32, 'dynamic_batch_tokenizer_batch_timeout': 0.002, 'enable_tokenizer_batch_encode': False, 'disable_tokenizer_batch_decode': False, 'debug_tensor_dump_output_folder': None, 'debug_tensor_dump_layers': None, 'debug_tensor_dump_input_file': None, 'enable_memory_saver': False, 'enable_weights_cpu_backup': False, 'enable_draft_weights_cpu_backup': False, 'enable_custom_logit_processor': False, 'enable_return_hidden_states': False, 'return_hidden_states_mode': None, 'enable_return_routed_experts': False, 'enable_return_indexer_topk': False, 'sampling_mask_max_tokens': 4096, 'disable_outlines_disk_cache': False, 'enable_mis': False, 'weight_cache_mode': 'off', 'weight_cache_socket': None, 'weight_cache_timeout': 1800, 'forward_hooks': None, 'msprobe_dump_config': None, 'ple_offload_embedding': None, 'ple_offload_backend': 'pinned', 'ple_offload_dir': None, 'disaggregation_enable_kv_checksum': False, 'enable_pd_role_switch': False, 'speculative_domino_candidate_pool_size': 2048, 'flashinfer_a2a_dispatch_type': None, 'cuda_graph_max_seq_len_prefill': None, 'prefill_kv_cache_dequant_dtype': 'auto', 'dsv4_attn_backend': 'auto', 'otlp_service_name': None, '_radix_eviction_policy_explicitly_set': False, 'hicache_host_memory_fraction': 0.8, 'enable_linker_mla_dedup': False, '_swa_full_tokens_ratio_explicitly_set': False, 'swa_prefix_tails': None, 'enable_encoder_swa_bounded_replay': False, 'enable_decoder_swa_bounded_replay': False, 'enable_response_store': False, 'disaggregation_decode_host_receive_threshold': 1.0, 'qsa_indexer_dtype': 'auto', 'disaggregation_decode_allocation_policy': 'early', 'speculative_boundary_reduction': 'rs+rsv', 'speculative_use_block_verification': False, 'speculative_draft_sink_size': None, 'disable_aiter_allreduce_fusion_in_prefill': False, 'disable_aiter_allreduce_fusion_in_decode': False, 'dsa_triton_union': 0, 'enable_dsa_fused_indexer': None, 'enable_cp_tp_group_sharing': False, 'enable_watermark': False, 'watermark_config': '', 'watermark_key': '', 'watermark_key_b': '', 'watermark_context_window': 4, 'watermark_mixing_probability': 0.5, 'watermark_max_probability': 1.0, 'watermark_default_enabled': False, 'watermark_enforce_all': False, 'grpc_response_timeout_secs': 300} +/workspace/env-sglang/lib/python3.12/site-packages/torch/jit/_script.py:1491: FutureWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`. + warnings.warn( +/workspace/env-sglang/lib/python3.12/site-packages/torch/jit/_script.py:1643: FutureWarning: `torch.jit.interface` is deprecated. Please use `torch.compile` instead. + warnings.warn( +/workspace/env-sglang/lib/python3.12/site-packages/torch/jit/_script.py:1491: FutureWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`. + warnings.warn( +[2026-10-24 16:14:32] Multimodal data loading enabled with 16 worker threads (auto). +[2026-10-24 16:14:32] Using default HuggingFace chat template with detected content format: openai +[2026-10-24 16:14:32] Auto-detected template features: reasoning_config=ReasoningToggleConfig(toggle_param='enable_thinking', default_enabled=True, special_case=None, effort_kwarg=None), reasoning_parser=qwen3, tool_call_parser=qwen3_coder +[2026-10-24 16:14:40] Init parallel begin. +[2026-10-24 16:14:41] Init parallel ends. elapsed=0.37 s +/workspace/env-sglang/lib/python3.12/site-packages/torch/jit/_script.py:1491: FutureWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`. + warnings.warn( +/workspace/env-sglang/lib/python3.12/site-packages/torch/jit/_script.py:1643: FutureWarning: `torch.jit.interface` is deprecated. Please use `torch.compile` instead. + warnings.warn( +[2026-10-24 16:14:43] Multimodal data loading enabled with 16 worker threads (auto). +[2026-10-24 16:14:43] Memory baseline taken. mem usage=0.00 GB +/workspace/env-sglang/lib/python3.12/site-packages/torch/jit/_script.py:1491: FutureWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`. + warnings.warn( +[2026-10-24 16:14:43] Load weight begin. avail mem=78.74 GB +[2026-10-24 16:14:43] Multimodal attention backend not set. Use triton_attn. +[2026-10-24 16:14:43] Using triton_attn as multimodal attention backend. +[2026-10-24 16:14:43] using attn output gate! +[2026-10-24 16:14:43] Found local HF snapshot for Qwen/Qwen3.8-27B at /workspace/hf-cache/hub/models--Qwen--Qwen3.8-27B/snapshots/1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0; skipping download. + +Multi-thread loading shards: 0% Completed | 0/18 [00:00, ). Tree Core: RustUnifiedTreeCore +[2026-10-24 16:14:52] Tree cache initialized: source=default impl=UnifiedRadixCache hybrid_swa=False hybrid_ssm=True hicache_attached=False +[2026-10-24 16:14:53] Engine startup timings (s): load_weight=6.53, kv_cache_allocation=0.81, scheduler_e2e=12.32, cuda_graph={prefill=0.00, decode=0.00, target_verify=0.00, draft_prefill=0.00, draft_decode=0.00, draft_extend=0.00}, tokenizer_e2e=23.27 +[2026-10-24 16:14:53] INFO: Started server process [8824] +[2026-10-24 16:14:53] INFO: Waiting for application startup. +[2026-10-24 16:14:53] Using default chat sampling params from model generation config: {'temperature': 1.0, 'top_k': 20, 'top_p': 0.95} +[2026-10-24 16:14:53] INFO: Application startup complete. +[2026-10-24 16:14:53] INFO: Uvicorn running on http://127.0.0.1:30000 (Press CTRL+C to quit) +[2026-10-24 16:14:53] INFO: 127.0.0.1:49910 - "GET /health HTTP/1.1" 503 Service Unavailable +[2026-10-24 16:14:54] INFO: 127.0.0.1:49916 - "GET /model_info HTTP/1.1" 200 OK +[2026-10-24 16:14:54] INFO: 127.0.0.1:49934 - "GET /health HTTP/1.1" 503 Service Unavailable +[2026-10-24 16:14:55] INFO: 127.0.0.1:49946 - "GET /health HTTP/1.1" 503 Service Unavailable +[2026-10-24 16:14:56] INFO: 127.0.0.1:49962 - "GET /health HTTP/1.1" 503 Service Unavailable +[2026-10-24 16:14:57] Using fused GDN decode QKVZ/BA unpack + indexed Conv1D. +[2026-10-24 16:14:57] Prefill batch, #new-seq: 1, #new-token: 122, #cached-token: 0, full token usage: 0.00, mamba usage: 0.09, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 23.86 +[2026-10-24 16:14:57] INFO: 127.0.0.1:49918 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:14:57] INFO: 127.0.0.1:49978 - "POST /freeze_gc HTTP/1.1" 200 OK +[2026-10-24 16:14:57] The server is fired up and ready to roll! +[2026-10-24 16:14:58] Prefill batch, #new-seq: 1, #new-token: 1, #cached-token: 0, full token usage: 0.00, mamba usage: 0.00, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 1.00 +[2026-10-24 16:14:58] INFO: 127.0.0.1:49980 - "GET /health HTTP/1.1" 200 OK +/workspace/env-sglang/lib/python3.12/site-packages/sglang/srt/entrypoints/http_server.py:476: FastAPIDeprecationWarning: ORJSONResponse is deprecated, FastAPI now serializes data directly to JSON bytes via Pydantic when a return type or response model is set, which is faster and doesn't need a custom response class. Read more in the FastAPI docs: https://fastapi.tiangolo.com/advanced/custom-response/#orjson-or-response-model and https://fastapi.tiangolo.com/tutorial/response-model/ + return await original_handler(ORJSONRequest(request.scope, request.receive)) +[2026-10-24 16:14:58] INFO: 127.0.0.1:49982 - "GET /v1/models HTTP/1.1" 200 OK +[2026-10-24 16:14:59] Prefill batch, #new-seq: 1, #new-token: 25, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 31.76 +[2026-10-24 16:14:59] INFO: 127.0.0.1:49990 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:14:59] Prefill batch, #new-seq: 1, #new-token: 27, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 139.25 +[2026-10-24 16:15:00] INFO: 127.0.0.1:49994 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:00] Prefill batch, #new-seq: 1, #new-token: 27, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 27.22 +[2026-10-24 16:15:00] INFO: 127.0.0.1:49998 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:00] Decode batch, #running-req: 1, #full token: 41, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 4.58, #queue-req: 0 +[2026-10-24 16:15:01] Prefill batch, #new-seq: 1, #new-token: 21, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 16.37 +[2026-10-24 16:15:02] INFO: 127.0.0.1:50000 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:03] Prefill batch, #new-seq: 1, #new-token: 293, #cached-token: 0, full token usage: 0.00, mamba usage: 0.09, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 153.69 +[2026-10-24 16:15:04] Decode batch, #running-req: 1, #full token: 309, full token usage: 0.00, mamba num: 4, mamba usage: 0.09, cuda graph: False, gen throughput (token/s): 12.13, #queue-req: 0 +[2026-10-24 16:15:04] INFO: 127.0.0.1:49346 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:05] Prefill batch, #new-seq: 1, #new-token: 48, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 25.91 +[2026-10-24 16:15:06] Decode batch, #running-req: 1, #full token: 76, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 16.41, #queue-req: 0 +[2026-10-24 16:15:06] INFO: 127.0.0.1:49352 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:07] Prefill batch, #new-seq: 1, #new-token: 5, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 2.88 +[2026-10-24 16:15:08] INFO: 127.0.0.1:49356 - "POST /v1/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:08] parallel_prompt_encode: tokenizers encode_batch runs serially in this process (TOKENIZERS_PARALLELISM off or process forked after tokenizers used its pool); using the original encode. +/workspace/env-sglang/lib/python3.12/site-packages/sglang/srt/entrypoints/openai/serving_chat.py:2318: FastAPIDeprecationWarning: ORJSONResponse is deprecated, FastAPI now serializes data directly to JSON bytes via Pydantic when a return type or response model is set, which is faster and doesn't need a custom response class. Read more in the FastAPI docs: https://fastapi.tiangolo.com/advanced/custom-response/#orjson-or-response-model and https://fastapi.tiangolo.com/tutorial/response-model/ + return self.create_error_response(str(e)) +[2026-10-24 16:15:08] INFO: 127.0.0.1:49368 - "POST /v1/chat/completions HTTP/1.1" 400 Bad Request +/workspace/env-sglang/lib/python3.12/site-packages/sglang/srt/entrypoints/openai/serving_chat.py:1952: FastAPIDeprecationWarning: ORJSONResponse is deprecated, FastAPI now serializes data directly to JSON bytes via Pydantic when a return type or response model is set, which is faster and doesn't need a custom response class. Read more in the FastAPI docs: https://fastapi.tiangolo.com/advanced/custom-response/#orjson-or-response-model and https://fastapi.tiangolo.com/tutorial/response-model/ + return self.create_error_response(str(e)) +[2026-10-24 16:15:08] INFO: 127.0.0.1:49378 - "POST /v1/chat/completions HTTP/1.1" 400 Bad Request +[2026-10-24 16:15:10] Prefill batch, #new-seq: 1, #new-token: 26, #cached-token: 0, full token usage: 0.00, mamba usage: 0.28, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 8.82 +[2026-10-24 16:15:10] Prefill batch, #new-seq: 3, #new-token: 78, #cached-token: 0, full token usage: 0.00, mamba usage: 0.28, #running-req: 1, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 1416.15 +[2026-10-24 16:15:10] Decode batch, #running-req: 4, #full token: 0, full token usage: 0.00, mamba num: 0, mamba usage: 0.00, cuda graph: False, gen throughput (token/s): 14.00, #queue-req: 0 +[2026-10-24 16:15:10] INFO: 127.0.0.1:49380 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:10] INFO: 127.0.0.1:49400 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:10] INFO: 127.0.0.1:49386 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:10] INFO: 127.0.0.1:49404 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:10] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 84.39 +[2026-10-24 16:15:12] Decode batch, #running-req: 1, #full token: 76, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 17.50, #queue-req: 0 +[2026-10-24 16:15:13] INFO: 127.0.0.1:49410 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:13] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.95 +[2026-10-24 16:15:14] Decode batch, #running-req: 1, #full token: 53, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.41, #queue-req: 0 +[2026-10-24 16:15:16] Decode batch, #running-req: 1, #full token: 93, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.31, #queue-req: 0 +[2026-10-24 16:15:16] INFO: 127.0.0.1:37714 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:16] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.95 +[2026-10-24 16:15:18] Decode batch, #running-req: 1, #full token: 70, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.40, #queue-req: 0 +[2026-10-24 16:15:19] INFO: 127.0.0.1:37720 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:20] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.96 +[2026-10-24 16:15:20] Decode batch, #running-req: 1, #full token: 47, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.41, #queue-req: 0 +[2026-10-24 16:15:22] Decode batch, #running-req: 1, #full token: 87, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.26, #queue-req: 0 +[2026-10-24 16:15:23] INFO: 127.0.0.1:37736 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:23] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.96 +[2026-10-24 16:15:24] Decode batch, #running-req: 1, #full token: 64, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.42, #queue-req: 0 +[2026-10-24 16:15:26] INFO: 127.0.0.1:39584 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:26] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.95 +[2026-10-24 16:15:26] Decode batch, #running-req: 1, #full token: 41, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.42, #queue-req: 0 +[2026-10-24 16:15:28] Decode batch, #running-req: 1, #full token: 81, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.33, #queue-req: 0 +[2026-10-24 16:15:29] INFO: 127.0.0.1:39586 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:29] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.98 +[2026-10-24 16:15:30] Decode batch, #running-req: 1, #full token: 58, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.48, #queue-req: 0 +[2026-10-24 16:15:32] Decode batch, #running-req: 1, #full token: 98, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.31, #queue-req: 0 +[2026-10-24 16:15:32] INFO: 127.0.0.1:39602 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:32] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.99 +[2026-10-24 16:15:34] Decode batch, #running-req: 1, #full token: 75, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.51, #queue-req: 0 +[2026-10-24 16:15:35] INFO: 127.0.0.1:44002 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:36] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.02 +[2026-10-24 16:15:36] Decode batch, #running-req: 1, #full token: 52, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.51, #queue-req: 0 +[2026-10-24 16:15:38] Decode batch, #running-req: 1, #full token: 92, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.42, #queue-req: 0 +[2026-10-24 16:15:39] INFO: 127.0.0.1:44004 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:39] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.02 +[2026-10-24 16:15:40] Decode batch, #running-req: 1, #full token: 69, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.52, #queue-req: 0 +[2026-10-24 16:15:42] INFO: 127.0.0.1:44016 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:42] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.03 +[2026-10-24 16:15:42] Decode batch, #running-req: 1, #full token: 46, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.54, #queue-req: 0 +[2026-10-24 16:15:44] Decode batch, #running-req: 1, #full token: 86, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.40, #queue-req: 0 +[2026-10-24 16:15:45] INFO: 127.0.0.1:59374 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:45] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.01 +[2026-10-24 16:15:46] Decode batch, #running-req: 1, #full token: 63, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.50, #queue-req: 0 +[2026-10-24 16:15:48] INFO: 127.0.0.1:59376 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:48] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.02 +[2026-10-24 16:15:48] INFO: 127.0.0.1:59392 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:48] Decode batch, #running-req: 1, #full token: 40, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.51, #queue-req: 0 +[2026-10-24 16:15:50] Decode batch, #running-req: 1, #full token: 80, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.36, #queue-req: 0 +[2026-10-24 16:15:51] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.00 +[2026-10-24 16:15:51] INFO: 127.0.0.1:51694 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:52] Decode batch, #running-req: 1, #full token: 57, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.48, #queue-req: 0 +[2026-10-24 16:15:54] Decode batch, #running-req: 1, #full token: 97, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.32, #queue-req: 0 +[2026-10-24 16:15:55] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.98 +[2026-10-24 16:15:55] INFO: 127.0.0.1:51710 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:56] Decode batch, #running-req: 1, #full token: 74, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.53, #queue-req: 0 +[2026-10-24 16:15:58] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 11.02 +[2026-10-24 16:15:58] INFO: 127.0.0.1:51724 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:15:58] Decode batch, #running-req: 1, #full token: 51, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.48, #queue-req: 0 +[2026-10-24 16:16:00] Decode batch, #running-req: 1, #full token: 91, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 20.36, #queue-req: 0 +[2026-10-24 16:16:01] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.07, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.99 +[2026-10-24 16:16:01] INFO: 127.0.0.1:51728 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:16:03] Decode batch, #running-req: 1, #full token: 68, full token usage: 0.00, mamba num: 3, mamba usage: 0.07, cuda graph: False, gen throughput (token/s): 19.51, #queue-req: 0 +[2026-10-24 16:16:04] Prefill batch, #new-seq: 1, #new-token: 35, #cached-token: 0, full token usage: 0.00, mamba usage: 0.28, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 10.86 +[2026-10-24 16:16:04] Prefill batch, #new-seq: 3, #new-token: 105, #cached-token: 0, full token usage: 0.00, mamba usage: 0.28, #running-req: 1, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 2058.51 +[2026-10-24 16:16:05] Decode batch, #running-req: 4, #full token: 180, full token usage: 0.00, mamba num: 12, mamba usage: 0.28, cuda graph: False, gen throughput (token/s): 31.26, #queue-req: 0 +[2026-10-24 16:16:07] Decode batch, #running-req: 4, #full token: 340, full token usage: 0.00, mamba num: 12, mamba usage: 0.28, cuda graph: False, gen throughput (token/s): 82.34, #queue-req: 0 +[2026-10-24 16:16:07] INFO: 127.0.0.1:56248 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:16:07] INFO: 127.0.0.1:56252 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:16:07] INFO: 127.0.0.1:56262 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:16:07] INFO: 127.0.0.1:56274 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:16:08] Prefill batch, #new-seq: 1, #new-token: 93, #cached-token: 0, full token usage: 0.00, mamba usage: 0.09, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 27.20 +[2026-10-24 16:16:08] INFO: 127.0.0.1:56282 - "POST /v1/chat/completions HTTP/1.1" 200 OK +[2026-10-24 16:16:45] SIGTERM received. signum=None frame=None. Draining requests and shutting down... +[2026-10-24 16:16:49] Gracefully exiting... Remaining number of requests 0. Remaining requests remaining_rids=[]. +[2026-10-24 16:16:51] kill_process_tree called: parent_pid=8824, include_parent=False, pid=8824 +[2026-10-24 16:16:51] INFO: Shutting down +[2026-10-24 16:16:51] INFO: Waiting for application shutdown. +[2026-10-24 16:16:51] INFO: Application shutdown complete. +[2026-10-24 16:16:51] INFO: Finished server process [8824] +[2026-10-24 16:16:51] kill_process_tree called: parent_pid=8824, include_parent=False, pid=8824 diff --git a/benchmarks/2026-10-25-a100/results/stream-diagnosis.json b/benchmarks/2026-10-25-a100/results/stream-diagnosis.json new file mode 100644 index 0000000..caef7e5 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/stream-diagnosis.json @@ -0,0 +1,59 @@ +{ + "same_generated_token_ids": true, + "normal": "```python\ndef add_numbers(num1, num2):\n return num1 + num2\n```\n\n3. Implement a function", + "stream": "```python\ndef add_numbers(num1, num2):\n return num1 + num2\n```\n\n3. Implement a function", + "stream_no_cleanup": "```python\ndef add_numbers(num1, num2):\n return num1 + num2\n```\n\n3. Implement a function", + "same_ids_no_cleanup": true, + "anchored_stream": "```python\ndef add_numbers(num1, num2):\n return num1 + num2\n```\n\n3. Implement a function", + "anchor_preserves_generation": true, + "token_replay": [ + { + "sample": "def add(a, b):\n return a+b\n", + "passed": true, + "expected": "def add(a, b):\n return a+b\n", + "actual": "def add(a, b):\n return a+b\n" + }, + { + "sample": "if a:\n\tprint(a)\n\n next_line", + "passed": true, + "expected": "if a:\n\tprint(a)\n\n next_line", + "actual": "if a:\n\tprint(a)\n\n next_line" + }, + { + "sample": "A\n caf\u00e9\n \u4e16\u754c\n \ud83d\ude00\n", + "passed": true, + "expected": "A\n caf\u00e9\n \u4e16\u754c\n \ud83d\ude00\n", + "actual": "A\n caf\u00e9\n \u4e16\u754c\n \ud83d\ude00\n" + }, + { + "sample": "\n leading\n\n", + "passed": true, + "expected": "\n leading\n\n", + "actual": "\n leading\n\n" + }, + { + "sample": "one\n\n two\n", + "passed": true, + "expected": "one\n\n two\n", + "actual": "one\n\n two\n" + }, + { + "sample": " hello world", + "passed": true, + "expected": " hello world", + "actual": " hello world" + }, + { + "sample": "a\n \n b", + "passed": true, + "expected": "a\n \n b", + "actual": "a\n \n b" + }, + { + "sample": "```python\n pass\n```", + "passed": true, + "expected": "```python\n pass\n```", + "actual": "```python\n pass\n```" + } + ] +} \ No newline at end of file diff --git a/benchmarks/2026-10-25-a100/results/stream-diagnosis.log b/benchmarks/2026-10-25-a100/results/stream-diagnosis.log new file mode 100644 index 0000000..c2e954e --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/stream-diagnosis.log @@ -0,0 +1,70 @@ +[transformers] `torch_dtype` is deprecated! Use `dtype` instead! + +Loading weights: 0%| | 0/201 [00:00 2048). Running this sequence through the model will result in indexing errors +......[transformers] Both `max_new_tokens` (=15) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +.[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +.[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +.[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +.[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +[transformers] Both `max_new_tokens` (=128) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +. +13 passed in 13.36s diff --git a/benchmarks/2026-10-25-a100/results/transformers-live.log b/benchmarks/2026-10-25-a100/results/transformers-live.log new file mode 100644 index 0000000..e08a399 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/transformers-live.log @@ -0,0 +1,56 @@ +============================= test session starts ============================== +platform linux -- Python 3.12.3, pytest-9.1.1, pluggy-1.7.0 -- /workspace/env-base/bin/python +cachedir: .pytest_cache +rootdir: /workspace +plugins: cov-7.1.0, anyio-4.11.0 +collecting ... collected 13 items + +../workspace/test_transformers_live.py::test_streamed_deltas_equal_real_greedy_completion[8] PASSED [ 7%] +../workspace/test_transformers_live.py::test_streamed_deltas_equal_real_greedy_completion[32] FAILED [ 15%] +../workspace/test_transformers_live.py::test_actual_oversized_prompt_rejected[False] PASSED [ 23%] +../workspace/test_transformers_live.py::test_actual_oversized_prompt_rejected[True] PASSED [ 30%] +../workspace/test_transformers_live.py::test_output_reservation_rejected[False] PASSED [ 38%] +../workspace/test_transformers_live.py::test_output_reservation_rejected[True] PASSED [ 46%] +../workspace/test_transformers_live.py::test_real_generation_error_reaches_caller[False] PASSED [ 53%] +../workspace/test_transformers_live.py::test_real_generation_error_reaches_caller[True] PASSED [ 61%] +../workspace/test_transformers_live.py::test_native_exact_context_fit PASSED [ 69%] +../workspace/test_transformers_live.py::test_public_llm_chat[Say hello.] PASSED [ 76%] +../workspace/test_transformers_live.py::test_public_llm_chat[Explain caf\xe9 in one sentence.] PASSED [ 84%] +../workspace/test_transformers_live.py::test_public_llm_chat[Return a JSON object with a city field.] PASSED [ 92%] +../workspace/test_transformers_live.py::test_http_routes_with_real_inference PASSED [100%] + +=================================== FAILURES =================================== +____________ test_streamed_deltas_equal_real_greedy_completion[32] _____________ + +backend = +budget = 32 + + @pytest.mark.parametrize('budget', [8, 32]) + def test_streamed_deltas_equal_real_greedy_completion(backend, budget): + prompt = 'Write a short Python function to add two numbers:\n' + normal = backend.generate(prompt, temperature=0, max_new_tokens=budget) + chunks = list(backend.generate_stream(prompt, temperature=0, max_new_tokens=budget)) + assert chunks + assert all(isinstance(c['text'], str) for c in chunks) +> assert ''.join(c['text'] for c in chunks) == normal['text'] +E AssertionError: assert '```python\nd...nt a function' == '```python\nd...nt a function' +E +E ```python +E def add_numbers(num1, num2): +E - return num1 + num2 +E ? - +E + return num1 + num2 +E ``` +E +E 3. Implement a function + +/workspace/test_transformers_live.py:42: AssertionError +----------------------------- Captured stderr call ----------------------------- +[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +[transformers] Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +------------------------------ Captured log call ------------------------------- +WARNING transformers.generation.utils:utils.py:2015 Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +WARNING transformers.generation.utils:utils.py:2015 Both `max_new_tokens` (=32) and `max_length`(=2048) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation) +=========================== short test summary info ============================ +FAILED ../workspace/test_transformers_live.py::test_streamed_deltas_equal_real_greedy_completion[32] +======================== 1 failed, 12 passed in 40.24s ========================= diff --git a/benchmarks/2026-10-25-a100/results/usage-after.log b/benchmarks/2026-10-25-a100/results/usage-after.log new file mode 100644 index 0000000..358df2f --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/usage-after.log @@ -0,0 +1,2 @@ +.... [100%] +4 passed, 7 subtests passed in 0.04s diff --git a/benchmarks/2026-10-25-a100/results/usage-before.log b/benchmarks/2026-10-25-a100/results/usage-before.log new file mode 100644 index 0000000..ca31df6 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/usage-before.log @@ -0,0 +1,137 @@ +.FF. [100%] +=================================== FAILURES =================================== +_ TestReportedUsage.test_chat_and_completion_keep_reported_counts (route='chat') _ + +self = + + def test_chat_and_completion_keep_reported_counts(self): + usage = { + "prompt_tokens": 120, + "completion_tokens": 64, + "total_tokens": 184, + "completion_tokens_details": {"reasoning_tokens": 12}, + } + for route in ("chat", "complete"): + with self.subTest(route=route): + backend = OpenAICompatBackend("test-model") + payload = openai_response("Short text") + payload["choices"][0]["text"] = "Short text" + payload["usage"] = usage + with mock.patch.object(backend, "_post_json", return_value=payload): + llm = make_llm(backend) + result = llm.chat(MESSAGES) if route == "chat" else llm.complete("Hello") +> self.assertEqual(result["usage"], usage) +E AssertionError: {'prompt_tokens': 10, 'completion_tokens': 2, 'total_tokens': 12} != {'prompt_tokens': 120, 'completion_tokens': 64, 'total_token[58 chars] 12}} +E - {'completion_tokens': 2, 'prompt_tokens': 10, 'total_tokens': 12} +E + {'completion_tokens': 64, +E + 'completion_tokens_details': {'reasoning_tokens': 12}, +E + 'prompt_tokens': 120, +E + 'total_tokens': 184} + +tests/test_native_chat.py:300: AssertionError +_ TestReportedUsage.test_chat_and_completion_keep_reported_counts (route='complete') _ + +self = + + def test_chat_and_completion_keep_reported_counts(self): + usage = { + "prompt_tokens": 120, + "completion_tokens": 64, + "total_tokens": 184, + "completion_tokens_details": {"reasoning_tokens": 12}, + } + for route in ("chat", "complete"): + with self.subTest(route=route): + backend = OpenAICompatBackend("test-model") + payload = openai_response("Short text") + payload["choices"][0]["text"] = "Short text" + payload["usage"] = usage + with mock.patch.object(backend, "_post_json", return_value=payload): + llm = make_llm(backend) + result = llm.chat(MESSAGES) if route == "chat" else llm.complete("Hello") +> self.assertEqual(result["usage"], usage) +E AssertionError: {'prompt_tokens': 1, 'completion_tokens': 2, 'total_tokens': 3} != {'prompt_tokens': 120, 'completion_tokens': 64, 'total_token[58 chars] 12}} +E - {'completion_tokens': 2, 'prompt_tokens': 1, 'total_tokens': 3} +E + {'completion_tokens': 64, +E + 'completion_tokens_details': {'reasoning_tokens': 12}, +E + 'prompt_tokens': 120, +E + 'total_tokens': 184} + +tests/test_native_chat.py:300: AssertionError +______ TestReportedUsage.test_ollama_native_counts_reach_public_responses ______ + +self = + + def test_ollama_native_counts_reach_public_responses(self): + backend = OllamaBackend("test-model") + payload = { + "message": {"content": "Short text"}, + "response": "Short text", + "prompt_eval_count": 100, + "eval_count": 64, + } + with mock.patch.object(backend, "_post_json", return_value=payload): + for result in (make_llm(backend).chat(MESSAGES), make_llm(backend).complete("Hi")): +> self.assertEqual( + result["usage"], + {"prompt_tokens": 100, "completion_tokens": 64, "total_tokens": 164}, + ) +E AssertionError: {'prompt_tokens': 10, 'completion_tokens': 2, 'total_tokens': 12} != {'prompt_tokens': 100, 'completion_tokens': 64, 'total_tokens': 164} +E - {'completion_tokens': 2, 'prompt_tokens': 10, 'total_tokens': 12} +E ? ^ ^ +E +E + {'completion_tokens': 64, 'prompt_tokens': 100, 'total_tokens': 164} +E ? ^^ + ^^ + +tests/test_native_chat.py:323: AssertionError +__________ TestReportedUsage.test_tool_rounds_sum_each_reported_usage __________ + +self = + + def test_tool_rounds_sum_each_reported_usage(self): + backend = OpenAICompatBackend("test-model") + replies = [openai_response(calls=[native_call()]), openai_response("Done")] + replies[0]["usage"] = {"prompt_tokens": 100, "completion_tokens": 20} + replies[1]["usage"] = {"prompt_tokens": 150, "completion_tokens": 10} + with mock.patch.object(backend, "_post_json", side_effect=replies): + result = make_llm(backend).chat(MESSAGES, tools=[lookup]) +> self.assertEqual( + result["usage"], {"prompt_tokens": 250, "completion_tokens": 30, "total_tokens": 280} + ) +E AssertionError: {'prompt_tokens': 46, 'completion_tokens': 1, 'total_tokens': 47} != {'prompt_tokens': 250, 'completion_tokens': 30, 'total_tokens': 280} +E - {'completion_tokens': 1, 'prompt_tokens': 46, 'total_tokens': 47} +E ? ^ ^^ ^^ +E +E + {'completion_tokens': 30, 'prompt_tokens': 250, 'total_tokens': 280} +E ? ^^ ^^^ ^^^ + +tests/test_native_chat.py:309: AssertionError +_ TestReportedUsage.test_zero_counts_and_invalid_count_fallback (reported={'prompt_tokens': 0, 'completion_tokens': 0}) _ + +self = + + def test_zero_counts_and_invalid_count_fallback(self): + backend = OpenAICompatBackend("test-model") + for reported in ( + {"prompt_tokens": 0, "completion_tokens": 0}, + {"prompt_tokens": -1, "completion_tokens": 4}, + {"prompt_tokens": True, "completion_tokens": 4}, + {"prompt_tokens": "100", "completion_tokens": 4}, + None, + ): + with self.subTest(reported=reported): + payload = dict(openai_response("Hello"), usage=reported) + with mock.patch.object(backend, "_post_json", return_value=payload): + result = make_llm(backend).chat(MESSAGES) + if reported == {"prompt_tokens": 0, "completion_tokens": 0}: +> self.assertEqual(result["usage"]["total_tokens"], 0) +E AssertionError: 11 != 0 + +tests/test_native_chat.py:342: AssertionError +=========================== short test summary info ============================ +SUBFAILED(route='chat') tests/test_native_chat.py::TestReportedUsage::test_chat_and_completion_keep_reported_counts +SUBFAILED(route='complete') tests/test_native_chat.py::TestReportedUsage::test_chat_and_completion_keep_reported_counts +FAILED tests/test_native_chat.py::TestReportedUsage::test_ollama_native_counts_reach_public_responses +FAILED tests/test_native_chat.py::TestReportedUsage::test_tool_rounds_sum_each_reported_usage +SUBFAILED(reported={'prompt_tokens': 0, 'completion_tokens': 0}) tests/test_native_chat.py::TestReportedUsage::test_zero_counts_and_invalid_count_fallback +5 failed, 2 passed, 4 subtests passed in 0.09s diff --git a/benchmarks/2026-10-25-a100/results/vllm-gpu-snapshot.csv b/benchmarks/2026-10-25-a100/results/vllm-gpu-snapshot.csv new file mode 100644 index 0000000..133ad7e --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/vllm-gpu-snapshot.csv @@ -0,0 +1,2 @@ +name, memory.used [MiB], memory.total [MiB], utilization.gpu [%] +NVIDIA A100-SXM4-80GB, 69117 MiB, 81920 MiB, 0 % diff --git a/benchmarks/2026-10-25-a100/results/vllm-qwen-final.log b/benchmarks/2026-10-25-a100/results/vllm-qwen-final.log new file mode 100644 index 0000000..2012ad9 --- /dev/null +++ b/benchmarks/2026-10-25-a100/results/vllm-qwen-final.log @@ -0,0 +1,212 @@ +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:347] +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:347] █ █ █▄ ▄█ +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:347] ▄▄ ▄█ █ █ █ ▀▄▀ █ version 0.32.0 +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:347] █▄█▀ █ █ █ █ model Qwen/Qwen3.8-27B +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:347] ▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀ ▀ +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:347] +(APIServer pid=9642) INFO 10-24 16:17:22 [api_utils.py:286] non-default args: {'model_tag': 'Qwen/Qwen3.8-27B', 'enable_auto_tool_choice': True, 'tool_call_parser': 'qwen3_coder', 'host': '127.0.0.1', 'model': 'Qwen/Qwen3.8-27B', 'dtype': 'bfloat16', 'revision': '1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0', 'max_model_len': 8192, 'enforce_eager': True, 'reasoning_parser': 'qwen3', 'gpu_memory_utilization': 0.85, 'language_model_only': True, 'max_num_seqs': 4} +(APIServer pid=9642) INFO 10-24 16:17:23 [model.py:733] Resolved architecture: Qwen3_5ForConditionalGeneration +(APIServer pid=9642) INFO 10-24 16:17:23 [model.py:2152] Using max model len 8192 + +Fetching 14 files: 0%| | 0/14 [00:00, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['all'], 'ir_enable_torch_wrap': False, 'splitting_ops': [], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_vision_items_per_batch': 0, 'encoder_cudagraph_max_frames_per_batch': None, 'cudagraph_decoder_replay': True, 'decoder_replay_cudagraph_capture_sizes': [], 'decoder_replay_trim_threshold': 768, 'compile_sizes': [], 'compile_ranges_endpoints': [2048], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': , 'cudagraph_num_of_warmups': 0, 'cudagraph_capture_sizes': [], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': True, 'fuse_act_quant': True, 'fuse_attn_quant': False, 'fuse_allreduce_rms': False, 'enable_qk_norm_rope_fusion': False, 'fuse_rope_kvcache_cat_mla': False, 'fuse_act_padding': False, 'fuse_qk_norm_rope_kvcache': False}, 'max_cudagraph_capture_size': 0, 'dynamic_shapes_config': {'type': , 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': None, 'fast_moe_cold_start': False, 'static_all_moe_layers': []}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['vllm_c', 'native'], fused_add_rms_norm=['vllm_c', 'native'], gelu_and_mul_sparse=['triton', 'native']), enable_flashinfer_autotune=True, enable_rocm_segmented_attn_autotune=False, enable_cutedsl_warmup=True, enable_jit_warmup=False, moe_backend='auto', sparse_indexer_topk_backend='auto', linear_backend='auto', linear_backend_per_quant=None) +(EngineCore pid=10003) INFO 10-24 16:17:37 [parallel_state.py:1906] world_size=1 rank=0 local_rank=0 distributed_init_method=file:///tmp/vllm_dist_d48226401fc94e3ab22cacfe5ed10cf9 backend=nccl +(EngineCore pid=10003) INFO 10-24 16:17:37 [parallel_state.py:2350] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, ETP rank 0, EP rank N/A, EPLB rank N/A +(EngineCore pid=10003) INFO 10-24 16:17:37 [gpu_worker.py:518] Using V2 Model Runner +(EngineCore pid=10003) INFO 10-24 16:17:38 [model_runner.py:392] Loading model from scratch... + +Fetching 14 files: 0%| | 0/14 [00:00= mamba page size. +(EngineCore pid=10003) INFO 10-24 16:17:48 [interface.py:1120] Padding mamba page size by 0.13% to ensure that mamba page size and attention page size are exactly equal. +(EngineCore pid=10003) INFO 10-24 16:17:48 [utils.py:347] Using LBNHC KV cache layout. +(EngineCore pid=10003) INFO 10-24 16:17:50 [gpu_worker.py:759] Available KV cache memory: 16.79 GiB +(EngineCore pid=10003) INFO 10-24 16:17:50 [kv_cache_utils.py:2327] GPU KV cache size: 168,658 tokens, Maximum concurrency for 8,192 tokens per request: 20.59x +(EngineCore pid=10003) INFO 10-24 16:17:50 [kv_cache_utils.py:853] kv cache group sizes (784, 784, 784, 784) +(EngineCore pid=10003) INFO 10-24 16:17:50 [kv_cache_utils.py:854] kv lcm block sizes 784 +(EngineCore pid=10003) INFO 10-24 16:17:51 [qwen_triton_warmup.py:296] Warming up Qwen GDN Triton kernels for model_type=qwen3_5_text. +(EngineCore pid=10003) INFO 10-24 16:17:51 [mamba_triton_warmup.py:42] Warmed Mamba batch_memcpy_kernel. +(EngineCore pid=10003) INFO 10-24 16:17:51 [gpu_worker.py:1034] Free memory on device (78.84/79.25 GiB) on startup. Desired GPU memory utilization is (0.85, 67.36 GiB). Actual usage is 50.27 GiB for consumed memory (weights + non-torch), 0.31 GiB for peak activation, and 0.0 GiB for CUDAGraph memory. Replace gpu_memory_utilization config with `--kv-cache-memory=17869659751` (16.64 GiB) to fit into requested memory, or `--kv-cache-memory=30188435456` (28.12 GiB) to fully utilize gpu memory. Current kv cache memory in use is 16.79 GiB. +(EngineCore pid=10003) INFO 10-24 16:17:51 [core.py:402] init engine (profile, create kv cache, warmup model) took 2.98 s +(EngineCore pid=10003) WARNING 10-24 16:17:51 [vllm.py:1703] Enforce eager set, disabling torch.compile, CUDAGraphs, and JIT kernel warmup. This is equivalent to setting -cc.mode=none -cc.cudagraph_mode=none and --kernel_config.enable_jit_warmup=False +(EngineCore pid=10003) WARNING 10-24 16:17:51 [vllm.py:1727] Inductor compilation was disabled by user settings, optimizations settings that are only active during inductor compilation will be ignored. +(EngineCore pid=10003) INFO 10-24 16:17:51 [kernel.py:467] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['vllm_c', 'native'], fused_add_rms_norm=['vllm_c', 'native'], gelu_and_mul_sparse=['triton', 'native']) +(EngineCore pid=10003) INFO 10-24 16:17:51 [vllm.py:1929] Cudagraph is disabled under eager mode +(EngineCore pid=10003) INFO 10-24 16:17:51 [compilation.py:317] Enabled custom fusions: norm_quant, act_quant +(APIServer pid=9642) INFO 10-24 16:17:51 [entry.py:136] Supported tasks: ['generate'] +(APIServer pid=9642) INFO 10-24 16:17:51 [factories.py:89] Scale-out endpoints are disabled. Restart vllm serve with --enable-scale-out to enable them. +(APIServer pid=9642) INFO 10-24 16:17:51 [parser_manager.py:38] "auto" tool choice has been enabled. +(APIServer pid=9642) INFO 10-24 16:17:52 [hf.py:648] Detected the chat template content format to be 'openai'. You can set `--chat-template-content-format` to override this. +(APIServer pid=9642) WARNING 10-24 16:17:52 [model.py:1893] Default vLLM sampling parameters have been overridden by the model's `generation_config.json`: `{'temperature': 1.0, 'top_k': 20, 'top_p': 0.95}`. If this is not intended, please relaunch vLLM instance with `--generation-config vllm`. +(APIServer pid=9642) WARNING 10-24 16:17:52 [serving.py:262] The chat template requires system-first ordering, so inline system messages in /v1/messages requests (e.g. Claude Code's per-turn reminders) are merged into the leading system prompt. Each new one changes the prompt prefix, so the rest of the conversation misses the prefix cache. Pass a --chat-template that accepts non-leading system messages to avoid this. +(APIServer pid=9642) INFO 10-24 16:17:52 [entry.py:140] Starting vLLM server on http://127.0.0.1:8000 +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:186] Available routes are: +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /openapi.json, Methods: GET, HEAD +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /docs, Methods: GET, HEAD +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /docs/oauth2-redirect, Methods: GET, HEAD +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /redoc, Methods: GET, HEAD +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /load, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /version, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /kv_event_sources, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /health, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /metrics, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /tokenize, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /detokenize, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/models, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/systemone, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /ping, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /ping, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /invocations, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/chat/completions, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/chat/completions/batch, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/responses, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/responses/{response_id}, Methods: GET +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/responses/{response_id}/cancel, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/completions, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/messages, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/messages/count_tokens, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /generative_scoring, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /scale_elastic_ep, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /is_scaling_elastic_ep, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/chat/completions/render, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/messages/render, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/completions/render, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/responses/render, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/chat/completions/derender, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /v1/completions/derender, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /inference/v1/generate, Methods: POST +(APIServer pid=9642) INFO 10-24 16:17:52 [launcher.py:195] Route: /inference/v1/abort_requests, Methods: POST +INFO: Started server process [9642] +INFO: Waiting for application startup. +INFO: Application startup complete. +INFO: 127.0.0.1:59388 - "GET /health HTTP/1.1" 200 OK +INFO: 127.0.0.1:59402 - "GET /v1/models HTTP/1.1" 200 OK +INFO: 127.0.0.1:59404 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:18:12 [loggers.py:335] Engine 000: Avg prompt throughput: 5.2 tokens/s, Avg generation throughput: 1.2 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:59414 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:59420 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:59426 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:59442 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:59448 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:18:22 [loggers.py:335] Engine 000: Avg prompt throughput: 38.3 tokens/s, Avg generation throughput: 13.2 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:59456 - "POST /v1/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:46504 - "POST /v1/chat/completions HTTP/1.1" 400 Bad Request +INFO: 127.0.0.1:46508 - "POST /v1/chat/completions HTTP/1.1" 400 Bad Request +INFO: 127.0.0.1:46512 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:46516 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:46532 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:46546 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:46548 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:46570 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:18:32 [loggers.py:335] Engine 000: Avg prompt throughput: 20.9 tokens/s, Avg generation throughput: 15.8 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:54758 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:54768 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:18:42 [loggers.py:335] Engine 000: Avg prompt throughput: 7.0 tokens/s, Avg generation throughput: 15.9 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:54780 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:41012 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:41016 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:18:52 [loggers.py:335] Engine 000: Avg prompt throughput: 10.5 tokens/s, Avg generation throughput: 15.9 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:50718 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:50734 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:19:02 [loggers.py:335] Engine 000: Avg prompt throughput: 7.0 tokens/s, Avg generation throughput: 16.0 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:50746 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:48608 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:48620 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:35250 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:19:12 [loggers.py:335] Engine 000: Avg prompt throughput: 10.5 tokens/s, Avg generation throughput: 15.8 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:35258 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:35262 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:19:22 [loggers.py:335] Engine 000: Avg prompt throughput: 7.0 tokens/s, Avg generation throughput: 16.0 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 1.1%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:41714 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:41736 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:19:32 [loggers.py:335] Engine 000: Avg prompt throughput: 21.0 tokens/s, Avg generation throughput: 16.0 tokens/s, Running: 4 reqs, Waiting: 0 reqs, GPU KV cache usage: 4.6%, Prefix cache hit rate: 0.0% +INFO: 127.0.0.1:35764 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:35766 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:35782 - "POST /v1/chat/completions HTTP/1.1" 200 OK +INFO: 127.0.0.1:35788 - "POST /v1/chat/completions HTTP/1.1" 200 OK +(APIServer pid=9642) INFO 10-24 16:19:42 [loggers.py:335] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 25.1 tokens/s, Running: 0 reqs, Waiting: 0 reqs, GPU KV cache usage: 0.0%, Prefix cache hit rate: 0.0% +(APIServer pid=9642) INFO 10-24 16:19:52 [loggers.py:335] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 0.0 tokens/s, Running: 0 reqs, Waiting: 0 reqs, GPU KV cache usage: 0.0%, Prefix cache hit rate: 0.0% +(APIServer pid=9642) INFO 10-24 16:20:30 [launcher.py:254] [shutdown] API server: shutdown triggered +(APIServer pid=9642) INFO 10-24 16:20:30 [launcher.py:270] [shutdown] API server: stopping engine client mode=abort timeout=0s +(APIServer pid=9642) INFO 10-24 16:20:30 [core_client.py:770] [shutdown] MPClient: start timeout=0s +(APIServer pid=9642) INFO 10-24 16:20:30 [core_client.py:772] [shutdown] MPClient: stopping engine manager +(APIServer pid=9642) INFO 10-24 16:20:30 [utils.py:628] [shutdown] Process manager: send sigterm to process EngineCore +(APIServer pid=9642) WARNING 10-24 16:20:30 [utils.py:648] [shutdown] Process manager: force killing remaining processes count=1 +(APIServer pid=9642) WARNING 10-24 16:20:30 [utils.py:653] [shutdown] Process manager: force killing remaining process EngineCore pid 10003 +(EngineCore pid=10003) INFO 10-24 16:20:30 [core.py:1454] [shutdown] EngineCore: trigger received signal=SIGTERM +(EngineCore pid=10003) INFO 10-24 16:20:30 [core.py:1635] [shutdown] EngineCore: start mode=abort timeout=0s +(EngineCore pid=10003) INFO 10-24 16:20:30 [core.py:1666] [shutdown] EngineCore: request processing complete; starting resource teardown +(EngineCore pid=10003) INFO 10-24 16:20:30 [core.py:1499] [shutdown] EngineCore: exiting busy loop +(APIServer pid=9642) INFO 10-24 16:20:30 [core_client.py:774] [shutdown] MPClient: engine manager stopped +(APIServer pid=9642) INFO 10-24 16:20:30 [core_client.py:775] [shutdown] MPClient: cleaning up background resources +(APIServer pid=9642) INFO 10-24 16:20:30 [core_client.py:777] [shutdown] MPClient: complete +(APIServer pid=9642) INFO 10-24 16:20:30 [launcher.py:279] [shutdown] API server: engine client stopped +(APIServer pid=9642) INFO 10-24 16:20:30 [launcher.py:282] [shutdown] API server: signalling HTTP server shutdown +(APIServer pid=9642) INFO 10-24 16:20:30 [launcher.py:304] [shutdown] API server: shutting down FastAPI HTTP server +INFO: Shutting down +INFO: Waiting for application shutdown. +INFO: Application shutdown complete. +/usr/lib/python3.12/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown + warnings.warn('resource_tracker: There appear to be %d ' diff --git a/benchmarks/2026-10-25-a100/scripts/benchmark_http.py b/benchmarks/2026-10-25-a100/scripts/benchmark_http.py new file mode 100644 index 0000000..fa7ae5b --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/benchmark_http.py @@ -0,0 +1,119 @@ +"""Warm loopback latency measurements; requires an already running local engine.""" + +import argparse +import concurrent.futures +import importlib.metadata +import json +import pathlib +import statistics +import time +from datetime import datetime, timezone + +from local_llm_kit import LLM + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--backend", required=True) + parser.add_argument("--url", required=True) + parser.add_argument("--model", required=True) + parser.add_argument("--report", required=True) + args = parser.parse_args() + messages = [ + { + "role": "user", + "content": "List the integers from 1 to 200, separated by commas. Do not explain or stop early.", + } + ] + settings = dict(temperature=0, max_tokens=64, top_p=1, top_k=40, repetition_penalty=1, seed=7) + settings.update( + {"think": False, "num_ctx": 8192} + if args.backend == "ollama" + else {"chat_template_kwargs": {"enable_thinking": False}} + ) + + def request(stream=False): + backend_kwargs = {"timeout": 120, "max_retries": 0, "context_window": 8192} + backend_kwargs["host" if args.backend == "ollama" else "base_url"] = args.url + llm = LLM(args.model, backend=args.backend, use_cache=False, backend_kwargs=backend_kwargs) + started = time.perf_counter() + response = llm.chat(messages, stream=stream, **settings) + if stream: + first = None + pieces = [] + for chunk in response: + text = chunk["choices"][0].get("delta", {}).get("content") or "" + if text: + if first is None: + first = time.perf_counter() - started + pieces.append(text) + assert first is not None, "No streamed content" + return { + "seconds": time.perf_counter() - started, + "ttft_seconds": first, + "text": "".join(pieces), + } + seconds = time.perf_counter() - started + text = response["choices"][0]["message"]["content"] + usage = response.get("usage") or {} + tokens = usage.get("completion_tokens") + assert isinstance(text, str) and text.strip(), response + assert isinstance(tokens, int) and tokens > 0, usage + assert response["choices"][0]["finish_reason"] != "length" or tokens == 64, usage + return { + "seconds": seconds, + "usage": usage, + "text": text, + "output_tokens_per_second": tokens / seconds, + "finish_reason": response["choices"][0]["finish_reason"], + } + + report = { + "started_utc": datetime.now(timezone.utc).isoformat(), + "backend": args.backend, + "model": args.model, + "kit_version": importlib.metadata.version("local-llm-kit"), + "endpoint": args.url, + "messages": messages, + "settings": settings, + "method": "2 warmups, 10 sequential repeats, 5 streaming repeats, then 4 concurrent requests; same prompt, engine prefix caching enabled; localhost HTTP; no network-isolation claim", + } + path = pathlib.Path(args.report) + + def save(): + path.write_text(json.dumps(report, indent=2)) + + report["warmups"] = [request() for _ in range(2)] + report["sequential"] = [] + for _ in range(10): + report["sequential"].append(request()) + save() + report["streaming"] = [request(stream=True) for _ in range(5)] + started = time.perf_counter() + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as pool: + report["concurrent"] = list(pool.map(lambda _: request(), range(4))) + report["concurrent_wall_seconds"] = time.perf_counter() - started + report["summary"] = { + "sequential_n": 10, + "median_latency_seconds": statistics.median(r["seconds"] for r in report["sequential"]), + "min_latency_seconds": min(r["seconds"] for r in report["sequential"]), + "max_latency_seconds": max(r["seconds"] for r in report["sequential"]), + "median_output_tokens_per_second": statistics.median( + r["output_tokens_per_second"] for r in report["sequential"] + ), + "median_ttft_seconds": statistics.median(r["ttft_seconds"] for r in report["streaming"]), + "concurrent_output_tokens_per_second": sum( + r["usage"]["completion_tokens"] for r in report["concurrent"] + ) + / report["concurrent_wall_seconds"], + "completion_tokens": [r["usage"]["completion_tokens"] for r in report["sequential"]], + } + assert len(report["sequential"]) == 10 and len(report["concurrent"]) == 4 + assert all(r["seconds"] > 0 for r in report["sequential"]) + report["completed_utc"] = datetime.now(timezone.utc).isoformat() + save() + print(json.dumps(report["summary"], indent=2), flush=True) + + +if __name__ == "__main__": + main() diff --git a/benchmarks/2026-10-25-a100/scripts/probe_ollama.py b/benchmarks/2026-10-25-a100/scripts/probe_ollama.py new file mode 100644 index 0000000..3a3f181 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/probe_ollama.py @@ -0,0 +1,162 @@ +"""Exercise the native Ollama adapter against a real, locally served Qwen model.""" + +import json +import pathlib +import sys +import time +import traceback + +from local_llm_kit import LLM + +MODEL = "qwen3.8:27b" +REPORT = pathlib.Path("/workspace/artifacts/qwen-ollama-probes.json") +records = [] + + +def client(): + return LLM( + MODEL, + backend="ollama", + require_local=True, + use_cache=False, + backend_kwargs={ + "host": "http://127.0.0.1:11434", + "timeout": 120, + "max_retries": 0, + "keep_alive": "10m", + }, + ) + + +def ask(prompt, **kwargs): + options = {"temperature": 0, "max_tokens": 128, "seed": 7, "think": False, "num_ctx": 8192} + options.update(kwargs) + return client().chat([{"role": "user", "content": prompt}], **options) + + +def text(result): + value = result["choices"][0]["message"]["content"] + assert isinstance(value, str) and value.strip(), result + return value + + +def run(name, operation): + started = time.perf_counter() + try: + data = operation() + item = { + "name": name, + "passed": True, + "seconds": time.perf_counter() - started, + "data": data, + } + except Exception as exc: + item = { + "name": name, + "passed": False, + "seconds": time.perf_counter() - started, + "error": repr(exc), + "traceback": traceback.format_exc(), + } + records.append(item) + REPORT.write_text( + json.dumps({"model": MODEL, "backend": "ollama", "results": records}, indent=2) + ) + print(name, item["passed"], round(item["seconds"], 3), flush=True) + + +def locality(): + llm = client() + assert llm.assert_local() + result = llm.detect_backend_capabilities() + assert result["detected"] + return result + + +def chat(): + result = ask("What is 2 plus 2? Give only the number.") + assert "4" in text(result) + assert result["usage"]["completion_tokens"] > 0 + return result + + +def stream(): + prompt = "Write a Python function add(a, b) returning their sum." + normal = ask(prompt, max_tokens=64) + pieces = list(ask(prompt, max_tokens=64, stream=True)) + actual = "".join(c["choices"][0]["delta"].get("content") or "" for c in pieces) + assert actual == text(normal), {"normal": normal, "streamed": actual} + return {"response": normal, "streamed_text": actual, "chunks": len(pieces)} + + +def schema(): + result = ask( + "Return the city Paris and the country France in JSON.", + response_format={ + "type": "json_schema", + "json_schema": { + "name": "city", + "schema": { + "type": "object", + "properties": {"city": {"type": "string"}, "country": {"type": "string"}}, + "required": ["city", "country"], + "additionalProperties": False, + }, + }, + }, + ) + assert set(json.loads(text(result))) == {"city", "country"} + return result + + +def tools(): + result = ask( + "Call lookup_weather for Sydney.", + tools=[ + { + "type": "function", + "function": { + "name": "lookup_weather", + "description": "Get weather for a city", + "parameters": { + "type": "object", + "properties": {"city": {"type": "string"}}, + "required": ["city"], + }, + }, + } + ], + execute_tools=False, + ) + call = result["choices"][0]["message"]["tool_calls"][0] + assert call["function"]["name"] == "lookup_weather" + assert json.loads(call["function"]["arguments"])["city"] + return result + + +def reasoning(): + result = ask("What is 2 plus 2?", think=True, max_tokens=256) + assert result["choices"][0]["message"].get("thinking"), result + assert text(result) + return result + + +def completion(): + result = client().complete( + "The capital of France is", max_tokens=32, temperature=0, think=False, num_ctx=8192 + ) + assert result["choices"][0]["text"].strip() + return result + + +for name, fn in [ + ("locality_and_capabilities", locality), + ("chat", chat), + ("stream_matches_nonstream", stream), + ("structured_json_schema", schema), + ("tool_call_without_execution", tools), + ("reasoning_metadata", reasoning), + ("text_completion", completion), +]: + run(name, fn) +sys.exit(0 if all(item["passed"] for item in records) else 1) diff --git a/benchmarks/2026-10-25-a100/scripts/probe_server.py b/benchmarks/2026-10-25-a100/scripts/probe_server.py new file mode 100644 index 0000000..d9d4ac8 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/probe_server.py @@ -0,0 +1,207 @@ +"""Run actual Local-LLM-kit requests against a loopback inference server.""" + +import argparse +import concurrent.futures +import json +import pathlib +import sys +import time +import traceback +import urllib.request + +from local_llm_kit import LLM + +p = argparse.ArgumentParser() +p.add_argument("--backend", required=True) +p.add_argument("--url", required=True) +p.add_argument("--model", required=True) +p.add_argument("--report", required=True) +args = p.parse_args() +records = [] + + +def client(): + return LLM( + args.model, + backend=args.backend, + use_cache=False, + backend_kwargs={ + "base_url": args.url, + "timeout": 120, + "context_window": 8192, + "max_retries": 0, + }, + ) + + +def ask(prompt, **options): + settings = { + "max_tokens": 128, + "temperature": 0, + "seed": 7, + "chat_template_kwargs": {"enable_thinking": False}, + } + settings.update(options) + return client().chat([{"role": "user", "content": prompt}], **settings) + + +def content(response): + value = response["choices"][0]["message"]["content"] + assert isinstance(value, str) and value.strip(), response + return value + + +def case(name, fn): + started = time.monotonic() + try: + data = fn() + record = {"name": name, "passed": True, "seconds": time.monotonic() - started, "data": data} + except Exception as exc: + record = { + "name": name, + "passed": False, + "seconds": time.monotonic() - started, + "error": repr(exc), + "traceback": traceback.format_exc(), + } + records.append(record) + pathlib.Path(args.report).write_text( + json.dumps( + {"backend": args.backend, "model": args.model, "url": args.url, "results": records}, + indent=2, + ) + ) + print(name, "PASS" if record["passed"] else "FAIL", round(record["seconds"], 3), flush=True) + + +def listing(): + with urllib.request.urlopen(args.url + "/models", timeout=10) as r: + result = json.load(r) + assert args.model in [m["id"] for m in result["data"]] + return result + + +def chat(): + result = ask("What is 2 plus 2? Give only the number.") + assert "4" in content(result) + return result + + +def stream(): + prompt = "Write a Python function named add that returns the sum of a and b." + normal = ask(prompt, max_tokens=64) + chunks = list(ask(prompt, max_tokens=64, stream=True)) + text = "".join( + (chunk["choices"][0].get("delta") or {}).get("content") or "" for chunk in chunks + ) + assert text == content(normal), {"normal": normal, "stream": text} + return {"response": normal, "stream_text": text, "chunks": len(chunks)} + + +def schema(): + result = ask( + "Return a JSON object for Paris, France.", + response_format={ + "type": "json_schema", + "json_schema": { + "name": "city", + "strict": True, + "schema": { + "type": "object", + "properties": {"city": {"type": "string"}, "country": {"type": "string"}}, + "required": ["city", "country"], + "additionalProperties": False, + }, + }, + }, + ) + parsed = json.loads(content(result)) + assert set(parsed) == {"city", "country"} + assert all(isinstance(v, str) for v in parsed.values()) + return result + + +def tools(): + result = ask( + "Look up the weather in Sydney.", + tools=[ + { + "type": "function", + "function": { + "name": "lookup_weather", + "description": "Look up weather for a city.", + "parameters": { + "type": "object", + "properties": {"city": {"type": "string"}}, + "required": ["city"], + "additionalProperties": False, + }, + }, + } + ], + tool_choice={"type": "function", "function": {"name": "lookup_weather"}}, + execute_tools=False, + ) + choice = result["choices"][0] + calls = choice["message"]["tool_calls"] + assert choice["finish_reason"] == "tool_calls" + assert calls[0]["function"]["name"] == "lookup_weather" + assert isinstance(json.loads(calls[0]["function"]["arguments"])["city"], str) + return result + + +def reasoning(): + result = ask( + "What is 2 plus 2?", + max_tokens=256, + chat_template_kwargs={"enable_thinking": True}, + reasoning_effort="low", + ) + message = result["choices"][0]["message"] + assert message.get("reasoning_content") or message.get("reasoning"), result + assert content(result) + return result + + +def completion(): + result = client().complete("The capital of France is", max_tokens=32, temperature=0) + assert result["choices"][0]["text"].strip(), result + return result + + +def overflow(streaming): + try: + result = ask(" hello" * 9000, max_tokens=8, stream=streaming) + if streaming: + list(result) + except (ValueError, RuntimeError) as exc: + assert "context" in str(exc).lower() or "400" in str(exc), str(exc) + return {"rejected_with": type(exc).__name__, "message": str(exc)} + raise AssertionError("Oversized context was not rejected") + + +def concurrent_requests(): + started = time.monotonic() + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as pool: + results = list( + pool.map( + lambda n: ask(f"What is {n} plus 10? Give only the number.", max_tokens=32), + range(4), + ) + ) + for result in results: + content(result) + return {"requests": 4, "wall_seconds": time.monotonic() - started, "responses": results} + + +case("model_listing", listing) +case("chat", chat) +case("stream_matches_nonstream", stream) +case("structured_json_schema", schema) +case("forced_tool_call_without_execution", tools) +case("reasoning_metadata", reasoning) +case("text_completion", completion) +case("context_overflow_nonstream", lambda: overflow(False)) +case("context_overflow_stream", lambda: overflow(True)) +case("four_concurrent_requests", concurrent_requests) +sys.exit(0 if all(r["passed"] for r in records) else 1) diff --git a/benchmarks/2026-10-25-a100/scripts/probe_vision.py b/benchmarks/2026-10-25-a100/scripts/probe_vision.py new file mode 100644 index 0000000..5cb7bd3 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/probe_vision.py @@ -0,0 +1,72 @@ +"""One reproducible inline-image check: identify a generated solid-red PNG.""" + +import argparse +import base64 +import json +import pathlib +import struct +import time +import zlib + +from local_llm_kit import LLM + +p = argparse.ArgumentParser(description=__doc__) +p.add_argument("--backend", choices=["ollama", "sglang"], required=True) +args = p.parse_args() + + +def chunk(kind, data): + return struct.pack("!I", len(data)) + kind + data + struct.pack("!I", zlib.crc32(kind + data)) + + +image = ( + b"\x89PNG\r\n\x1a\n" + + chunk(b"IHDR", struct.pack("!2I5B", 64, 64, 8, 2, 0, 0, 0)) + + chunk(b"IDAT", zlib.compress((b"\0" + bytes([255, 0, 0]) * 64) * 64)) + + chunk(b"IEND", b"") +) +root = pathlib.Path("/workspace/artifacts") +(root / "vision-input-red.png").write_bytes(image) +model = "qwen3.8:27b" if args.backend == "ollama" else "Qwen/Qwen3.8-27B" +settings = ( + {"think": False, "num_ctx": 8192} + if args.backend == "ollama" + else {"chat_template_kwargs": {"enable_thinking": False}} +) +llm = LLM(model, backend=args.backend, use_cache=False, backend_kwargs={"timeout": 120}) +started = time.perf_counter() +result = llm.chat( + [ + { + "role": "user", + "content": [ + { + "type": "text", + "text": "What is the dominant color in this image? Reply with only its name.", + }, + { + "type": "image_url", + "image_url": { + "url": "data:image/png;base64," + base64.b64encode(image).decode() + }, + }, + ], + } + ], + temperature=0, + max_tokens=64, + **settings, +) +text = result["choices"][0]["message"]["content"] +record = { + "backend": args.backend, + "model": model, + "input": "vision-input-red.png", + "passed": isinstance(text, str) and "red" in text.lower(), + "seconds": time.perf_counter() - started, + "response": result, + "limit": "One solid-color synthetic image; not a general vision benchmark.", +} +(root / f"qwen-{args.backend}-vision.json").write_text(json.dumps(record, indent=2)) +print(json.dumps(record, indent=2)) +assert record["passed"], text diff --git a/benchmarks/2026-10-25-a100/scripts/render_report.py b/benchmarks/2026-10-25-a100/scripts/render_report.py new file mode 100644 index 0000000..1a290d6 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/render_report.py @@ -0,0 +1,100 @@ +"""Render an evidence page from the saved JSON and test logs; no invented results.""" + +import html +import json +import pathlib +import re +import statistics + +ROOT = pathlib.Path(__file__).resolve().parents[1] +RESULTS = ROOT / "results" + + +def load(name): + return json.loads((RESULTS / name).read_text()) + + +def suite(name): + text = (RESULTS / name).read_text() + matches = re.findall(r"\b(\d+) passed(?:, (\d+) skipped)?", text) + assert matches, name + passed, skipped = matches[-1] + return f"{passed} passed" + (f", {skipped} skipped" if skipped else "") + + +def main(): + assert "261 subtests passed" in (RESULTS / "final-suite.log").read_text() + bench_rows = [] + for backend, label in [ + ("vllm", "vLLM · BF16"), + ("sglang", "SGLang · BF16"), + ("ollama", "Ollama · Q4_K_M"), + ]: + report = load(f"qwen-{backend}-benchmark.json") + s = report["summary"] + assert len(report["sequential"]) == 10 + assert all(r["usage"]["completion_tokens"] == 64 for r in report["sequential"]) + assert ( + statistics.median(r["seconds"] for r in report["sequential"]) + == s["median_latency_seconds"] + ) + bench_rows.append( + f'{label}{s["median_latency_seconds"]:.3f} s' + f'{s["median_ttft_seconds"]:.3f} s{s["median_output_tokens_per_second"]:.1f}' + f'{s["concurrent_output_tokens_per_second"]:.1f}' + ) + checks = [] + for backend in ["vllm", "sglang", "ollama"]: + report = load(f"qwen-{backend}-probes.json") + assert all(r["passed"] for r in report["results"]) + checks.append( + f'
  • {backend}: {len(report["results"])} / {len(report["results"])} live compatibility checks
  • ' + ) + for label, file in [ + ("Transformers · TinyLlama 1.1B", "transformers-live-final.log"), + ("llama.cpp · Qwen GGUF", "llamacpp-live.log"), + ("AirLLM · TinyLlama 1.1B", "airllm-live.log"), + ]: + checks.append(f"
  • {label}: {suite(file)}
  • ") + vision = load("qwen-ollama-vision.json") + assert vision["passed"] + css = """*{box-sizing:border-box}body{margin:0;background:#f1f5f9;color:#15273b;font:16px/1.5 system-ui,sans-serif}main{max-width:1080px;margin:28px auto;padding:28px 36px;background:white;border:1px solid #d9e3eb;border-radius:14px}h1{font-size:31px;line-height:1.15;margin:6px 0 12px}h2{font-size:20px;margin:24px 0 8px}.eyebrow{color:#2563eb;font-size:13px;font-weight:700;letter-spacing:.06em}.meta{color:#506174;font-size:14px}.badge{display:inline-block;background:#e6f7ee;color:#17663a;padding:6px 12px;border-radius:8px;margin:10px 0}table{border-collapse:collapse;width:100%;font-size:15px}th,td{text-align:left;border-bottom:1px solid #e1e8ef;padding:11px 9px}th{background:#f1f5f9;font-size:13px}ul{padding-left:21px;columns:2;column-gap:30px}li{margin-bottom:6px;break-inside:avoid}.note{font-size:13px;color:#566779}.limits{background:#f5f7fa;padding:12px 16px;border-left:3px solid #7c92a8;font-size:14px}a{color:#1d4ed8}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#101e2f;color:#e2eaf4;padding:16px;border-radius:10px;font-size:13px}""" + page = f"""Local LLM Kit — recorded GPU validation
    +
    LOCAL LLM KIT · RECORDED VALIDATION · 25 OCTOBER 2026 (SYDNEY)
    +

    Real model checks on one A100 80 GB

    +

    NVIDIA A100-SXM4-80GB · Python 3.12.3 · Qwen3.8-27B / TinyLlama 1.1B
    Source: v0.3.1 + recorded fixes. This page is rendered from the linked JSON and logs.

    +
    Final suite: {suite('final-suite.log')} · 261 subtests passed
    +

    Warm loopback HTTP measurements

    + {''.join(bench_rows)}
    Engine / model precisionMedian latencyMedian first contentOutput tokens/s4 concurrent tokens/s
    +

    Per engine: 2 warmups, 10 sequential requests × 64 output tokens, 5 streaming requests, 4 concurrent requests. Temperature 0, seed 7, 8,192 context; thinking disabled. Output tokens/s includes prompt processing and HTTP time. Different quantization and engine settings prevent a fair engine ranking.

    +

    Live inference evidence

      {''.join(checks)}
    • Ollama discovery suite: {suite('ollama-live-discovery-after.log')}
    • Ollama inline vision: solid-red image identified correctly
    +

    Bugs reproduced and fixed

    Streaming code indentation after newlines; native backend locality identity; engine-reported token counts replaced by estimates. Before-and-after logs and source patch are included.

    +
    Scope: one rented Linux GPU and short workloads. No cold-start, quality or competitor benchmark. Flint, Apple FM/MLX and other runtimes were not run. Model download required internet; inference used local weights and loopback, without an egress-isolation test.
    +

    Method and reproduction commands · Environment · Artifact checksums · Captured log excerpts

    +
    """ + (ROOT / "report.html").write_text(page) + snippets = [] + for label, file in [ + ("Final suite", "final-suite.log"), + ("Actual Transformers CUDA run", "transformers-live-final.log"), + ("Ollama discovery and inference", "ollama-live-discovery-after.log"), + ]: + lines = (RESULTS / file).read_text().splitlines() + summary = "\n".join( + [ + line + for line in lines + if re.search(r"\b\d+ passed", line) or line.startswith("SKIPPED") + ][-5:] + ) + snippets.append( + f'

    {label}

    Saved stdout: {file}

    {html.escape(summary)}
    ' + ) + reply = vision["response"]["choices"][0]["message"]["content"] + (ROOT / "test-evidence.html").write_text( + f'Saved validation log excerpts
    CAPTURED REPORT · SAVED STDOUT EXCERPTS

    Evidence from the saved run

    {"".join(snippets)}

    Real inline-image request

    Solid-red PNG sent to the model Model response: {html.escape(reply)}

    Synthetic color check only. Raw response: qwen-ollama-vision.json

    ' + ) + + +if __name__ == "__main__": + main() diff --git a/benchmarks/2026-10-25-a100/scripts/start_sglang.sh b/benchmarks/2026-10-25-a100/scripts/start_sglang.sh new file mode 100644 index 0000000..1fd8ca1 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/start_sglang.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -euo pipefail +source /workspace/env-sglang/bin/activate +export HF_HOME=/workspace/hf-cache HF_HUB_DISABLE_TELEMETRY=1 DO_NOT_TRACK=1 +exec python -m sglang.launch_server \ + --model-path Qwen/Qwen3.8-27B \ + --revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 \ + --host 127.0.0.1 --port 30000 --dtype bfloat16 \ + --context-length 8192 --max-running-requests 4 --mem-fraction-static 0.82 \ + --reasoning-parser qwen3 --tool-call-parser qwen3_coder \ + --cuda-graph-backend-decode disabled --cuda-graph-backend-prefill disabled diff --git a/benchmarks/2026-10-25-a100/scripts/start_vllm.sh b/benchmarks/2026-10-25-a100/scripts/start_vllm.sh new file mode 100644 index 0000000..9cd78eb --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/start_vllm.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -euo pipefail +source /workspace/env-vllm/bin/activate +export HF_HOME=/workspace/hf-cache HF_HUB_DISABLE_TELEMETRY=1 VLLM_NO_USAGE_STATS=1 DO_NOT_TRACK=1 +exec vllm serve Qwen/Qwen3.8-27B \ + --revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 \ + --host 127.0.0.1 --port 8000 --dtype bfloat16 \ + --max-model-len 8192 --max-num-seqs 4 --gpu-memory-utilization 0.85 \ + --enforce-eager --language-model-only \ + --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder diff --git a/benchmarks/2026-10-25-a100/scripts/test_airllm_live.py b/benchmarks/2026-10-25-a100/scripts/test_airllm_live.py new file mode 100644 index 0000000..74c0cb8 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/test_airllm_live.py @@ -0,0 +1,48 @@ +"""Actual AirLLM smoke; no fake model objects or execution-locality assumptions.""" + +import importlib.metadata +import json +import pathlib +import time + +import pytest + +MODEL = "TinyLlama/TinyLlama-1.1B-Chat-v1.0" +ARTIFACTS = pathlib.Path("/workspace/artifacts") + + +@pytest.fixture(scope="module") +def backend(): + from local_llm_kit.backends.airllm import AirLLMBackend + + started = time.monotonic() + result = AirLLMBackend(MODEL, device="cuda:0", max_seq_len=256, prefetching=False) + (ARTIFACTS / "airllm-environment.json").write_text( + json.dumps( + { + "airllm": importlib.metadata.version("airllm"), + "transformers": importlib.metadata.version("transformers"), + "model": MODEL, + "max_seq_len": 256, + "load_seconds": time.monotonic() - started, + }, + indent=2, + ) + ) + return result + + +def test_real_completion(backend): + response = backend.generate("The capital of France is", temperature=0, max_new_tokens=8) + assert response["text"].strip() + (ARTIFACTS / "airllm-response.json").write_text(json.dumps(response, indent=2)) + + +def test_buffered_stream(backend): + response = list(backend.generate_stream("Hello", temperature=0, max_new_tokens=4)) + assert len(response) == 1 and response[0]["text"].strip() + + +def test_context_bound(backend): + with pytest.raises(ValueError, match="max_seq_len"): + backend.generate(" hello" * 300, max_new_tokens=8) diff --git a/benchmarks/2026-10-25-a100/scripts/test_llamacpp_live.py b/benchmarks/2026-10-25-a100/scripts/test_llamacpp_live.py new file mode 100644 index 0000000..f33dd9a --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/test_llamacpp_live.py @@ -0,0 +1,66 @@ +"""Actual CUDA GGUF smoke and boundary checks, using the Ollama-downloaded file.""" + +import importlib.metadata +import json +import pathlib +import time + +import pytest + +MODEL = "/workspace/ollama-models/blobs/sha256-f5f1dd8920d417aac2718b0bda3403da274301efdd6760b4f0f4b864ff2ad57d" +ARTIFACTS = pathlib.Path("/workspace/artifacts") + + +@pytest.fixture(scope="module") +def backend(): + import llama_cpp + + from local_llm_kit.backends.llamacpp import LlamaCppBackend + + assert llama_cpp.llama_supports_gpu_offload() + with open(MODEL, "rb") as model: + assert model.read(4) == b"GGUF" + started = time.monotonic() + result = LlamaCppBackend(MODEL, n_gpu_layers=-1, n_ctx=8192, verbose=True) + (ARTIFACTS / "llamacpp-environment.json").write_text( + json.dumps( + { + "llama_cpp_python": importlib.metadata.version("llama-cpp-python"), + "model_sha256": MODEL.rsplit("sha256-", 1)[1], + "n_gpu_layers": -1, + "n_ctx": 8192, + "load_seconds": time.monotonic() - started, + }, + indent=2, + ) + ) + return result + + +def test_real_native_locality_and_completion(backend): + from local_llm_kit import LLM + + llm = LLM(MODEL, backend_instance=backend, require_local=True, use_cache=False) + assert llm.assert_local() + response = llm.complete("The capital of France is", temperature=0, max_tokens=32) + assert response["choices"][0]["text"].strip() + (ARTIFACTS / "llamacpp-response.json").write_text(json.dumps(response, indent=2)) + + +def test_real_stream_matches(backend): + prompt = "Write a Python function to add two numbers:\n" + normal = backend.generate(prompt, temperature=0, max_new_tokens=32) + streamed = "".join( + item["text"] for item in backend.generate_stream(prompt, temperature=0, max_new_tokens=32) + ) + assert streamed == normal["text"] + + +@pytest.mark.parametrize("streaming", [False, True]) +def test_real_context_overflow(backend, streaming): + with pytest.raises(ValueError, match="context|tokens"): + response = (backend.generate_stream if streaming else backend.generate)( + " hello" * 9000, max_new_tokens=8 + ) + if streaming: + list(response) diff --git a/benchmarks/2026-10-25-a100/scripts/test_transformers_live.py b/benchmarks/2026-10-25-a100/scripts/test_transformers_live.py new file mode 100644 index 0000000..03c1298 --- /dev/null +++ b/benchmarks/2026-10-25-a100/scripts/test_transformers_live.py @@ -0,0 +1,173 @@ +"""Real CUDA inference checks; run only on the disposable test pod.""" + +import asyncio +import importlib.metadata +import json +import os +import pathlib +import time + +import pytest + +MODEL = os.environ.get("LLK_LIVE_MODEL", "TinyLlama/TinyLlama-1.1B-Chat-v1.0") +ARTIFACTS = pathlib.Path("/workspace/artifacts") + + +@pytest.fixture(scope="module") +def backend(): + import torch + + from local_llm_kit.backends.transformers import TransformersBackend + + assert torch.cuda.is_available(), "Live CUDA tests must actually use a GPU" + started = time.monotonic() + instance = TransformersBackend(MODEL, device="cuda", torch_dtype="bfloat16") + assert next(instance.model.parameters()).is_cuda + ARTIFACTS.mkdir(exist_ok=True) + (ARTIFACTS / "transformers-environment.json").write_text( + json.dumps( + { + "model": MODEL, + "torch": torch.__version__, + "transformers": importlib.metadata.version("transformers"), + "kit": importlib.metadata.version("local-llm-kit"), + "context_window": instance.get_context_window(), + "load_seconds": time.monotonic() - started, + "gpu": torch.cuda.get_device_name(), + }, + indent=2, + ) + ) + return instance + + +@pytest.mark.parametrize("budget", [8, 32]) +def test_streamed_deltas_equal_real_greedy_completion(backend, budget): + prompt = "Write a short Python function to add two numbers:\n" + normal = backend.generate(prompt, temperature=0, max_new_tokens=budget) + chunks = list(backend.generate_stream(prompt, temperature=0, max_new_tokens=budget)) + assert chunks + assert all(isinstance(c["text"], str) for c in chunks) + assert "".join(c["text"] for c in chunks) == normal["text"] + assert normal["text"].strip() + + +@pytest.mark.parametrize("stream", [False, True]) +def test_actual_oversized_prompt_rejected(backend, stream): + prompt = " hello" * (backend.get_context_window() + 16) + assert backend.count_tokens(prompt) > backend.get_context_window() + with pytest.raises(ValueError, match="context window"): + result = (backend.generate_stream if stream else backend.generate)(prompt, max_new_tokens=8) + if stream: + list(result) + + +@pytest.mark.parametrize("stream", [False, True]) +def test_output_reservation_rejected(backend, stream): + with pytest.raises(ValueError, match="context window"): + result = (backend.generate_stream if stream else backend.generate)( + "Hello", max_new_tokens=backend.get_context_window() + ) + if stream: + list(result) + + +@pytest.mark.parametrize("stream", [False, True]) +def test_real_generation_error_reaches_caller(backend, stream): + started = time.monotonic() + with pytest.raises(ValueError, match="max_new_tokens"): + result = (backend.generate_stream if stream else backend.generate)( + "Hello", max_new_tokens=-1 + ) + if stream: + list(result) + assert time.monotonic() - started < 10 + + +def test_native_exact_context_fit(backend): + prompt = " hello" * (backend.get_context_window() - 16) + remaining = backend.get_context_window() - backend.count_tokens(prompt) + assert 0 < remaining <= 32 + response = backend.generate(prompt, temperature=0, max_new_tokens=remaining) + assert isinstance(response["text"], str) + + +@pytest.mark.parametrize( + "prompt", + ["Say hello.", "Explain café in one sentence.", "Return a JSON object with a city field."], +) +def test_public_llm_chat(backend, prompt): + from local_llm_kit import LLM + + llm = LLM(MODEL, backend_instance=backend, use_cache=False, require_local=True) + response = llm.chat([{"role": "user", "content": prompt}], temperature=0, max_tokens=32) + json.dumps(response) + assert response["choices"][0]["message"]["content"].strip() + + +def test_http_routes_with_real_inference(backend): + import httpx + + from local_llm_kit import LLM + from local_llm_kit.server import create_app + + app = create_app(llm=LLM(MODEL, backend_instance=backend, use_cache=False, require_local=True)) + + async def exercise(): + samples = [] + async with httpx.AsyncClient( + transport=httpx.ASGITransport(app=app), base_url="http://test", timeout=120 + ) as client: + cases = [ + ( + "/v1/chat/completions", + {"messages": [{"role": "user", "content": "Write a greeting."}]}, + ), + ("/v1/completions", {"prompt": "Write a greeting:"}), + ("/v1/responses", {"input": "Write a greeting."}), + ] + for route, body in cases: + body.update(model=MODEL, max_tokens=32, temperature=0) + if route.endswith("responses"): + body.pop("max_tokens") + body["max_output_tokens"] = 32 + result = await client.post(route, json=body) + assert result.status_code == 200, result.text + assert result.json() + samples.append({"route": route, "response": result.json()}) + task = asyncio.create_task( + client.post( + "/v1/chat/completions", + json={ + "model": MODEL, + "messages": [ + { + "role": "user", + "content": "Write a long story about a mountain expedition.", + } + ], + "max_tokens": 128, + "temperature": 0, + }, + ) + ) + await asyncio.sleep(0.05) + started = time.monotonic() + health = await client.get("/health") + health_latency = time.monotonic() - started + unfinished = not task.done() + response = await task + assert health.status_code == 200 + assert response.status_code == 200, response.text + (ARTIFACTS / "native-http.json").write_text( + json.dumps( + { + "routes": samples, + "health_seconds": health_latency, + "health_served_while_generation_unfinished": unfinished, + }, + indent=2, + ) + ) + + asyncio.run(exercise()) diff --git a/benchmarks/2026-10-25-a100/source-fixes.patch b/benchmarks/2026-10-25-a100/source-fixes.patch new file mode 100644 index 0000000..56b995d --- /dev/null +++ b/benchmarks/2026-10-25-a100/source-fixes.patch @@ -0,0 +1,356 @@ +diff --git a/local_llm_kit/backends/llamacpp.py b/local_llm_kit/backends/llamacpp.py +index 5d20e33..6593a26 100644 +--- a/local_llm_kit/backends/llamacpp.py ++++ b/local_llm_kit/backends/llamacpp.py +@@ -26,6 +26,8 @@ class LlamaCppBackend(BaseBackend): + Backend for llama.cpp models via llama-cpp-python binding. + """ + ++ backend_name = "llamacpp" ++ + def __init__( + self, + model_path: str, +diff --git a/local_llm_kit/backends/ollama.py b/local_llm_kit/backends/ollama.py +index ae65ada..38062d4 100644 +--- a/local_llm_kit/backends/ollama.py ++++ b/local_llm_kit/backends/ollama.py +@@ -269,6 +269,10 @@ class OllamaBackend(BaseBackend): + return { + "text": resp.get("response", ""), + "finish_reason": resp.get("done_reason", "stop"), ++ "usage": { ++ "prompt_tokens": resp.get("prompt_eval_count"), ++ "completion_tokens": resp.get("eval_count"), ++ }, + "model": self.model, + "raw": resp, + } +@@ -367,6 +371,10 @@ class OllamaBackend(BaseBackend): + "thinking": message.get("thinking"), + "tool_calls": message.get("tool_calls"), + "finish_reason": resp.get("done_reason", "stop"), ++ "usage": { ++ "prompt_tokens": resp.get("prompt_eval_count"), ++ "completion_tokens": resp.get("eval_count"), ++ }, + "model": self.model, + "raw": resp, + } +diff --git a/local_llm_kit/backends/transformers.py b/local_llm_kit/backends/transformers.py +index 7445651..1b4e8d7 100644 +--- a/local_llm_kit/backends/transformers.py ++++ b/local_llm_kit/backends/transformers.py +@@ -35,6 +35,8 @@ class TransformersBackend(BaseBackend): + Backend for Hugging Face Transformers models. + """ + ++ backend_name = "transformers" ++ + def __init__( + self, + model_path: str, +@@ -251,8 +253,18 @@ class TransformersBackend(BaseBackend): + # Prepare inputs + input_ids = self._prepare_input_ids(prompt, max_new_tokens) + +- # Create streamer +- streamer = TextIteratorStreamer( ++ class IndentationSafeStreamer(TextIteratorStreamer): ++ def put(self, value): ++ was_prompt = self.skip_prompt and self.next_tokens_are_prompt ++ super().put(value) ++ if not was_prompt and not self.token_cache and value.numel(): ++ # Keep a newline anchor: fresh SentencePiece decoding strips an indentation space. ++ self.token_cache = [value.reshape(-1)[-1].item()] ++ self.print_len = len( ++ self.tokenizer.decode(self.token_cache, **self.decode_kwargs) ++ ) ++ ++ streamer = IndentationSafeStreamer( + self.tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=10.0 + ) + +diff --git a/local_llm_kit/llm.py b/local_llm_kit/llm.py +index fc2163c..3b28842 100644 +--- a/local_llm_kit/llm.py ++++ b/local_llm_kit/llm.py +@@ -792,7 +792,15 @@ class LLM: + + "}" + ) + +- def _usage(self, prompt: str, text: Any) -> Dict[str, int]: ++ def _usage(self, prompt: str, text: Any, reported: Any = None) -> Dict[str, Any]: ++ if isinstance(reported, dict) and all( ++ type(reported.get(key)) is int and reported[key] >= 0 ++ for key in ("prompt_tokens", "completion_tokens") ++ ): ++ return dict( ++ reported, ++ total_tokens=reported["prompt_tokens"] + reported["completion_tokens"], ++ ) + pt = self._count(prompt) + ct = self._count(text) + return {"prompt_tokens": pt, "completion_tokens": ct, "total_tokens": pt + ct} +@@ -946,7 +954,7 @@ class LLM: + prompt = "" + text = "" + pending: List[ToolCall] = [] +- completion_parts: List[str] = [] ++ usages: List[Dict[str, Any]] = [] + finish = "stop" + + for turn in range(max_iterations + 1): +@@ -955,6 +963,9 @@ class LLM: + ) + result = self._backend_generate(working, prompt, gen_params) + text = _extract_text(result) ++ usages.append( ++ self._usage(prompt, text, result.get("usage") if isinstance(result, dict) else None) ++ ) + finish = result.get("finish_reason", "stop") if isinstance(result, dict) else "stop" + + calls: List[ToolCall] = [] +@@ -964,7 +975,6 @@ class LLM: + calls = [c for c in calls if c.name == forced_name] + if json_mode and not calls: + text = self._ensure_json_output(text) +- completion_parts.append(text or "") + if not calls: + pending = [] + finish = "stop" if finish not in ("length",) else finish +@@ -1038,7 +1048,14 @@ class LLM: + } + if gen_params.get("logprobs"): + response["choices"][0]["logprobs"] = {} +- response["usage"] = self._usage(prompt, "".join(completion_parts) if pending else text) ++ response["usage"] = ( ++ usages[0] ++ if len(usages) == 1 ++ else { ++ key: sum(usage[key] for usage in usages) ++ for key in ("prompt_tokens", "completion_tokens", "total_tokens") ++ } ++ ) + self._log_chat(working, response) + return response + +@@ -1290,7 +1307,9 @@ class LLM: + response["choices"][0]["logprobs"] = ( + result.get("logprobs", {}) if isinstance(result, dict) else {} + ) +- response["usage"] = self._usage(prompt, text) ++ response["usage"] = self._usage( ++ prompt, text, result.get("usage") if isinstance(result, dict) else None ++ ) + return response + + def _complete_streaming( +diff --git a/tests/test_discovery.py b/tests/test_discovery.py +index 51ad542..82bccf1 100644 +--- a/tests/test_discovery.py ++++ b/tests/test_discovery.py +@@ -519,6 +519,17 @@ class TestOllamaTruthfulCapabilities(unittest.TestCase): + + + class TestRequireLocal(unittest.TestCase): ++ def test_native_transformers_and_llamacpp_are_accepted(self): ++ from local_llm_kit.backends.llamacpp import LlamaCppBackend ++ from local_llm_kit.backends.transformers import TransformersBackend ++ ++ for cls in (TransformersBackend, LlamaCppBackend): ++ with self.subTest(backend=cls.__name__): ++ backend = object.__new__(cls) ++ backend.model_path = "local-checkpoint" ++ llm = LLM("local-checkpoint", backend_instance=backend, require_local=True) ++ self.assertTrue(llm.assert_local()) ++ + def test_on_device_model_is_accepted(self): + with Fixture() as fixture, profile(OLLAMA): + llm = LLM( +diff --git a/tests/test_live_servers.py b/tests/test_live_servers.py +index e0f3d72..a07bdf5 100644 +--- a/tests/test_live_servers.py ++++ b/tests/test_live_servers.py +@@ -159,7 +159,9 @@ class TestRealInferenceOnDevice(unittest.TestCase): + + def test_chat_round_trip(self): + response = self.llm.chat( +- [{"role": "user", "content": "Reply with the single word: OK"}], max_tokens=16 ++ [{"role": "user", "content": "Reply with the single word: OK"}], ++ max_tokens=16, ++ think=False, # Keep the short smoke-test budget for visible output. + ) + content = response["choices"][0]["message"]["content"] + self.assertTrue(content.strip(), "model returned empty content") +@@ -170,7 +172,10 @@ class TestRealInferenceOnDevice(unittest.TestCase): + def test_streaming_round_trip(self): + pieces = [] + for chunk in self.llm.chat( +- [{"role": "user", "content": "Count to three."}], max_tokens=24, stream=True ++ [{"role": "user", "content": "Count to three."}], ++ max_tokens=24, ++ stream=True, ++ think=False, + ): + pieces.append(chunk["choices"][0]["delta"].get("content") or "") + self.assertTrue("".join(pieces).strip()) +diff --git a/tests/test_native_chat.py b/tests/test_native_chat.py +index 6204cf5..65390b2 100644 +--- a/tests/test_native_chat.py ++++ b/tests/test_native_chat.py +@@ -276,5 +276,70 @@ class TestOllamaNativeChat(unittest.TestCase): + self.assertEqual(chunks[-1]["choices"][0]["finish_reason"], "tool_calls") + + ++class TestReportedUsage(unittest.TestCase): ++ def test_chat_and_completion_keep_reported_counts(self): ++ usage = { ++ "prompt_tokens": 120, ++ "completion_tokens": 64, ++ "total_tokens": 184, ++ "completion_tokens_details": {"reasoning_tokens": 12}, ++ } ++ for route in ("chat", "complete"): ++ with self.subTest(route=route): ++ backend = OpenAICompatBackend("test-model") ++ payload = openai_response("Short text") ++ payload["choices"][0]["text"] = "Short text" ++ payload["usage"] = usage ++ with mock.patch.object(backend, "_post_json", return_value=payload): ++ llm = make_llm(backend) ++ result = llm.chat(MESSAGES) if route == "chat" else llm.complete("Hello") ++ self.assertEqual(result["usage"], usage) ++ ++ def test_tool_rounds_sum_each_reported_usage(self): ++ backend = OpenAICompatBackend("test-model") ++ replies = [openai_response(calls=[native_call()]), openai_response("Done")] ++ replies[0]["usage"] = {"prompt_tokens": 100, "completion_tokens": 20} ++ replies[1]["usage"] = {"prompt_tokens": 150, "completion_tokens": 10} ++ with mock.patch.object(backend, "_post_json", side_effect=replies): ++ result = make_llm(backend).chat(MESSAGES, tools=[lookup]) ++ self.assertEqual( ++ result["usage"], {"prompt_tokens": 250, "completion_tokens": 30, "total_tokens": 280} ++ ) ++ ++ def test_ollama_native_counts_reach_public_responses(self): ++ backend = OllamaBackend("test-model") ++ payload = { ++ "message": {"content": "Short text"}, ++ "response": "Short text", ++ "prompt_eval_count": 100, ++ "eval_count": 64, ++ } ++ with mock.patch.object(backend, "_post_json", return_value=payload): ++ for result in (make_llm(backend).chat(MESSAGES), make_llm(backend).complete("Hi")): ++ self.assertEqual( ++ result["usage"], ++ {"prompt_tokens": 100, "completion_tokens": 64, "total_tokens": 164}, ++ ) ++ ++ def test_zero_counts_and_invalid_count_fallback(self): ++ backend = OpenAICompatBackend("test-model") ++ for reported in ( ++ {"prompt_tokens": 0, "completion_tokens": 0}, ++ {"prompt_tokens": -1, "completion_tokens": 4}, ++ {"prompt_tokens": True, "completion_tokens": 4}, ++ {"prompt_tokens": "100", "completion_tokens": 4}, ++ None, ++ ): ++ with self.subTest(reported=reported): ++ payload = dict(openai_response("Hello"), usage=reported) ++ with mock.patch.object(backend, "_post_json", return_value=payload): ++ result = make_llm(backend).chat(MESSAGES) ++ if reported == {"prompt_tokens": 0, "completion_tokens": 0}: ++ self.assertEqual(result["usage"]["total_tokens"], 0) ++ else: ++ self.assertGreater(result["usage"]["prompt_tokens"], 0) ++ self.assertTrue(all(type(value) is int for value in result["usage"].values())) ++ ++ + if __name__ == "__main__": + unittest.main() +diff --git a/tests/test_transformers_streaming.py b/tests/test_transformers_streaming.py +index 13a8504..636fc71 100644 +--- a/tests/test_transformers_streaming.py ++++ b/tests/test_transformers_streaming.py +@@ -38,12 +38,20 @@ class TextStreamer: + """The HF contract: token tensors enter put(); iteration yields text deltas.""" + + def __init__(self, tokenizer, skip_prompt=False, **kwargs): ++ self.tokenizer = tokenizer + self.skip_prompt = skip_prompt ++ self.next_tokens_are_prompt = True ++ self.token_cache = [] ++ self.print_len = 0 ++ self.decode_kwargs = kwargs + self.items = queue.Queue() + + def put(self, value): + if not isinstance(value, InputIds): + raise TypeError("put() requires token tensors") ++ if self.skip_prompt and self.next_tokens_are_prompt: ++ self.next_tokens_are_prompt = False ++ return + if not self.skip_prompt: + self.on_finalized_text("prompt ") + +@@ -141,6 +149,58 @@ class TestTransformersContextAndStreaming(unittest.TestCase): + list(self.backend.generate_stream("prompt", max_new_tokens=2)) + self.assertIs(caught.exception, failure) + ++ def test_sentencepiece_newline_flush_preserves_indentation(self): ++ class PrefixStripTokenizer(Tokenizer): ++ def decode(self, tokens, **kwargs): ++ text = "".join(chr(token) for token in tokens) ++ return text[1:] if text.startswith(" ") else text ++ ++ class FlushingStreamer(TextStreamer): ++ def put(self, value): ++ if self.skip_prompt and self.next_tokens_are_prompt: ++ self.next_tokens_are_prompt = False ++ return ++ self.token_cache.extend(value.tolist()) ++ text = self.tokenizer.decode(self.token_cache) ++ self.on_finalized_text(text[self.print_len :]) ++ self.print_len = len(text) ++ if text.endswith("\n"): ++ self.token_cache = [] ++ self.print_len = 0 ++ ++ def token_value(tokens): ++ return types.SimpleNamespace( ++ tolist=lambda: tokens, ++ numel=lambda: len(tokens), ++ reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], ++ ) ++ ++ samples = [ ++ "def add(a, b):\n return a+b\n", ++ "if a:\n\tprint(a)\n\n next_line", ++ "A\n café\n 世界\n 😀\n", ++ "\n leading\n\n", ++ "one\n\n two\n", ++ "a\n \n b", ++ "```python\n pass\n```", ++ ] ++ self.backend.tokenizer = PrefixStripTokenizer() ++ with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): ++ for text in samples: ++ with self.subTest(text=text): ++ ++ def generate(input_ids, _text=text, **kwargs): ++ streamer = kwargs["streamer"] ++ streamer.put(input_ids) ++ streamer.put(token_value([])) ++ for char in _text: ++ streamer.put(token_value([ord(char)])) ++ streamer.end() ++ ++ self.backend.model.generate.side_effect = generate ++ chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) ++ self.assertEqual("".join(chunk["text"] for chunk in chunks), text) ++ + def test_error_after_stream_end_is_not_silently_accepted(self): + failure = RuntimeError("finalization failed") + diff --git a/benchmarks/2026-10-25-a100/test-evidence.html b/benchmarks/2026-10-25-a100/test-evidence.html new file mode 100644 index 0000000..c135eef --- /dev/null +++ b/benchmarks/2026-10-25-a100/test-evidence.html @@ -0,0 +1,7 @@ +Saved validation log excerpts
    CAPTURED REPORT · SAVED STDOUT EXCERPTS

    Evidence from the saved run

    Final suite

    Saved stdout: final-suite.log

    SKIPPED [1] tests/test_live_servers.py:170: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run
    +SKIPPED [1] tests/test_live_servers.py:194: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run
    +SKIPPED [1] tests/test_live_servers.py:219: set LOCAL_LLM_KIT_LIVE=1 (with a local server running) to run
    +SKIPPED [1] tests/test_server.py:302: fastapi is installed; skip-path test not applicable
    +490 passed, 16 skipped, 261 subtests passed in 43.14s

    Actual Transformers CUDA run

    Saved stdout: transformers-live-final.log

    13 passed in 13.36s

    Ollama discovery and inference

    Saved stdout: ollama-live-discovery-after.log

    SKIPPED [1] tests/test_live_servers.py:131: this server lists no provider-routed models
    +SKIPPED [1] tests/test_live_servers.py:199: no provider-routed model is available to refuse
    +13 passed, 2 skipped, 2 subtests passed in 5.28s

    Real inline-image request

    Solid-red PNG sent to the model Model response: Red

    Synthetic color check only. Raw response: qwen-ollama-vision.json

    \ No newline at end of file diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst index 616673a..55a3a14 100644 --- a/docs/source/api_reference.rst +++ b/docs/source/api_reference.rst @@ -34,6 +34,12 @@ with ``llm.add_function(name, schema, implementation)``. ``LLM.embed`` accepts a string or a list of strings and requires an embedding backend. The echo backend returns deterministic test vectors. +Non-streaming chat and completion responses preserve valid engine-reported +``usage`` counters. Chat tool loops sum prompt and completion counts across +generation rounds. When the engine omits valid counters, the client falls back +to its backend's token estimate. Streaming usage remains estimated; do not use +those estimates to measure engine throughput. + Set ``stream=True`` on chat or completion to receive an iterator. Chat chunks carry ``choices[0].delta``; text-completion chunks carry ``choices[0].text``. AirLLM streaming is buffered into one completed backend chunk. diff --git a/docs/source/backends.rst b/docs/source/backends.rst index d3cb608..ae53354 100644 --- a/docs/source/backends.rst +++ b/docs/source/backends.rst @@ -259,8 +259,11 @@ sampling controls depend on the PyTorch path. This is a text adapter, with no native embedding or vision implementation. Offline unit tests cover loading, device forwarding, output shapes, stopping, -context limits and both upstream call contracts with doubles. Real checkpoint, -CUDA and MLX execution have not been certified. AirLLM models may execute +context limits and both upstream call contracts with doubles. AirLLM 4.0.0 with +TinyLlama 1.1B passed three real CUDA checks on an A100 80 GB on 2026-10-25: +completion, buffered streaming and context rejection. See the +`recorded validation evidence `_. +Larger checkpoints and the MLX path were not run. AirLLM models may execute model-supplied code and need substantial disk space for prepared layer shards. Use trusted checkpoints, and follow `AirLLM's hardware and installation guide `_. diff --git a/docs/source/performance.rst b/docs/source/performance.rst index bed615f..95f1ff3 100644 --- a/docs/source/performance.rst +++ b/docs/source/performance.rst @@ -5,6 +5,18 @@ Most inference cost belongs to the selected engine and model. The kit is a client/interface layer and does not establish throughput or memory advantages for a particular runtime. Protocol tests use fixtures, not model benchmarks. +Recorded GPU validation +----------------------- + +The `2026-10-25 A100 80 GB evidence bundle +`_ +contains real model checks, warm loopback HTTP measurements, exact model +revisions, software manifests, scripts, failures and passing regressions. +Each measured engine is a separate configuration; quantization and scheduling +differ. These small runs establish reproducibility and compatibility for the +listed combinations. They do not establish comparative model quality, cold-start +performance or superiority over another library. + Avoid repeated loading ---------------------- diff --git a/local_llm_kit/backends/llamacpp.py b/local_llm_kit/backends/llamacpp.py index 5d20e33..6593a26 100644 --- a/local_llm_kit/backends/llamacpp.py +++ b/local_llm_kit/backends/llamacpp.py @@ -26,6 +26,8 @@ class LlamaCppBackend(BaseBackend): Backend for llama.cpp models via llama-cpp-python binding. """ + backend_name = "llamacpp" + def __init__( self, model_path: str, diff --git a/local_llm_kit/backends/ollama.py b/local_llm_kit/backends/ollama.py index ae65ada..38062d4 100644 --- a/local_llm_kit/backends/ollama.py +++ b/local_llm_kit/backends/ollama.py @@ -269,6 +269,10 @@ def generate( return { "text": resp.get("response", ""), "finish_reason": resp.get("done_reason", "stop"), + "usage": { + "prompt_tokens": resp.get("prompt_eval_count"), + "completion_tokens": resp.get("eval_count"), + }, "model": self.model, "raw": resp, } @@ -367,6 +371,10 @@ def chat( "thinking": message.get("thinking"), "tool_calls": message.get("tool_calls"), "finish_reason": resp.get("done_reason", "stop"), + "usage": { + "prompt_tokens": resp.get("prompt_eval_count"), + "completion_tokens": resp.get("eval_count"), + }, "model": self.model, "raw": resp, } diff --git a/local_llm_kit/backends/transformers.py b/local_llm_kit/backends/transformers.py index 7445651..1b4e8d7 100644 --- a/local_llm_kit/backends/transformers.py +++ b/local_llm_kit/backends/transformers.py @@ -35,6 +35,8 @@ class TransformersBackend(BaseBackend): Backend for Hugging Face Transformers models. """ + backend_name = "transformers" + def __init__( self, model_path: str, @@ -251,8 +253,18 @@ def generate_stream( # Prepare inputs input_ids = self._prepare_input_ids(prompt, max_new_tokens) - # Create streamer - streamer = TextIteratorStreamer( + class IndentationSafeStreamer(TextIteratorStreamer): + def put(self, value): + was_prompt = self.skip_prompt and self.next_tokens_are_prompt + super().put(value) + if not was_prompt and not self.token_cache and value.numel(): + # Keep a newline anchor: fresh SentencePiece decoding strips an indentation space. + self.token_cache = [value.reshape(-1)[-1].item()] + self.print_len = len( + self.tokenizer.decode(self.token_cache, **self.decode_kwargs) + ) + + streamer = IndentationSafeStreamer( self.tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=10.0 ) diff --git a/local_llm_kit/llm.py b/local_llm_kit/llm.py index fc2163c..3b28842 100644 --- a/local_llm_kit/llm.py +++ b/local_llm_kit/llm.py @@ -792,7 +792,15 @@ def _ensure_json_output(self, text: str) -> str: + "}" ) - def _usage(self, prompt: str, text: Any) -> Dict[str, int]: + def _usage(self, prompt: str, text: Any, reported: Any = None) -> Dict[str, Any]: + if isinstance(reported, dict) and all( + type(reported.get(key)) is int and reported[key] >= 0 + for key in ("prompt_tokens", "completion_tokens") + ): + return dict( + reported, + total_tokens=reported["prompt_tokens"] + reported["completion_tokens"], + ) pt = self._count(prompt) ct = self._count(text) return {"prompt_tokens": pt, "completion_tokens": ct, "total_tokens": pt + ct} @@ -946,7 +954,7 @@ def _chat_once( prompt = "" text = "" pending: List[ToolCall] = [] - completion_parts: List[str] = [] + usages: List[Dict[str, Any]] = [] finish = "stop" for turn in range(max_iterations + 1): @@ -955,6 +963,9 @@ def _chat_once( ) result = self._backend_generate(working, prompt, gen_params) text = _extract_text(result) + usages.append( + self._usage(prompt, text, result.get("usage") if isinstance(result, dict) else None) + ) finish = result.get("finish_reason", "stop") if isinstance(result, dict) else "stop" calls: List[ToolCall] = [] @@ -964,7 +975,6 @@ def _chat_once( calls = [c for c in calls if c.name == forced_name] if json_mode and not calls: text = self._ensure_json_output(text) - completion_parts.append(text or "") if not calls: pending = [] finish = "stop" if finish not in ("length",) else finish @@ -1038,7 +1048,14 @@ def _chat_once( } if gen_params.get("logprobs"): response["choices"][0]["logprobs"] = {} - response["usage"] = self._usage(prompt, "".join(completion_parts) if pending else text) + response["usage"] = ( + usages[0] + if len(usages) == 1 + else { + key: sum(usage[key] for usage in usages) + for key in ("prompt_tokens", "completion_tokens", "total_tokens") + } + ) self._log_chat(working, response) return response @@ -1290,7 +1307,9 @@ def complete( response["choices"][0]["logprobs"] = ( result.get("logprobs", {}) if isinstance(result, dict) else {} ) - response["usage"] = self._usage(prompt, text) + response["usage"] = self._usage( + prompt, text, result.get("usage") if isinstance(result, dict) else None + ) return response def _complete_streaming( diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 51ad542..82bccf1 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -519,6 +519,17 @@ def test_model_info_reports_capabilities_once_detected(self): class TestRequireLocal(unittest.TestCase): + def test_native_transformers_and_llamacpp_are_accepted(self): + from local_llm_kit.backends.llamacpp import LlamaCppBackend + from local_llm_kit.backends.transformers import TransformersBackend + + for cls in (TransformersBackend, LlamaCppBackend): + with self.subTest(backend=cls.__name__): + backend = object.__new__(cls) + backend.model_path = "local-checkpoint" + llm = LLM("local-checkpoint", backend_instance=backend, require_local=True) + self.assertTrue(llm.assert_local()) + def test_on_device_model_is_accepted(self): with Fixture() as fixture, profile(OLLAMA): llm = LLM( diff --git a/tests/test_live_servers.py b/tests/test_live_servers.py index e0f3d72..a07bdf5 100644 --- a/tests/test_live_servers.py +++ b/tests/test_live_servers.py @@ -159,7 +159,9 @@ def setUp(self): def test_chat_round_trip(self): response = self.llm.chat( - [{"role": "user", "content": "Reply with the single word: OK"}], max_tokens=16 + [{"role": "user", "content": "Reply with the single word: OK"}], + max_tokens=16, + think=False, # Keep the short smoke-test budget for visible output. ) content = response["choices"][0]["message"]["content"] self.assertTrue(content.strip(), "model returned empty content") @@ -170,7 +172,10 @@ def test_chat_round_trip(self): def test_streaming_round_trip(self): pieces = [] for chunk in self.llm.chat( - [{"role": "user", "content": "Count to three."}], max_tokens=24, stream=True + [{"role": "user", "content": "Count to three."}], + max_tokens=24, + stream=True, + think=False, ): pieces.append(chunk["choices"][0]["delta"].get("content") or "") self.assertTrue("".join(pieces).strip()) diff --git a/tests/test_native_chat.py b/tests/test_native_chat.py index 6204cf5..65390b2 100644 --- a/tests/test_native_chat.py +++ b/tests/test_native_chat.py @@ -276,5 +276,70 @@ def test_structured_stream_can_call_tools_without_json_repair_requests(self): self.assertEqual(chunks[-1]["choices"][0]["finish_reason"], "tool_calls") +class TestReportedUsage(unittest.TestCase): + def test_chat_and_completion_keep_reported_counts(self): + usage = { + "prompt_tokens": 120, + "completion_tokens": 64, + "total_tokens": 184, + "completion_tokens_details": {"reasoning_tokens": 12}, + } + for route in ("chat", "complete"): + with self.subTest(route=route): + backend = OpenAICompatBackend("test-model") + payload = openai_response("Short text") + payload["choices"][0]["text"] = "Short text" + payload["usage"] = usage + with mock.patch.object(backend, "_post_json", return_value=payload): + llm = make_llm(backend) + result = llm.chat(MESSAGES) if route == "chat" else llm.complete("Hello") + self.assertEqual(result["usage"], usage) + + def test_tool_rounds_sum_each_reported_usage(self): + backend = OpenAICompatBackend("test-model") + replies = [openai_response(calls=[native_call()]), openai_response("Done")] + replies[0]["usage"] = {"prompt_tokens": 100, "completion_tokens": 20} + replies[1]["usage"] = {"prompt_tokens": 150, "completion_tokens": 10} + with mock.patch.object(backend, "_post_json", side_effect=replies): + result = make_llm(backend).chat(MESSAGES, tools=[lookup]) + self.assertEqual( + result["usage"], {"prompt_tokens": 250, "completion_tokens": 30, "total_tokens": 280} + ) + + def test_ollama_native_counts_reach_public_responses(self): + backend = OllamaBackend("test-model") + payload = { + "message": {"content": "Short text"}, + "response": "Short text", + "prompt_eval_count": 100, + "eval_count": 64, + } + with mock.patch.object(backend, "_post_json", return_value=payload): + for result in (make_llm(backend).chat(MESSAGES), make_llm(backend).complete("Hi")): + self.assertEqual( + result["usage"], + {"prompt_tokens": 100, "completion_tokens": 64, "total_tokens": 164}, + ) + + def test_zero_counts_and_invalid_count_fallback(self): + backend = OpenAICompatBackend("test-model") + for reported in ( + {"prompt_tokens": 0, "completion_tokens": 0}, + {"prompt_tokens": -1, "completion_tokens": 4}, + {"prompt_tokens": True, "completion_tokens": 4}, + {"prompt_tokens": "100", "completion_tokens": 4}, + None, + ): + with self.subTest(reported=reported): + payload = dict(openai_response("Hello"), usage=reported) + with mock.patch.object(backend, "_post_json", return_value=payload): + result = make_llm(backend).chat(MESSAGES) + if reported == {"prompt_tokens": 0, "completion_tokens": 0}: + self.assertEqual(result["usage"]["total_tokens"], 0) + else: + self.assertGreater(result["usage"]["prompt_tokens"], 0) + self.assertTrue(all(type(value) is int for value in result["usage"].values())) + + if __name__ == "__main__": unittest.main() diff --git a/tests/test_transformers_streaming.py b/tests/test_transformers_streaming.py index 13a8504..636fc71 100644 --- a/tests/test_transformers_streaming.py +++ b/tests/test_transformers_streaming.py @@ -38,12 +38,20 @@ class TextStreamer: """The HF contract: token tensors enter put(); iteration yields text deltas.""" def __init__(self, tokenizer, skip_prompt=False, **kwargs): + self.tokenizer = tokenizer self.skip_prompt = skip_prompt + self.next_tokens_are_prompt = True + self.token_cache = [] + self.print_len = 0 + self.decode_kwargs = kwargs self.items = queue.Queue() def put(self, value): if not isinstance(value, InputIds): raise TypeError("put() requires token tensors") + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return if not self.skip_prompt: self.on_finalized_text("prompt ") @@ -141,6 +149,58 @@ def test_worker_error_is_raised_in_the_consumer(self): list(self.backend.generate_stream("prompt", max_new_tokens=2)) self.assertIs(caught.exception, failure) + def test_sentencepiece_newline_flush_preserves_indentation(self): + class PrefixStripTokenizer(Tokenizer): + def decode(self, tokens, **kwargs): + text = "".join(chr(token) for token in tokens) + return text[1:] if text.startswith(" ") else text + + class FlushingStreamer(TextStreamer): + def put(self, value): + if self.skip_prompt and self.next_tokens_are_prompt: + self.next_tokens_are_prompt = False + return + self.token_cache.extend(value.tolist()) + text = self.tokenizer.decode(self.token_cache) + self.on_finalized_text(text[self.print_len :]) + self.print_len = len(text) + if text.endswith("\n"): + self.token_cache = [] + self.print_len = 0 + + def token_value(tokens): + return types.SimpleNamespace( + tolist=lambda: tokens, + numel=lambda: len(tokens), + reshape=lambda shape: [types.SimpleNamespace(item=lambda: tokens[-1])], + ) + + samples = [ + "def add(a, b):\n return a+b\n", + "if a:\n\tprint(a)\n\n next_line", + "A\n café\n 世界\n 😀\n", + "\n leading\n\n", + "one\n\n two\n", + "a\n \n b", + "```python\n pass\n```", + ] + self.backend.tokenizer = PrefixStripTokenizer() + with mock.patch.object(self.module, "TextIteratorStreamer", FlushingStreamer): + for text in samples: + with self.subTest(text=text): + + def generate(input_ids, _text=text, **kwargs): + streamer = kwargs["streamer"] + streamer.put(input_ids) + streamer.put(token_value([])) + for char in _text: + streamer.put(token_value([ord(char)])) + streamer.end() + + self.backend.model.generate.side_effect = generate + chunks = list(self.backend.generate_stream("prompt", max_new_tokens=2)) + self.assertEqual("".join(chunk["text"] for chunk in chunks), text) + def test_error_after_stream_end_is_not_silently_accepted(self): failure = RuntimeError("finalization failed")