[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114031":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":29,"discoverSource":30},114031,"yasakani","yasakani-dev\u002Fyasakani","yasakani-dev","Run Qwen3.8-27B locally on Windows with one NVIDIA RTX GPU: chat and an OpenAI-compatible API. On an RTX 5090 the fastest model averaged 2,298 tok\u002Fs on our own JSONL edit task (one request at a time, thinking off, v0.1.4).",null,"Python",133,29,1,5,0,2,23,53,15,65.19,"Apache License 2.0",false,"main",[],"2026-11-23 14:10:43","2026-11-23 11:55:42","# YASAKANI\n\nA local LLM engine for **Windows** and **one NVIDIA RTX GPU** (tested on the **RTX 5090**), built for one model: **Qwen3.8-27B**. Open source, Apache License 2.0.\n日本語は [README.ja.md](README.ja.md)。\n\n> **Version 0.1.5 (November 16, 2026).** New in this version: fixes, most of them contributed. Tool calls with `\u003Cfunction=...>` inside a JSON argument are read correctly, the same image twice in one request is encoded once, and `--dll` or `YASAKANI_DLL` naming a file that is not there stops with an error instead of loading another library ([#12](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F12)). A tool-call argument declared as a boolean also takes Python's `True` \u002F `False`, and one that may be null `None` ([#21](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F21)). The engine reads the header length of a model file as 64 bits ([#14](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F14)), attends to the whole of a short context also when `YSKN_Q35_ATX_SPLITS` is set below 31 (the default, 42, was not affected; [#15](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F15)), and keeps the look-ahead state of two engines in one process apart ([#13](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F13)). Its GPU code is that of 0.1.4, so the speed tables stand. `--max-ctx` leaves out the output head of the draft model when it does not fit beside the given length ([#17](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F17)). On a PC with several GPUs, `--device N` is now GPU N of `yasakani info` and nvidia-smi ([#20](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fissues\u002F20)). The FAQ says that a monitor on the same GPU can slow generation ([#18](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fissues\u002F18)). 0.1.4 brought faster edits, and less reading of long prompts again. Where the answer copies the input, one pass checks up to 64 copied tokens instead of 16: with thinking off, code and JSONL edits are 1.67 to 2.04 times as fast as with 0.1.2, the other tasks run at 0.96 to 1.01 times (as fast as 0.1.3 measured in the same sitting: 0.99 to 1.00 times), and the answers are the same (see [Speed](#speed)). The quickstart now checks the NVIDIA driver before it downloads anything, and `yasakani selfcheck` also checks GPUs other than the RTX 5090 (see [What you need](#what-you-need)). The same long document followed by a different question is no longer read again from the start (when the document comes before the question and no other request comes in between): after a 229,376-token document the first token comes after 0.37 s instead of 116 s (see [Long contexts](#long-contexts)). The server now also accepts `tool_choice` `required` and a named function (not enforced) and reports llama.cpp-style `timings`, and image input also works on Linux with llama.cpp built from source (all three contributed in [#8](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F8); image input on Linux not tried by us); [BUILDING.md](BUILDING.md#linux-building-from-source) has a Linux section ([#10](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F10), [#8](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F8)). Since 0.1.3 the engine is also built to run on other NVIDIA RTX 30, 40 and 50 series cards with 16 GB or more; we have not run it on them, and it is not optimized for them (see [What you need](#what-you-need)). 0.1.3 also fixed the cause of a rare change of the text part-way through a run (see [Quality](#quality)). Since 0.1.2 the server can take images, optionally (contributed in [#4](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F4)). Since 0.1.1 it accepts requests with `tools` (tool \u002F function calling), so coding agents and other tool-using apps can connect to it. Engine: [release page](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Freleases\u002Ftag\u002Fv0.1.5). Models on Hugging Face: [quality model](https:\u002F\u002Fhuggingface.co\u002Fyasakani-dev\u002FQwen3.8-27B-YASAKANI-quality) and [fastest model](https:\u002F\u002Fhuggingface.co\u002Fyasakani-dev\u002FQwen3.8-27B-YASAKANI-speed).\n>\n> **Support the development:** crowdfunding on CAMPFIRE for backers living in Japan, until December 16, 2026 - https:\u002F\u002Fcamp-fire.jp\u002Fprojects\u002F992233\u002Fview (outside Japan: see [Support](#support))\n\n## What it is\n\nYASAKANI runs Qwen3.8-27B on your own PC. In a comparison with eight other engines on the same PC (one RTX 5090, Qwen3.8-27B, one request at a\ntime), its fastest model wrote answers faster than every one of them in all seven task categories, with thinking off and with thinking on. The\ntables and what they do and do not show are under [Speed](#speed). It starts an **OpenAI-compatible server** (so chat front-ends and developer\ntools can use it), a **terminal chat**, and a **benchmark**. After the download it needs no internet connection.\n\nIt was built by one person in Japan. The engine is a purpose-built set of GPU kernels, a file format and a runtime for this one model,\ntuned on one card, the RTX 5090; it is not a general-purpose engine.\n\n## Two models\n\nBoth are Qwen3.8-27B, converted to the YASAKANI file format and compressed. You need only one of them.\n\n| | Quality model (recommended) | Fastest model |\n|---|---|---|\n| Made for | staying close to the original model, at high speed | the highest generation speed and the smallest size |\n| Model file | 12.37 GB | 10.31 GB |\n| Same most likely next token as the original model | 95.24% | 93.01% |\n| KL divergence from the original model (smaller is closer) | 0.0122 | 0.0304 |\n| Download | [Hugging Face](https:\u002F\u002Fhuggingface.co\u002Fyasakani-dev\u002FQwen3.8-27B-YASAKANI-quality) | [Hugging Face](https:\u002F\u002Fhuggingface.co\u002Fyasakani-dev\u002FQwen3.8-27B-YASAKANI-speed) |\n\nThe two quality rows are agreement with the original model's next-token prediction on 20 thinking transcripts, not task accuracy; see\n[Quality](#quality). The file size is not the GPU memory needed to run the model.\n\n## Speed\n\nTokens written per second, on one RTX 5090 (stock 600 W, no overclocking), the same PC for every engine, one request at a time. Bigger is faster.\nAll speed numbers in this repository are from the RTX 5090. Other GPUs are slower, and we publish no numbers for them.\n\n**Thinking off** (greedy; average of 2 runs per task, after leaving out runs that fell into a repetition loop or made a tool call nobody asked for;\nYASAKANI measured again with 0.1.4 on November 15, 2026):\n\n| Engine | Code | Story | Translation | Structured | Code edit | JSONL edit | Long JSONL |\n|---|---|---|---|---|---|---|---|\n| **YASAKANI fastest model** | **512** | **195** | **479** | 882 | **2,025** | **2,298** | **1,214** |\n| **YASAKANI quality model** | 468 | 172 | 464 | **892** | 2,008 | 2,243 | 1,115 |\n| MegaCapybara 1.39 Tiny | 465 | 164 | 268 | 599 | 441 | 658 | 666 |\n| mkyt v0.3.2 | 395 | 181 | 374 | 555 | 423 | 634 | 639 |\n| ignis v0.9.6 | 330 | 167 | 298 | 439 | 331 | 510 | 514 |\n| NInfer (November 2 build) | 264 | 123 | 257 | 386 | 295 | 443 | 438 |\n| vLLM 0.31.0 | 290 | 148 | 261 | 354 | 241 | 426 | 431 |\n| SGLang 0.5.22 | 252 | 129 | 246 | 371 | 430 | 466 | 451 |\n| llama.cpp b11700 | 242 | 133 | 232 | 337 | 244 | 360 | 362 |\n| TensorFold 0.6.6 | 181 | 104 | 172 | 405 | 383 | 408 | 261 |\n\n**Thinking on** (temperature 1.0, top-p 0.95, top-k 20, min-p 0; the fastest run of each task; YASAKANI measured on November 8 with the engine\nof 0.1.0 to 0.1.2 (the build of November 7), not again with 0.1.4):\n\n| Engine | Code | Story | Translation | Structured | Code edit | JSONL edit | Long JSONL |\n|---|---|---|---|---|---|---|---|\n| **YASAKANI fastest model** | **337** | **287** | **497** | **536** | 667 | **1,108** | **704** |\n| **YASAKANI quality model** | 299 | 242 | 428 | 480 | **743** | 1,053 | 634 |\n| MegaCapybara 1.39 Tiny | 290 | 206 | 308 | 429 | 550 | 663 | 516 |\n| mkyt v0.3.2 | 244 | 196 | 348 | 384 | 378 | 603 | 454 |\n| ignis v0.9.6 | 211 | 130 | 276 | 277 | 278 | 485 | 327 |\n| NInfer (November 2 build) | 172 | 140 | 258 | 263 | 263 | 404 | 322 |\n| vLLM 0.31.0 | 131 | 112 | 197 | 195 | 187 | 369 | 253 |\n| SGLang 0.5.22 | 157 | 124 | 206 | 230 | 257 | 402 | 282 |\n| llama.cpp b11700 | 140 | 122 | 184 | 197 | 206 | 349 | 221 |\n| TensorFold 0.6.6 | 134 | 79 | 167 | 183 | 439 | 360 | 268 |\n\nWhat these tables are, and are not:\n\n* \"Speed\" is the speed of **writing the answer**: (output tokens - 1) \u002F (time from the first to the last content chunk). The time to read the\n  prompt is not included.\n* The tasks are 12 published prompts (code, story, translation and structured output, 3 each) and 3 tasks of our own (code edit, JSONL edit,\n  long JSONL). The output limit is 4,096 or 8,192 tokens.\n* Thinking off: the average leaves out runs with a repetition loop or an unrequested tool call, by one rule applied to every engine. This can\n  change how many tasks a category holds. For the fastest model's \"Code\" it matters: 1,089 tok\u002Fs before the exclusion, 512 after (0.1.4); we do not use\n  1,089 as a figure for practical code generation. The table before the exclusion is in [docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md).\n* **On November 14, 2026 the rule for repetition was tightened and the table was made again.** The first rule missed some answers that\n  repeat whole paragraphs. The fastest model's \"Story\" value of 285 included such runs (the English mystery story, 454 tok\u002Fs). With the new\n  rule (for story and translation: a run is left out when lines that occur more than once make up 20% or more of its lines), applied to\n  every engine alike, only the \"Story\" column changes: fastest model 285 -> 201, mkyt 204 -> 181, vLLM 150 -> 148, llama.cpp 139 -> 133.\n  The table made again, and the 12 prompts one by one, are in [tools\u002Fspeed\u002F](tools\u002Fspeed\u002F).\n* The large gaps are in the 3 tasks of our own (1.9 to 3.8 times the next engine). These tasks mostly copy their input, the kind of\n  output that speculative decoding predicts best; since 0.1.4 a pass that copies the input checks up to 64 tokens (below). In the four categories of the 12 published prompts the fastest model is 1.1 to 1.5\n  times the next engine. For 3 of the 12 prompts (CUDA code, TypeScript code, the English mystery story) the fastest model's answer was\n  a repetition loop or an unrequested tool call, so they are not compared. The quality model's \"Story\" value is about the same as the\n  next engine's (179 against 181).\n* Thinking on: for each task the fastest run is taken, then the category is averaged. YASAKANI chose from 5 runs, the other engines from 2,\n  so the number of tries is not equal; the table of plain averages is in [docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md). Many runs ended at the\n  output limit, so this is not a comparison of time-to-answer or of accuracy.\n* Every engine ran its own weights, quantization, key-value cache format and speed-up settings; this is not a comparison with all settings\n  made equal. For an engine measured with several settings, the fastest setting of each category is used.\n* YASAKANI's two models were measured with thinking off on November 15, 2026 with the `yskn.dll` of 0.1.4 (0.1.5 has the same GPU code), and with thinking\n  on on November 8 with the engine of 0.1.0 to 0.1.2 (the build of November 7). MegaCapybara with thinking off was measured on November 3; its thinking-on runs and the other engines on November 6. This is not a ranking of the latest version of every program, or of\n  every use.\n\nEverything needed to check or repeat the comparison (launch settings, prompts, the measurement scripts and the raw records) is in\n[`bench\u002F`](bench\u002F). `yasakani bench` measures your own PC.\nIf you measure with a script of your own, take the token count from the server's `usage.completion_tokens` (in a stream, send `stream_options`\nwith `{\"include_usage\": true}`). A stream carries one chunk per token, but where one character is split over several tokens its text arrives\nwith the last of them, so the number of chunks is slightly smaller than the number of tokens.\n\n### What 0.1.4 changed\n\nMeasured one after the other on November 15, 2026 (14:51 to 15:17) with the same clients (thinking off, 2 runs per task), against 0.1.2. tok\u002Fs:\n\n| | Code edit | JSONL edit | Long JSONL edit (160 records) | Code, Story, Translation, Structured, Long JSONL |\n|---|---|---|---|---|\n| fastest model | 1,210 -> 2,025 (1.67 times) | 1,125 -> 2,298 (2.04 times) | 1,141 -> 2,099 (1.84 times) | 0.96 to 1.00 times |\n| quality model | 1,128 -> 2,008 (1.78 times) | 1,146 -> 2,243 (1.96 times) | 1,096 -> 2,056 (1.88 times) | 0.97 to 1.01 times |\n\nThe 64 answers of this measurement (both models) were the same text with 0.1.3 and 0.1.4, and all but one with 0.1.2: the second run of one\nprompt of the quality model with 0.1.2 changed part-way through, the rare change that 0.1.3 fixed (see [Quality](#quality)). The long JSONL edit is an extra task, not a\ncolumn of the table. In this sitting 0.1.3 also ran at 0.96 to 1.01 times the speed of 0.1.2 on the other tasks, and 0.1.4 at 0.99 to 1.00 times the speed of 0.1.3; in a measurement in the morning of the same day (with the first build of 0.1.4) the three versions were within 1% of each other on these tasks. We do not know the cause of the difference. Records: [bench\u002F20261115\u002F](bench\u002F20261115\u002F); tables:\n[tools\u002Fspeed\u002FSPEED_TABLES_0114.md](tools\u002Fspeed\u002FSPEED_TABLES_0114.md); how the copying works: [docs\u002FTECHNOLOGY.md](docs\u002FTECHNOLOGY.md) (5.4).\n\n### One edit, start to finish\n\nA screen recording without cuts shows the fastest model rewriting a Python file of about 20,000 characters: 5.56 s from sending the request to\nthe last output (4,712 tokens, 1,102 tok\u002Fs while writing, measured on November 8 with the engine of 0.1.0 while the screen was being recorded). The generated file gave the same\nresults as the original on 17,701 inputs. The recording, logs, the generated code and the checks are in the release's evidence archive;\nsee [docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md).\n\n## Quality\n\nThe models are compressed (the original BF16 weights are 53.8 GB), so they are **not identical** to the original Qwen3.8-27B.\n\nHow close the next-token predictions stay to the original BF16 model was measured on 20 thinking transcripts from our own use of the model,\nnone of them used when the files were made (20,460 positions, FP16 key-value cache, November 8, 2026). Thirteen configurations of different\nengines and compressed files were measured on the same texts:\n\n* The **quality model** has the smallest KL divergence (0.0122) and the highest top-1 agreement (95.24%) of the thirteen.\n* Against the GSQ-RCO files of similar size run by llama.cpp: 12 GB class, 95.24% against 93.64% (IQ3_S); 10 GB class, the fastest model's\n  93.01% against 91.22% (IQ3_XXS). The KL divergence is about 47% and 41% smaller.\n\nAgreement is \"chose the same most likely next token as the original model\". It is **not** the rate of correct answers on tasks, and the\nresult covers thinking text only: on general web text an additional evaluation showed a KL divergence 3-10% larger for the quality model\nthan for our earlier conversion of the same size. The full table, including the configurations for which only a lower bound of the KL\ndivergence could be measured, is in [docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md).\n\n**Checking it yourself.** The numbers above were measured with a research build of the engine and an FP16 key-value cache. The released\n`yskn.dll` has no FP16 cache: it always rounds the cache with KV5. Measured again with the engine of releases 0.1.0 to 0.1.2 as the\npackage starts it (KV5 cache, November 14, 2026), the quality model gives a KL divergence of 0.0126 and a top-1 agreement of 95.35%, the fastest model 0.0309 and 92.98%. The\n20 texts, a program that makes the reference from the original model with Hugging Face transformers, and the program that measures a\nreleased model are in [tools\u002Fquality\u002F](tools\u002Fquality\u002F). The file format is specified in [docs\u002FFORMAT.md](docs\u002FFORMAT.md), and\n[tools\u002Fyskn_decode.py](tools\u002Fyskn_decode.py) reads a model file without the engine and compares the stored weights with the original\nones. The program that made the model files from the original weights is in [tools\u002Fconvert\u002F](tools\u002Fconvert\u002F). Run again on the PC\nthat made them, with only the output matrix taken from the released files, it gave the released files byte for byte\n([its README](tools\u002Fconvert\u002FREADME.md)).\n\nSpeculative decoding only keeps tokens that the main model agrees with, so it is built not to change what is written. Up to 0.1.2, while\nother programs were using the GPU at the same time (the desktop was drawing), a repeated request now and then had the same tokens as the\nothers up to one position and continued differently from there (November 10, 2026: 1 of 190 runs with the default settings and 21 of 432\nwith speculative decoding switched off; November 11 and 12: 10 of 593 runs). With the GPU otherwise idle, all 240 repeated runs were identical.\nOn November 11 we found the cause: in the kernels that apply the position rotation to queries and keys, one synchronization was missing,\nso a value could be overwritten before another thread had read it. 0.1.3 adds it. In our tests with builds that have this fix, the change\ndid not appear again (for example 0 of 2,800 passes compared bit for bit while another process kept the GPU busy, against 6 of 3,200\nwithout the fix). We still do not promise bit-identical text in every condition. The details are in [docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md).\n\nThe wider copy passes of 0.1.4 were checked against plain decoding. A pass of 17 to 64 rows gave bit for bit the same choices and values as\npasses of 16 rows (30 of 30 checks), and 255 of 255 generations with copying (fastest model greedy and with a fixed seed, quality model\ngreedy; the settings of 0.1.4, the same with parts switched off, and the 0.1.3 engine) gave the same tokens as decoding one token per pass (28 of them used wide passes). A prompt continued from a\nsaved state gave the same output as the same prompt read from the start (37 of 37 cases).\n0.1.4 also makes the point where `thinking_budget` or the loop guard cuts the thinking depend only on the generated tokens. Up to 0.1.3 it\ncould move by the tokens confirmed before the cut was noticed, so the answer could depend on the look-ahead.\n\n## Long contexts\n\nThe context length goes up to 262,144 tokens. The key-value cache is stored in YASAKANI's own compressed format, **KV5**. With the fastest\nmodel and the full 262,144-token context reserved, the engine takes 16.78 GiB with KV5 against 27.13 GiB with an FP16 cache (about 38% less\nfor the whole engine, about 66% less per cached token). With the fastest model on fixed texts of 2K to 128K tokens,\nthe KL divergence with KV5 was at most 0.00052 higher on average than with FP16 (the FP16 side was a research build). Against a plain\n8-bit cache (a measurement build of the 0.1.2 source, context 2,048 tokens), the KL with KV5 was about 3% higher for the quality model and\nabout 2% higher for the fastest model ([docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md)).\nThe 262,144 figure is what the engine reserves at start; quality was checked up to 128K. On a GPU with less\nmemory than the RTX 5090 the context is made to fit (see [What you need](#what-you-need)).\n\nTogether with the helper model that speeds up generation, the GPU memory in use at the full 262,144-token context was about 19.1 GiB for the\nfastest model and about 21.2 GiB for the quality model (about 14.3 GiB and 16.4 GiB with `--max-ctx 32768`; November 11, 2026, the difference\nof the nvidia-smi values before and after loading).\n\n**Reusing a long prompt.** When a request repeats the previous prompt, continues the conversation or sends back a tool result, the\nstandard server reuses what it has read and reads only the new part: after a 229,376-token document the first token\ncame 0.35 to 0.38 s after the request, against 116 s the first time (0.1.1 to 0.1.4, measured on November 15, 2026). New in 0.1.4: the same\ndocument followed by a different question is not read again either (0.37 s; 0.1.1 to 0.1.3 read it again, 116 s), when the\ndocument comes before the question and the question part is up to about 4,000 tokens. The engine keeps up to 8 saved states along the\nprompt of one conversation in pinned host memory (about 1.5 GiB of RAM; no more GPU memory; current defaults, not tuned). It reads from the start when an unrelated request came\nin between, when thinking is switched on or off, after a request with an image, and when a prompt shorter than 8,192 tokens changes part-way\n([docs\u002FTECHNOLOGY.md](docs\u002FTECHNOLOGY.md), chapter 8; [docs\u002FMEASUREMENTS.md](docs\u002FMEASUREMENTS.md)). The harness runs its own copy of the\nPython package, so it does not reuse a document for a different question yet.\n\n## What you need\n\n| | |\n|---|---|\n| GPU | NVIDIA **GeForce RTX 5090** (32 GB): tested. Since 0.1.3 the engine is also built to run on other NVIDIA RTX 30, 40 and 50 series cards with compute capability 8.6 or higher and 16 GB or more (below), but it is not optimized or tested on them |\n| OS | **Windows 11**, 64-bit (the only version tested) |\n| Driver | NVIDIA driver 580 or newer (a driver for CUDA 13; tested with 616.92). The quickstart checks it before downloading anything and stops if it is older |\n| Software | Microsoft Visual C++ 2015-2022 x64 runtime, Python 3.10 or newer |\n| Disk \u002F RAM | 20 GB free (one model is a download of about 13 to 15 GB); 32 GB of RAM recommended (tested on a PC with 96 GB) |\n\n**Other GPUs (since 0.1.3).** The engine is built for compute capability 8.6, 8.9 and 12.x, and is meant to run on these cards (none of them has been tried yet):\n\n| Memory | Cards | Models |\n|---|---|---|\n| 24 GB | RTX 3090, RTX 3090 Ti, RTX 4090 | both models |\n| 16 GB | RTX 4060 Ti 16GB, RTX 4070 Ti SUPER, RTX 4080, RTX 4080 SUPER, RTX 5060 Ti 16GB, RTX 5070 Ti, RTX 5080 | the fastest model only, with a shorter context |\n\nWe have not optimized the engine for these cards and have not tested it on them (we have only an RTX 5090), so neither its speed nor\nits operation is guaranteed there. They are slower than the RTX 5090. Since 0.1.4 `yasakani selfcheck` (the quickstart runs it) compares\nthe card's predictions with those of the RTX 5090 and fails when they differ by more than small differences in the computation; every GPU\nalso checks that its passes of different widths agree. On a card with less than 32 GB the context length is chosen from\nthe free GPU memory each time the model starts (at most 262,144 tokens; on a 16 GB card about 65,000 to 82,000 tokens when the display\nand other programs use 1 GB of it - calculated from measurements on the RTX 5090, not measured on these cards; the draft model's output\ntable `bdraft2_k8.shead` is then left out, which made each pass about 3% slower on the RTX 5090). Testing and tuning on\neach of these cards is a goal of the crowdfunding campaign; see [Support](#support). Results from your card are welcome\n([CONTRIBUTING.md](CONTRIBUTING.md)).\n\nNot supported: AMD GPUs, Macs, NVIDIA cards with less than 16 GB, cards older than the RTX 30 series (compute capability below 8.6),\nother models.\n\n**Linux:** the engine can be built from source (contributed in [#3](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F3)); the steps and the tested setups are in\n[BUILDING.md](BUILDING.md#linux-building-from-source). This is building from source, tested by contributors, not an official release: there is no\nprebuilt Linux release or launcher yet. An official Linux release (prebuilt files, a launcher, checks on plain Linux, and support) is one of the\ncrowdfunding goals.\n\n**Images (optional):** since 0.1.2 the server can also take images on Windows (a community contribution, [#4](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F4)). This needs\nfiles that are not part of the release: the image encoder `mmproj-Qwen3.8-27B-BF16.gguf` (0.93 GB), the CPU build of llama.cpp b10488,\na Qwen3.8-27B GGUF file (only its settings and vocabulary are read, but the file is large: about 17 to 19 GB for Q4_K_M) and Pillow.\nEach image is encoded on the CPU, after it is downsized to at most 1,024 image tokens (about one million pixels). On our PC (AMD Ryzen 9 9950X3D2, 16 cores,\n16 threads) that took about 15 s for a large image and 1.2 s for a 512 × 512 one; while an image is encoded, the server answers\nno other request. We checked that it works on our RTX 5090 with the quality model and a few\nsimple test images; we have not measured how well the model understands images. Set-up and limits: [python\u002FREADME.md](python\u002FREADME.md#image-input-optional).\nThe quickstart menu and the harness do not use images. On Linux image input works with llama.cpp b10488 built from source\n([BUILDING.md](BUILDING.md#image-input-on-linux); contributed in [#8](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F8), tried by its author on native Ubuntu 26.04, not by us).\n\nClose other programs that use a lot of GPU memory (games, other LLM servers) before you start. When the memory runs out there is no error:\ngeneration just becomes several times slower (a warning is printed at start in that case).\n\n## Quick start\n\n**The quickest way:** unpack `yasakani-quickstart-0.1.5.zip` from the [release page](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Freleases\u002Ftag\u002Fv0.1.5) to a plain path such as\n`C:\\yasakani` and double-click `START.cmd`. It downloads the engine and one model and runs the checks; then you can measure the speed,\ncompare look-ahead on and off (the numbers of the technical notes, on your own PC), chat in your browser, or start the server. You only answer its questions with a number (Python 3.10 or newer is needed). What it does is in\n[quickstart\u002F](quickstart\u002F). To install by hand:\n\n1. Download the engine zip (`yskn.dll` and the Python package) from the [release page](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Freleases\u002Ftag\u002Fv0.1.5) and one model folder from\n   Hugging Face ([quality](https:\u002F\u002Fhuggingface.co\u002Fyasakani-dev\u002FQwen3.8-27B-YASAKANI-quality) or [fastest](https:\u002F\u002Fhuggingface.co\u002Fyasakani-dev\u002FQwen3.8-27B-YASAKANI-speed)). Compare the SHA-256 checksums with the ones on the release page.\n\n```bat\nhf download yasakani-dev\u002FQwen3.8-27B-YASAKANI-quality --local-dir D:\\models\\qwen38-quality\n```\n\n2. Install the Python package and check the computer, the files and the installation:\n\n```bat\npip install .\nyasakani info      --model-dir D:\\models\\qwen38-quality --dll D:\\yasakani\\yskn.dll\nyasakani verify    --model-dir D:\\models\\qwen38-quality\nyasakani selfcheck --model-dir D:\\models\\qwen38-quality --dll D:\\yasakani\\yskn.dll\n```\n\n3. Chat in the terminal, or start the server and point any OpenAI-compatible client at `http:\u002F\u002F127.0.0.1:8765\u002Fv1`:\n\n```bat\nyasakani chat  --model-dir D:\\models\\qwen38-quality --dll D:\\yasakani\\yskn.dll\nyasakani serve --model-dir D:\\models\\qwen38-quality --dll D:\\yasakani\\yskn.dll\n```\n\n**Good to know before the first request**\n\n* By default the model thinks before it answers, at its longest thinking setting. On requests that ask for a certain number of characters, or\n  for a whole program in one go, the thinking alone can take thousands to tens of thousands of tokens, and no answer appears during that time.\n  To shorten it: `\u002Feffort medium` or `\u002Feffort low` in `yasakani chat`, `\u002Fthink off` to answer without thinking; through the API,\n  `reasoning_effort` (`medium`, `low`) or `{\"enable_thinking\": false}` in `chat_template_kwargs`.\n* The output limit (max tokens) includes the thinking. If your client's limit is small, the request ends in the middle of the thinking and the\n  answer is empty. Raise the limit when the model is to think (the server's default is 32,768); for requests where even that is not enough, use\n  a shorter thinking setting.\n* For a long program written in one go, we suggest `medium`. In a small number of trials, `medium` most often gave code that runs as it is;\n  the default (longest thinking) can think for minutes and then reach the limit, and thinking off or `low` gave more code that does not run.\n* With thinking off, we use temperature 0.7, top-p 0.8 and top-k 20 in development. Temperature 0 falls into repetition more easily on long prose.\n\nThe details (the model folder, supported request fields, the loop guard, the self-check) are in [python\u002FREADME.md](python\u002FREADME.md).\nTo build `yskn.dll` yourself, see [BUILDING.md](BUILDING.md); common questions are in [docs\u002FFAQ.md](docs\u002FFAQ.md).\n\n## Use it as an agent\n\n`yasakani-harness-0.1.0.zip` on the [release page](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Freleases\u002Ftag\u002Fv0.1.5) opens an agent screen in your browser, run by the model\non your PC: the model reads and writes files in a work folder and runs commands (you choose on the screen whether it may change files).\nRun the quickstart above first; then unpack the harness zip into the quickstart folder or next to it and double-click `START_HARNESS.cmd`.\n\n* The screen is [DeepSeek Harness](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002Fdeepseek-harness) (open-source software by DeepSeek, MIT license), used\n  unchanged. It is installed from npm on first use (about 730 MB; Node.js is fetched too if the PC has none). YASAKANI adds a settings file\n  and a Japanese language pack. YASAKANI is not affiliated with DeepSeek, and this combination is not an official product.\n* The harness zip is the one of 0.1.0, unchanged. It starts the server with the copy of the Python package that comes with it (0.2.0.dev0);\n  the tool-calling code of that copy is that of the standard package of 0.1.1; the tool-call fixes of 0.1.5 ([#12](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F12), [#21](https:\u002F\u002Fgithub.com\u002Fyasakani-dev\u002Fyasakani\u002Fpull\u002F21)) are not in it. It does not have the image input of 0.1.2.\n  It does not choose the context from the GPU memory either (0.1.3): it opens the full 262,144 tokens, so it needs a card with 24 GB or more.\n* A new session starts with the model's longest thinking setting. One reply may take up to 98,304 tokens; a thinking longer than 49,152\n  tokens is closed there and the model goes on to the answer. With both models installed, the screen can switch between them.\n* Everything is kept inside the harness folder. A DeepSeek Harness you already use is not touched.\n\nWhat it does, what was checked and what was not: [harness\u002FHARNESS_README.txt](harness\u002FHARNESS_README.txt).\n\n## How it works, briefly\n\n* A file format of its own for the compressed model, and a runtime built around it. Compression and computation are designed together, so\n  that the GPU reads less data and does less work.\n* GPU kernels written and tuned for the RTX 5090. Since 0.1.3 the same source is also built for the RTX 30 and 40 series; two kinds of\n  instructions those cards do not have (an early start of the next kernel and a bulk prefetch into the L2 cache) are left out there.\n* **Speculative decoding.** A small helper model proposes several next tokens at once, and the main model checks them in a single pass and\n  accepts the ones it agrees with. Where the answer copies the input, the input itself is the proposal (since 0.1.4 up to 64 tokens per\n  pass). The helper model is described in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n* A prompt that starts like the previous one is read only from where it differs (since 0.1.4 also a new question after the same long\n  document).\n* A compressed key-value cache (KV5). Per token it takes about a third of the memory of an FP16 cache and about two thirds of an 8-bit\n  one, which leaves more memory for the context. With the fastest model and the full 262,144-token context reserved, the engine takes\n  16.78 GiB (27.13 GiB with an FP16 cache; see [Long contexts](#long-contexts)).\n* One request is generated at a time.\n\nThe source for all of this is in this repository, and so is the program that made the two model files from the original weights\n([tools\u002Fconvert\u002F](tools\u002Fconvert\u002F); it handles Qwen3.8-27B only). The published models work as they are.\n\n**In detail:** [docs\u002FTECHNOLOGY.md](docs\u002FTECHNOLOGY.md) - technical notes by the author: the arithmetic behind the speed (bytes read\nagainst memory bandwidth), the weight format and how the codes are made, computing on the compressed form, look-ahead, KV5, what each\npart contributes, and the source files that go with each.\n\n## Limits\n\n* Windows 11 + Qwen3.8-27B only (Linux: build from source). Tested on the RTX 5090 only; the build also targets other RTX 30, 40 and 50 series cards with 16 GB or more, untuned and untested. One request at a time. Images only through the optional image input of the server (new in 0.1.2; on Linux only with llama.cpp built from source, not tried by us; [python\u002FREADME.md](python\u002FREADME.md#image-input-optional)); no `n` above 1, no `logprobs`. Tool \u002F function calling: `tools` with `tool_choice` `auto` or `none` (new in 0.1.1); `required` or a named function is accepted since 0.1.4 but not enforced, so an answer can come without a call. It is new and has been tested far less than plain chat.\n* The release files are not code-signed, so Windows may warn about them (see [SECURITY.md](SECURITY.md)).\n* The answers are not identical to the original model's (see Quality).\n\n## Support\n\nDevelopment is funded by a crowdfunding campaign on CAMPFIRE: https:\u002F\u002Fcamp-fire.jp\u002Fprojects\u002F992233\u002Fview (until December 16, 2026). This\nrelease does not depend on its result. The support goes to test hardware, electricity and development time: testing and tuning on the other\nRTX cards first (24 GB and 16 GB; 0.1.3 is built for them, but untested and untuned), then AMD and Mac, in the order and under the conditions\nwritten on the campaign page.\nSupporters who wish to be named are credited in this repository, and in the startup credits from a later version. News and\nmeasurements: https:\u002F\u002Fx.com\u002Fyasakani_dev\n\n**Outside Japan:** the CAMPFIRE campaign is only for backers living in Japan (CAMPFIRE's rules do not allow digital rewards, like this\ncampaign's, for backers abroad). From abroad you can support the development through GitHub Sponsors:\nhttps:\u002F\u002Fgithub.com\u002Fsponsors\u002Fyasakani-dev - there are no rewards, and the support goes to the same purpose, test hardware for more GPUs.\nStarring this repository, trying the engine and reporting what you measure helps a lot too.\n\n## License\n\nApache License 2.0 - see [LICENSE](LICENSE), [NOTICE](NOTICE) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). The model files are\nderived from Qwen3.8-27B (Apache-2.0, Alibaba Cloud) and from a publicly released draft model (Apache-2.0, z-lab); they are not the\noriginal weights.\n","YASAKANI 是一个专为 Windows 系统设计的本地大语言模型（LLM）运行引擎，支持单块 NVIDIA RTX 显卡（如 RTX 5090）高效运行 Qwen3.8-27B 模型。它提供命令行对话交互与 OpenAI 兼容的 HTTP API 接口，具备长上下文处理优化、工具调用支持（含 JSON 参数解析）、图像输入（Windows 原生支持，Linux 需自编译 llama.cpp）、多 GPU 设备选择及低延迟首 token 响应等特性。适用于对隐私敏感、需离线部署的桌面级 AI 应用场景，如本地知识问答、代码辅助、JSONL 格式数据编辑等轻量级生产任务。","2026-11-24 04:47:44","CREATED_QUERY"]