Run Kev-4B Locally on Mac: Classification, Yes/No, and Scoring
Run Kev-4B with MLX on a Mac for classification, yes/no decisions, and scoring. Includes local interface source, setup, separate model downloads, an API example, and M4 Max results.
Sign into save this entry.
Kev reads a support ticket, review, or article, makes decisions among options you provide, and returns probability distributions. This guide runs Kev-4B v1.0 with MLX BF16 on a Mac, using a local Chinese browser interface to edit the input, questions, and options.
1 Prepare your Mac and bundle
- An Apple Silicon Mac, with 32GB or more unified memory recommended. Testing used an M4 Max with 64GB.
- macOS 26.2 or later, as required by the installer's pinned MLX 0.32.2 native library. The tested system was macOS 27.2.
- Allow 25GB of free disk space. Model weights total about 9.46GB.
Download VKE-Kev-Mac-Source-20261107-r2.zip from Kev-4B Mac Local Decision Lab. Sign in to this site for the Baidu Netdisk download. Extract VKE-Kev-Mac into your Downloads folder.
The source bundle includes upstream runtime code, the Chinese interface, setup and launch scripts, and a fixed model download manifest. Model files are not included. Initial setup requires GitHub, PyPI, and Hugging Face. Python, dependencies, and weights are downloaded into the project separately; subsequent use works offline without an API key or Node.
2 Install and start
Open Terminal and run:
cd "$HOME/Downloads/VKE-Kev-Mac"
bash scripts/setup.sh
The script checks the files and creates a Python environment inside the folder. When it reports that the environment is ready, download the models:
./下载模型.command
This fetches the fixed Kev adapter and Qwen base from Hugging Face and verifies the files. Weights total about 9.46GB. Rerun after an interruption; verified files are skipped. Once the download and verification finish, start the service:
./启动\ Kev\ 实验室.command
You can double-click the launcher later. After loading the model, it opens the local decision lab. Metal may compile kernels for a new input shape, making the first request slower.
3 Try a support ticket
Select 中文工单 and click 运行判断. The example describes a duplicate charge and asks which department should handle it, whether a refund was requested, and how urgent it is.

This example selected billing with 95.4% probability and returned 97.5% for “yes” to the refund question. Those values apply to the pictured input; try changing its wording or options.
| Type | Input | Result |
|---|---|---|
| Choice | One name \| description per line | Top option and full distribution |
| Noul | A yes/no question | Probability of yes |
| Score | Ordered levels, lowest first | Probability-weighted level index |
Scores start at zero. Low, medium, and high map to 0, 1, and 2; the pictured 1.37 is their weighted score. Five star levels map to 0–4, so add one to express the result as stars.
Questions share the same input but cannot read each other's answers. Start with one to five short questions and clearly defined options. The displayed confidence measures distribution concentration. It differs from the highest option probability; neither is an accuracy percentage.
4 Save results and use the API
Expand the full request and response below the results, or select 下载 JSON to export them. 最近测试 keeps up to 12 recent results in this browser, including their inputs. You can reuse or clear them.
The same service exposes a TypeSafe System One-compatible endpoint. For example:
curl http://127.0.0.1:8790/v1/systemone \
-H 'Content-Type: application/json' \
-d '{"state":"I was charged twice.","questions":{"duplicate":{"type":"noul","instructions":"Was the customer charged twice?"}}}'
After installation, both the page and API process content locally. The service listens only on 127.0.0.1:8790.
5 Results on this Mac
Six authored Chinese and English short tickets produced 12 expected classification and yes/no decisions. Score ranges, probability distributions, and the SDK call also passed. Each request asked three questions: median model time was about 143ms, first compilation about 2.2 seconds, and a repeated input with a cache hit about 85ms.
These are functional checks for a small input set, not general accuracy measurements or a performance comparison with Jev. The page shows model time and total request time separately. Distinguish new inputs from cache hits when timing it.
Kev-4B's officially validated context length is 8,192 tokens. Start with short inputs and evaluate longer documents separately, even though the server accepts them. For Chinese or your own categories, test a labelled sample before using the results. See the fixed-version model card.
6 Stop and troubleshoot
Double-click 停止 Kev 实验室.command to release model memory. Closing the page does not stop the service, and it does not unload automatically when idle.
- Startup fails: check
logs/server.log, your system version, free memory, and whether port 8790 is occupied. - Checksum failure: download or extract the complete bundle again before installing.
- Launch fails after moving the folder: stop the service, remove only its
.venv, and run setup again in the new location. - Installing from source yourself: follow the official instructions. Do not run
pip install kev; that PyPI name belongs to another project.
Kev code, adapter weights, and the matching Qwen base model use Apache-2.0. Bundled dependencies retain their own licenses. This bundle uses the upstream model without additional fine-tuning.
READER CORRESPONDENCE
Comments (0)
Sign in to comment or reply. Submissions appear after moderation.
Sign into comment or reply.
No comments yet.