KnowLine-4B-Gen5.5
A smart approach to language model serving
2 min readupdated
The model is based on Qwen/Qwen3.5-4B (with 4.7B parameters) and was created by the authors of PelaAI for text classification and structured response tasks (option selection, yes/no, scale ratings). The weight architecture itself is identical to the previous Gen5 version, but the update lies in the server side: short text prompts up to 3,000 tokens are fed into the input twice before generating a response. This mechanism (inspired by the FlexDM project) allows the model to better match question context with complex conditions without additional fine-tuning. The tool will be useful for developers of automated systems, agents, and customer request analysis services.
Key features
- Double reading: The prompt text is fed into the frontend twice before the response, improving reasoning logic.
- Metric growth: The Decision Index 0.3 benchmark increased to 66.75 (compared to 65.67 for Gen5) due to enhanced text analysis.
- Same weights: All weights, configuration, and the byte-level tokenizer are identical byte-for-byte to the previous Gen5 version.
- Language support: Works with English, as well as Simplified and Traditional Chinese.
What you can do
- Request analysis: Set up the server to classify customer message sentiment and automatically determine the need for refunds.
- Pipeline integration: Connect the model via a compatible SGLang server for fast processing of structured questions.
- Agent testing: Use the model for request routing and UI element selection tasks.
Example
pip install "sglang==0.5.21" "transformers==5.12.1" requests
bash serve_knowline.sh PelaAI/KnowLine-4B-Gen5.5 0 8080Read more
DetailsBenchmarks: C-Eval 80.5, JevBench 85.3.
Requirements: Execution tested on a single H20 GPU (96 GB) using SGLang and FP8ing during loading.
Limitations: Double reading increases latency by an average of 1.56 times compared to Gen5; requests longer than 3,000 tokens and requests with images are processed normally.
Training: LoRA (a small add-on over the base model) (rank 32, alpha 64), merged into bf16 weights with reading temperature T = 1.50.










Comments