Kenchi: An ultra-compact language model with tool support
1 min readupdated
Kenchi (derived from the Japanese word for "modest knowledge") is a small language model with around 500 million parameters, developed by Rex Hall. Its primary goal is to be the most compact model capable of using external tools and honestly admitting when it lacks knowledge. The model is not designed to serve as a general-purpose chatbot, but it is well-suited for experimenting with function calling. It supports a context window of up to 2048 tokens and operates exclusively in English.
Key features
- Around 500M parameters for fast performance on basic hardware
- OpenAI-style tool-calling support
- Ability to honestly state when the model does not know something
- Training using Wikipedia data and materials from Qwen models
What you can do
- Connect the model to a terminal chat with Wikipedia search
- Test tool-calling functionality in custom Python scripts
- Use it in lightweight local projects for debugging function calls
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("rexmhall09/kenchi", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("rexmhall09/kenchi", trust_remote_code=True)
reply = model.chat(tok, [{ "role": "user", "content": "Who are you?" }])
print(reply["content"])Read more
DetailsSize: ~500M parameters
Context window: 2048 tokens
Language: English only
License: MIT
Limitations: Incorrect answers are possible, struggles with follow-up questions










Comments