Instructions to use Schestex/ThinkingCap-Qwen3.8-27B-NInfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use Schestex/ThinkingCap-Qwen3.8-27B-NInfer with NInfer:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- CodeDense ยท ThinkingCap Qwen3.8-27B ยท Compact122919-Q8 (en-de)
CodeDense ยท ThinkingCap Qwen3.8-27B ยท Compact122919-Q8 (en-de)
This repository distributes a compact-vocabulary, mixed-precision NInfer-native conversion of BottleCap AI's ThinkingCap Qwen3.8-27B, prepared for English and German coding and agent-oriented workflows.
en-de denotes a target-language focus, not a guarantee that only English and German are supported. Both British and American English are included under en. This release does not claim a model-level coding fine-tune, guaranteed accuracy parity, or training-based domain removal.
Release artifacts
| Field | Value |
|---|---|
| Release | codedense-compact122919-q8-en-de-v1.0.0 |
| Model | codedense-compact122919-q8-en-de-v1.ninfer |
| Size | 15,687,110,660 bytes (~14.61 GiB) |
| SHA-256 | 064241b4949628bf2cf2e12152648fede602d70c629d8f2016c3281217bc221d |
| Public vocabulary | 122,919 tokens |
| Padded physical vocabulary | 123,136 rows |
| Weight format | NInfer mixed quantization; Q8 G32 embedding and language head, not all-Q8 |
| Ranking | indexed88-122919-r2-88064.i32le (88,064 selected IDs) |
| Ranking SHA-256 | 1aa39fc62e5db6fb9e915e0ae2593fa5fa2b11e1793c86aca94a87f5a7f7270b |
| Ranking FNV64 | 5577144959645153418 |
| Runtime source | Xtravaganz/ninfer (pinned by GitHub release tag) |
The .ninfer file is not a Transformers checkpoint, Safetensors collection, or GGUF. It requires a compatible custom NInfer runtime with the compact-vocabulary, Q8 shape, MTP5, and Indexed88 support. The release-manifest.json records the source commit and locally observed Docker image ID. Check it before use.
Verify the artifacts
printf '%s %s\n' \
064241b4949628bf2cf2e12152648fede602d70c629d8f2016c3281217bc221d \
codedense-compact122919-q8-en-de-v1.ninfer | sha256sum -c -
printf '%s %s\n' \
1aa39fc62e5db6fb9e915e0ae2593fa5fa2b11e1793c86aca94a87f5a7f7270b \
indexed88-122919-r2-88064.i32le | sha256sum -c -
Download
hf download Schestex/ThinkingCap-Qwen3.8-27B-NInfer \
codedense-compact122919-q8-en-de-v1.ninfer \
indexed88-122919-r2-88064.i32le \
release-manifest.json \
--revision codedense-compact122919-q8-en-de-v1.0.0 \
--local-dir ./codedense-model
Runtime
The verified local runtime image at release preparation was named:
ninfer-thinkingcap:compact122919-q8-stage4b-offline-rc1
A local Docker alias can be created without changing the image:
docker tag ninfer-thinkingcap:compact122919-q8-stage4b-offline-rc1 \
ninfer-thinkingcap:compact122919-q8-codedense-en-de-v1
This tag is local. It is not a publicly distributed Docker image unless the publisher separately pushes it to a container registry. Follow the specific NInfer release's deployment/configuration instructions; the Indexed88 ranking must be mounted to the path required by that runtime and configured with NINFER_MTP_INDEXED_RANKING when applicable. An arbitrary upstream NInfer build will not necessarily load this model.
What was changed
- Compact public tokenizer namespace: 122,919 IDs, backed by a padded 123,136-row physical vocabulary.
- Native mixed-precision NInfer artifact with Q8 G32 vocabulary matrices.
- Indexed88 proposal vocabulary ranking for MTP5, distributed as a separate companion artifact.
- Stage4 TARGET/FULL coverage collectors used during validation.
MTP speculative decoding โ benchmark history
CodeDense Compact122919-Q8 supports MTP5 speculative decoding with an Indexed88 proposal vocabulary containing 88,064 token IDs.
Original NInfer MTP0โMTP5 benchmark
Historical benchmark on GPU1 at a 145 W power configuration, with CUDA Graph execution and a 65,536-token corpus.
| Draft window | Decode tok/s | Speedup vs. MTP0 | Draft acceptance |
|---|---|---|---|
| MTP0 | 33.68 | 1.00ร | N/A |
| MTP1 | 48.45 | 1.44ร | 59.38% |
| MTP2 | 54.31 | 1.61ร | 50.79% |
| MTP3 | 54.16 | 1.61ร | 41.64% |
| MTP4 | 50.40 | 1.50ร | 28.24% |
| MTP5 | 45.64 | 1.35ร | 21.95% |
The original configuration achieved its highest measured decode throughput at MTP2.
Compact122919 MTP5 observations
A later coding-prompt experiment with Compact122919 and Indexed88 reported:
- Drafted tokens: 1,916
- Accepted tokens: 1,150
- Draft acceptance: 60.02%
- Indexed88 ranking: r2, 88,064 selected IDs
The historical and Compact122919 acceptance results were obtained under different workloads and should not be interpreted as a controlled performance comparison.
CodeDense Evolution โ Vocabulary Compression & MTP5 Decode Performance
The CodeDense project progressively reduces the vocabulary of the Qwen3.8-27B Dense architecture while optimizing NInfer's speculative decoding performance.
Across the tested Compact131206, Compact129430, and Compact122919 generations, we observed consistent improvements in MTP5 decode throughput.
Historical MTP5 Decode Performance
| Model Version | Public Vocabulary | Decode Throughput | Improvement vs. Previous |
|---|---|---|---|
| Compact131206-v3 | 131,206 | 89.85 tok/s | Baseline |
| Compact129430-v4 | 129,430 | 96.85 tok/s | +7.79% |
| Compact129430-v5-r2 | 129,430 | 99.75 tok/s | +2.99% |
| Compact122919-r615 | 122,919 | 101.70 tok/s | +1.95% |
Overall observed decode throughput improvement: +13.19%
From Compact131206-v3 to Compact122919-r615, the public vocabulary was reduced by 6.32%, while measured MTP5 decode throughput increased from 89.85 to 101.70 tokens per second.
MTP5 Draft Acceptance
| Model Version | Accepted / Proposed Draft Tokens | Acceptance Rate |
|---|---|---|
| Compact131206-v3 | 1,109 / 2,121 | 52.29% |
| Compact129430-v4 | 1,142 / 1,956 | 58.38% |
| Compact129430-v5-r2 | 1,150 / 1,916 | 60.02% |
| Compact122919-r615 | 1,150 / 1,916 | 60.02% |
Benchmark Methodology
All four selected benchmark runs used:
- The same coding prompt (verified using SHA256).
- MTP5 speculative decoding.
- Deterministic sampling (
temperature=0). - A maximum generation length of 768 tokens.
- One warmup request followed by two measured requests.
- Server-side decode throughput measurements.
The Compact129430-v5-r2 and Compact122919-r615 benchmarks produced identical generated-text SHA256 hashes, with identical MTP5 draft acceptance counts.
This demonstrates output stability for the tested coding prompt despite further vocabulary reduction.
Historical Context
The vocabulary compression process began with the earlier 135,000-token ThinkingCap model, followed by successive reductions to 131,206, 129,430, and finally 122,919 public vocabulary tokens.
The original 135K benchmarks used a different prompt and generation length (3,500 tokens). They are intentionally excluded from the throughput comparison above to avoid mixing different workloads.
The historical results reflect the combined evolution of vocabulary compression, Indexed88 ranking, and NInfer runtime optimizations. They should not be interpreted as an isolated causal speedup from vocabulary reduction alone. Hardware and runtime configurations were not fully identical across all runs.
Release note: The published Compact122919-r2 configuration uses a newer Indexed88 ranking. The 101.70 tok/s result was measured with the earlier Compact122919-r615 ranking and is not a separate benchmark of the final r2 release.
Indexed88 coverage
In the November 19, 2026 Stage4 snapshot, Compact122919-r2 reported:
- TARGET miss rate: 0.0503% across 8,324,853 observations
- FULL miss rate: 0.0418% across 169,691 observations
- Invalid token IDs: 0
Coverage measures whether relevant token IDs fall outside the selected proposal vocabulary. It does not measure draft acceptance.
Historical benchmark data is available under bench/mtp0-gpu1-145w-r3.json through bench/mtp5-gpu1-145w-r3.json.
Validation and limitations
The Stage4 read-only audit on 2026-11-19 reported 8,324,853 TARGET observations with 4,188 outside the selected Indexed88 set (0.0503%) and 169,691 FULL observations with 71 outside (0.0418%). These measure ranking coverage, not task accuracy or MTP acceptance, and historical rankings were not compared on matched requests. Original model quality, long-context equivalence, and overall speedups are not certified by these counts.
Input text outside the intended English/German focus may tokenize less efficiently. Code tokens and non-language symbols are not guaranteed to behave identically to the upstream tokenizer. Check your deployment's context limits and supported modalities; this card is not a blanket compatibility guarantee.
Provenance and licensing
- Upstream fine-tuned checkpoint: bottlecapai/ThinkingCap-Qwen3.8-27B
- Underlying foundation model: Qwen/Qwen3.8-27B
- Runtime code: Xtravaganz/ninfer, fork of Neroued/ninfer
ThinkingCap is not Apache-2.0-only. Its source model card identifies PolyForm Small Business 1.0.0 plus BottleCap's personal-use grant; the underlying Qwen materials are Apache-2.0. The original LICENSE* and NOTICE* files are included unchanged. The downstream publisher is responsible for reviewing license obligations before redistribution or commercial use.
See CHANGELOG.md and release-manifest.json for additional release context.
Support
Support the project on Buy Me a Coffee. Independent work on model optimization, quantization, fine-tuning experiments and efficient CUDA inference is supported by voluntary contributions. Support does not confer commercial rights to the model or promise development outcomes.
- Downloads last month
- 522