Text Generation
ONNX
Safetensors
GGUF
llama
kouman-ai
tree-ai-lab
cote-divoire
baoule
dioula
edge-ai
mobile
llama-cpp
conversational
imatrix
Instructions to use Tree-AI-lab/kouman-1.0-edge-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Tree-AI-lab/kouman-1.0-edge-1B 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 Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
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 Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
Use Docker
docker model run hf.co/Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Tree-AI-lab/kouman-1.0-edge-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tree-AI-lab/kouman-1.0-edge-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tree-AI-lab/kouman-1.0-edge-1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
- Ollama
How to use Tree-AI-lab/kouman-1.0-edge-1B with Ollama:
ollama run hf.co/Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Tree-AI-lab/kouman-1.0-edge-1B with Docker Model Runner:
docker model run hf.co/Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
- Lemonade
How to use Tree-AI-lab/kouman-1.0-edge-1B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Tree-AI-lab/kouman-1.0-edge-1B:Q4_K_M
Run and chat with the model
lemonade run user.kouman-1.0-edge-1B-Q4_K_M
List all available models
lemonade list
- Atomic Chat
How to use from
llama.cppInstall from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Tree-AI-lab/kouman-1.0-edge-1B:# Run inference directly in the terminal:
llama cli -hf Tree-AI-lab/kouman-1.0-edge-1B: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 Tree-AI-lab/kouman-1.0-edge-1B:# Run inference directly in the terminal:
./build/bin/llama cli -hf Tree-AI-lab/kouman-1.0-edge-1B:Use Docker
docker model run hf.co/Tree-AI-lab/kouman-1.0-edge-1B:Quick Links
🇨🇮📱 Kouman Edge 1B (Tree-AI-lab/kouman-edge-1b)
Kouman Edge 1B est le modèle d'intelligence artificielle mobile & hors-ligne (on-device) développé par Tree AI Lab (Côte d'Ivoire) sur une architecture Llama 3.2 1B (1,24B paramètres). Il parle et traduit 4 langues : Baoulé (bci), Dioula (dyu), Français (fr) et Anglais (en).
Ce dépôt réunit au même endroit :
- Le modèle Instruct 1B complet en
bfloat16(safetensors, natiftransformers/vLLM/Ollama, zérotrust_remote_code), - Toute la gamme GGUF
llama.cppdeQ8_0jusqu'àQ2_K, calibrée avec uneimatrix4 langues pour préserver le Baoulé et le Dioula sur smartphone.
📊 Performances CPT (~1,70B tokens, 6 488 steps WSD)
| Langue | Base Llama 3.2 1B (PPL) | Kouman Edge 1B CPT (PPL) | Gain |
|---|---|---|---|
🇨🇮 Baoulé (bci) |
20.74 | 2.90 | -17.84 (÷ 7,2×) |
🇨🇮 Dioula (dyu) |
19.58 | 2.25 | -17.33 (÷ 8,7×) |
🇫🇷 Français (fr) |
9.33 | 4.40 | -4.93 (0 % oubli) |
🇬🇧 Anglais (en) |
6.77 | 5.12 | -1.65 (0 % oubli) |
📦 Fichiers GGUF disponibles (llama.cpp • Q8_0 → Q2_K)
| Fichier GGUF | Quant | Taille | imatrix |
Usage recommandé |
|---|---|---|---|---|
kouman-edge-1b-Q8_0.gguf |
Q8_0 |
1.23 Go | — | Quasi sans perte (desktop / flagship 8+ Go RAM) |
kouman-edge-1b-Q6_K.gguf |
Q6_K |
974 Mo | ✅ | Qualité quasi-BF16, excellent compromis |
kouman-edge-1b-Q5_K_M.gguf |
Q5_K_M |
869 Mo | ✅ | Haute qualité (smartphones haut de gamme / PC) |
kouman-edge-1b-Q5_K_S.gguf |
Q5_K_S |
851 Mo | ✅ | Haute qualité compacte |
kouman-edge-1b-Q4_K_M.gguf |
Q4_K_M |
770 Mo | ✅ | ⭐ Recommandé mobile Android / iOS (équilibre qualité/vitesse) |
kouman-edge-1b-Q4_K_S.gguf |
Q4_K_S |
740 Mo | ✅ | Mobile compact 4 bits |
kouman-edge-1b-Q4_0.gguf |
Q4_0 |
737 Mo | ✅ | Mobile ultra-rapide CPU ARM (NEON / i8mm) |
kouman-edge-1b-Q3_K_M.gguf |
Q3_K_M |
659 Mo | ✅ | Smartphones entrée de gamme (4 Go RAM) |
kouman-edge-1b-Q3_K_S.gguf |
Q3_K_S |
612 Mo | ✅ | Très compact 3 bits |
kouman-edge-1b-Q2_K.gguf |
Q2_K |
554 Mo | ✅ | ⚠️ Expérimental 2 bits (dégradation attendue sur 1B — préférer Q3_K_M ou Q4_K_M) |
🚀 Utilisation rapide
Sur smartphone (Android / iOS hors-ligne)
- Téléchargez
kouman-edge-1b-Q4_K_M.gguf(recommandé) oukouman-edge-1b-Q3_K_M.ggufdans PocketPal AI, ChatterUI ou toute app basée surllama.cpp.
Avec llama.cpp
llama-cli -hf Tree-AI-lab/kouman-edge-1b:Q4_K_M -cnv -p "Tu es Kouman Edge 1B, assistant IA de Tree AI Lab."
Avec transformers (modèle Instruct BF16)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = 'Tree-AI-lab/kouman-edge-1b'
tok = AutoTokenizer.from_pretrained(repo)
mod = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map='auto')
prompt = tok.apply_chat_template([{'role': 'user', 'content': 'I ni sɔgɔma !'}], tokenize=False, add_generation_prompt=True)
ids = tok(prompt, return_tensors='pt', add_special_tokens=False).to(mod.device)
out = mod.generate(**ids, max_new_tokens=256)
print(tok.decode(out[0, ids['input_ids'].shape[1]:], skip_special_tokens=True))
- Downloads last month
- 983
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf Tree-AI-lab/kouman-1.0-edge-1B:# Run inference directly in the terminal: llama cli -hf Tree-AI-lab/kouman-1.0-edge-1B: