Instructions to use BH-Language-AI/bh-llm-basic-1-9b 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 BH-Language-AI/bh-llm-basic-1-9b 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 BH-Language-AI/bh-llm-basic-1-9b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-llm-basic-1-9b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf BH-Language-AI/bh-llm-basic-1-9b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-llm-basic-1-9b
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 BH-Language-AI/bh-llm-basic-1-9b # Run inference directly in the terminal: ./build/bin/llama cli -hf BH-Language-AI/bh-llm-basic-1-9b
Use Docker
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-9b
- Llama new
- LM Studio
- Jan
- vLLM
How to use BH-Language-AI/bh-llm-basic-1-9b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BH-Language-AI/bh-llm-basic-1-9b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BH-Language-AI/bh-llm-basic-1-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-9b
- Ollama
How to use BH-Language-AI/bh-llm-basic-1-9b with Ollama:
ollama run hf.co/BH-Language-AI/bh-llm-basic-1-9b
- Unsloth Desktop
- Pi
How to use BH-Language-AI/bh-llm-basic-1-9b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-llm-basic-1-9b
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "BH-Language-AI/bh-llm-basic-1-9b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use BH-Language-AI/bh-llm-basic-1-9b with Docker Model Runner:
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-9b
- Lemonade
How to use BH-Language-AI/bh-llm-basic-1-9b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BH-Language-AI/bh-llm-basic-1-9b
Run and chat with the model
lemonade run user.bh-llm-basic-1-9b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use BH-Language-AI/bh-llm-basic-1-9b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-llm-basic-1-9b
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default BH-Language-AI/bh-llm-basic-1-9b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use BH-Language-AI/bh-llm-basic-1-9b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-llm-basic-1-9b
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "BH-Language-AI/bh-llm-basic-1-9b" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Configure Hermes
# Install Hermes:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup# Point Hermes at the local server:
hermes config set model.provider custom
hermes config set model.base_url http://127.0.0.1:9931/v1
hermes config set model.default BH-Language-AI/bh-llm-basic-1-9bRun Hermes
hermes
π§ BH-LLM-Basic-1-9B v2.0
Za Ε‘ta se koristi
NajjaΔi bosanski agent model (bs/hr/sr/en) β full bf16 + Q8. Loop-produkcija: tool 0.912, task_success 0.952, safety 1.0.
BH-LLM-Basic-1-9B v2.0 je produkcijski function-calling model izveden iz Qwen/Qwen3.5-9B (Apache-2.0). Repo sadrΕΎi punu bf16 fuziju v08 (model.safetensors, 18.8GB β joint08 adapter spojen u bazu, za vLLM/TGI/transformerse) i Q8 joint08 (model-q8-joint08.gguf β produkcijski default za CPU, freeze potvrΔen 2026-11-22) plus Q8 gold06 backup. Na AgentMujo-Bench loopu (63 sluΔaja, produkcijska metrika) joint08 postiΕΎe tool 0.912, strict 0.873, task_success 0.952, safety 1.0; single-shot gate: tool 0.867. Puna v08 na opΔim mjerama: BS golden 79.1%, BS-Eval v1 (400) 72.75%, EN golden 96.7%, tool bench (72) 98.6%. Svi post-joint08 runovi (joint09β15, DPO+SFT mikro-delta) REJECT β nijedan ne drΕΎi tool preciznost. Pripada kolekciji BH-LLM-Basic. Format je <tool_call> XML; dialect-dense SFT probio plafon β format radi i pod default production promptom.
Benchmark
Produkcijska metrika = scored agent loop (63 sluΔaja); single-shot gate je pesimistiΔan za safety.
| Metrika | 2B r6 SFT | 4B v0.4-DPO | 9B joint08 v2.0 (ovaj repo) | 9B gold06 v1.0 (backup) |
|---|---|---|---|---|
| tool_selection (loop) | 0.8 | 1.0 | 0.912 | 0.667 |
| strict / task_success | β | β | 0.873 / 0.952 | β |
| argument_accuracy | 0.846 | 0.962 | 0.846 | 0.692 |
| safety (loop) | 1.0 | 1.0 | 1.0 | 1.0 |
Puna v08 (isti harness, 22.11.2026):
| metrika | v08 (ovaj model.safetensors) |
v06 | Qwen3.5-9B base |
|---|---|---|---|
| BS golden (43) | 79,1 % | 72,1 % | 74,4 % |
| BS-Eval v1 (400) | 72,75 % | 72,0 % | 72,5 % |
| EN golden (30) | 96,7 % | 93,3 % | 96,7 % |
| tool bench (72) | 98,6 % | 100,0 % | 97,2 % |
| GSM8K strict | 0,845 | 0,925 | 0,790 |
| IFEval p-strict | 0,730 | 0,795 | 0,830 |
Poznata ograniΔenja: conf 0.8 < 2B r6 0.9; think-profil nije dio releasea; single-shot safety gate 0.636 (loop-mjerena safety 1.0 je mjerodavna).
Upotreba
from transformers import AutoModelForCausalLM, AutoTokenizer
mid = "BH-Language-AI/bh-llm-basic-1-9b"
tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype="bfloat16", device_map="auto", trust_remote_code=True)
vLLM: --model BH-Language-AI/bh-llm-basic-1-9b --trust-remote-code. Q8 lokalno: model-q8-joint08.gguf (gold06 backup uz njega).
Trening
- Baza:
Qwen/Qwen3.5-9B@c20223623(teΕΎine se NE re-uploadaju) Β· Apache-2.0 - SFT joint01β08 (dialect-dense, LUMI MI250X) + DPO faze; freeze joint08 potvrΔen 2026-11-22
- Fuzija:
peft.merge_and_unloadu bazu (puni safetensors, bez PEFT-a) - Kvantizacija: llama.cpp Q8_0 (~9.5GB po fajlu)
- Sirovi rezultati i lineage: framework repozitorij (
benchmark/results_agentloop_9bjoint08.json, joint09β15 REJECT log)
OgraniΔenja
- Agent model (
<tool_call>XML), ne opΔi chat model. - conf 0.8 β verifikacijski korak u loopu obavezan za kritiΔne akcije.
- Think-profil nije dio releasea; terminal je fallback, Policy Engine obavezan.
- NajveΔi model kolekcije β za edge/CPU koristiti 2B/4B Q8.
BH-LLM-Basic Β· Kolektiv d.o.o. + Gamatrade d.o.o. Β· xnetba@gmail.com Β· Pravilo: bez fabriciranja, svaka brojka iz stvarnog runa.
Povezani modeli / Related models
- Base / polazni model: alphaedge-ai/Qwen3.5-2B-bos-32768
- bh-llm-basic-1-2b
- bh-llm-basic-1-32b
- bh-llm-basic-1-4b
Evaluation and citation
The GUI-grounding benchmark behind our computer-use line is published with per-item predictions and a scorer:
cua β ScreenSpot-Pro 1,355/1,581 = 85.71 %, DOI 10.5281/zenodo.24732632
(repository: https://github.com/gamai-io/cua).
Signed-action evidence for agents: gama-mandate 1.0.58, DOI
10.5281/zenodo.24732646.
Every benchmark number we publish carries a command, a file or the word card-reported; numbers we could not
reproduce are listed as withdrawn in cua/CLAIMS.md.
- Downloads last month
- 2,224
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf BH-Language-AI/bh-llm-basic-1-9b