Text Generation
Transformers
Safetensors
GGUF
English
lfm2
kailu
kvchub
small-language-model
hybrid
short-convolution
conversational
Instructions to use KvcHub/KaiLu3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KvcHub/KaiLu3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KvcHub/KaiLu3") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KvcHub/KaiLu3") model = AutoModelForCausalLM.from_pretrained("KvcHub/KaiLu3", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use KvcHub/KaiLu3 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf KvcHub/KaiLu3 # Run inference directly in the terminal: llama cli -hf KvcHub/KaiLu3
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KvcHub/KaiLu3 # Run inference directly in the terminal: llama cli -hf KvcHub/KaiLu3
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf KvcHub/KaiLu3 # Run inference directly in the terminal: ./build/bin/llama cli -hf KvcHub/KaiLu3
Use Docker
docker model run hf.co/KvcHub/KaiLu3
- Llama new
- LM Studio
- Jan
- vLLM
How to use KvcHub/KaiLu3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KvcHub/KaiLu3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KvcHub/KaiLu3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KvcHub/KaiLu3
- SGLang
How to use KvcHub/KaiLu3 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "KvcHub/KaiLu3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KvcHub/KaiLu3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "KvcHub/KaiLu3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KvcHub/KaiLu3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use KvcHub/KaiLu3 with Ollama:
ollama run hf.co/KvcHub/KaiLu3
- Unsloth Desktop
- Docker Model Runner
How to use KvcHub/KaiLu3 with Docker Model Runner:
docker model run hf.co/KvcHub/KaiLu3
- Lemonade
How to use KvcHub/KaiLu3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KvcHub/KaiLu3
Run and chat with the model
lemonade run user.KaiLu3-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Delete LICENSE
Browse files
LICENSE
DELETED
|
@@ -1,62 +0,0 @@
|
|
| 1 |
-
KaiLu 3 License
|
| 2 |
-
Version 1.0, November 2026
|
| 3 |
-
Copyright (c) 2026 KVC Hub. All rights reserved except as granted below.
|
| 4 |
-
|
| 5 |
-
In short: KaiLu 3 is free for personal, non-commercial use. Any business or
|
| 6 |
-
commercial use needs written permission from KVC Hub first.
|
| 7 |
-
|
| 8 |
-
1. What this license covers
|
| 9 |
-
"KaiLu 3" means the model weights, tokenizer, configuration files and
|
| 10 |
-
documentation that KVC Hub publishes under this license, and any version
|
| 11 |
-
made from them, including fine-tuned, merged, quantized, distilled or
|
| 12 |
-
converted versions ("Derivatives").
|
| 13 |
-
|
| 14 |
-
2. Free personal use
|
| 15 |
-
You may download, run, study, modify and fine-tune KaiLu 3 free of charge
|
| 16 |
-
for personal, non-commercial purposes. This includes hobby projects,
|
| 17 |
-
learning, teaching, and non-commercial research.
|
| 18 |
-
|
| 19 |
-
3. Sharing
|
| 20 |
-
You may share KaiLu 3 or your Derivatives for non-commercial purposes only,
|
| 21 |
-
and only if you:
|
| 22 |
-
a. include a copy of this license;
|
| 23 |
-
b. credit "KaiLu 3 by KVC Hub" with a link to https://kvchub.com; and
|
| 24 |
-
c. clearly say if you changed it.
|
| 25 |
-
Derivatives stay under this license.
|
| 26 |
-
|
| 27 |
-
4. Business use needs permission
|
| 28 |
-
Commercial use of KaiLu 3 or its Derivatives is not allowed without a
|
| 29 |
-
separate written agreement with KVC Hub, made before the use starts.
|
| 30 |
-
Commercial use includes, for example:
|
| 31 |
-
a. using it in, or to build, any product or service that is sold, licensed,
|
| 32 |
-
subscribed to, or earns money in any way, including through ads;
|
| 33 |
-
b. offering it to others through an API, app or hosted service for money;
|
| 34 |
-
c. using it in the work of a company or organization for business purposes;
|
| 35 |
-
d. using it to do paid work for clients.
|
| 36 |
-
To ask for permission, contact KVC Hub through https://kvchub.com.
|
| 37 |
-
|
| 38 |
-
5. Your outputs
|
| 39 |
-
KVC Hub claims no rights in text you create with KaiLu 3 while using it
|
| 40 |
-
as this license allows.
|
| 41 |
-
|
| 42 |
-
6. Responsible use
|
| 43 |
-
You are responsible for how you use KaiLu 3 and what it produces. You must
|
| 44 |
-
not use it to break any law or to harm other people.
|
| 45 |
-
|
| 46 |
-
7. Other licenses
|
| 47 |
-
KaiLu 3 learned from third-party datasets listed in its model card. Those
|
| 48 |
-
datasets keep their own licenses, and this license grants no rights to them.
|
| 49 |
-
|
| 50 |
-
8. No warranty
|
| 51 |
-
KaiLu 3 is provided "as is", without warranties of any kind, express or
|
| 52 |
-
implied, including fitness for a particular purpose and accuracy. It can
|
| 53 |
-
make mistakes; check its answers before relying on them.
|
| 54 |
-
|
| 55 |
-
9. Limitation of liability
|
| 56 |
-
To the fullest extent the law allows, KVC Hub is not liable for any damages
|
| 57 |
-
or losses arising from the use of, or inability to use, KaiLu 3.
|
| 58 |
-
|
| 59 |
-
10. Ending of rights
|
| 60 |
-
If you break this license, your rights under it end automatically.
|
| 61 |
-
KVC Hub may publish new versions of this license; the version that came
|
| 62 |
-
with your copy of KaiLu 3 applies to that copy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|