Instructions to use BH-Language-AI/bh-llm-basic-1-4b 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-4b 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-4b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-llm-basic-1-4b
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-4b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-llm-basic-1-4b
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-4b # Run inference directly in the terminal: ./build/bin/llama cli -hf BH-Language-AI/bh-llm-basic-1-4b
Use Docker
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-4b
- Llama new
- LM Studio
- Jan
- vLLM
How to use BH-Language-AI/bh-llm-basic-1-4b 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-4b" # 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-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-4b
- Ollama
How to use BH-Language-AI/bh-llm-basic-1-4b with Ollama:
ollama run hf.co/BH-Language-AI/bh-llm-basic-1-4b
- Unsloth Desktop
- Pi
How to use BH-Language-AI/bh-llm-basic-1-4b 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-4b
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-4b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use BH-Language-AI/bh-llm-basic-1-4b with Docker Model Runner:
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-4b
- Lemonade
How to use BH-Language-AI/bh-llm-basic-1-4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BH-Language-AI/bh-llm-basic-1-4b
Run and chat with the model
lemonade run user.bh-llm-basic-1-4b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use BH-Language-AI/bh-llm-basic-1-4b 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-4b
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-4b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use BH-Language-AI/bh-llm-basic-1-4b 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-4b
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-4b" \ --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"

π§ BH-LLM-Basic-1-4B v1.0
Za Ε‘ta se koristi
Bosanski non-thinking agent model srednje veliΔine (ijekavica + en). Najbolji omjer kvaliteta i cijene: tool_selection 1.0 na Q8 v0.4-DPO.
BH-LLM-Basic-1-4B v1.0 je produkcijski function-calling model za bosanski jezik, izveden iz alphaedge-ai/Qwen3.5-4B-bos-32768 (vocab 32768, hidden 2560, 32 sloja). Repo sadrΕΎi dvije linije: Q8 v0.4-DPO (model-q8-4b-dpo01.gguf, ~3.9GB β preporuΔena produkcija: SFT joint-01β06 + DPO na 140 preferencijskih parova, Δisti gate 13W-25T-0L bez regresija) i punu bf16 v05 (model.safetensors, 7.3GB β novija SFT+DPO fuzija jt31/dpo03, slabija na strogoj metrici). Na AgentMujo-Bench v0.5 (48 sluΔajeva) Q8 v0.4 postiΕΎe tool_selection 1.0, args 0.962, multi_step 1.0, safety/refusal/json/notool 1.0. Pripada kolekciji BH-LLM-Basic. Ovo NIJE opΔi chat model β format je <tool_call> XML.
Benchmark
AgentMujo-Bench v0.5 (48 sluΔajeva, temp 0, nonthink). Usporedba nije direktna preko verzija scorera β obje tablice su izvorne s matiΔnih kartica.
Q8 v0.4-DPO (preporuΔeno):
| Metrika | 2B v0.5 | 4B v0.3 | 4B v0.4-DPO (ovaj .gguf) |
|---|---|---|---|
| tool_selection | 0.800 | 0.967 | 1.0 |
| argument_accuracy | 0.808 | 0.962 | 0.962 |
| confirmation_behavior | 0.8 | 1.0 | 1.0 |
| high_level_preference | 1.0 | 1.0 | 1.0 |
| multi_step | 0.833 | 0.857 | 1.0 |
| safety / refusal / json / notool | β | 1.0 | 1.0 |
Puna bf16 v05 (ovaj model.safetensors, 2026-11-12, drugi scorer):
| Metrika | v05 |
|---|---|
| tool_selection | 0.733 |
| argument_accuracy | 0.0 (FORMAT artefakt storog scorera: "\nnginx\n" vs "nginx" β model pogaΔa alat i vrijednosti) |
| json_validity / ijekavica | 1.0 / 1.0 |
| safety / refusal | 0.857 / 0.8 |
| confirmation / high_level / no_tool | 0.4 / 0.6 / 0.25 |
Kontaminacijska napomena (preuzeta s matiΔne kartice): dobici v0.4 na bench 010/035/048 su djelomiΔno memorizacija (S41 unijela doslovne promptove u trening) β Δisti gate 13W-25T-0L je bez tih sluΔajeva.
Upotreba
from transformers import AutoModelForCausalLM, AutoTokenizer
mid = "BH-Language-AI/bh-llm-basic-1-4b"
tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype="auto", device_map="auto", trust_remote_code=True)
Q8 lokalno (llama.cpp / Ollama, ~3.9GB): model-q8-4b-dpo01.gguf iz ovog repoa β jedan GGUF za oba profila (think: true/false).
Trening
- Baza:
alphaedge-ai/Qwen3.5-4B-bos-32768@34a62191(teΕΎine se NE re-uploadaju) Β· Apache-2.0 - v0.4-DPO: SFT joint-01β06 (mix v0.31, eval 0.7614) + DPO-01 (140 parova, beta 0.1, loss 0.67), dvostepeni merge, T4
- v05 full: LoRA SFT
4b-jt31-thunder(eval 0.84) + LoRA DPO4b-dpo03-thunder(160 parova), dvostepeni merge - Kvantizacija: llama.cpp
convert_hf_to_gguf.py --no-mtp+Q8_0(426 tenzora) - Sirovi rezultati i recepti: framework repozitorij
OgraniΔenja
- Agent model, ne chat model:
<tool_call>XML format, bosanska ijekavica. - v05 args-brojka se ne koristi za usporedbu (scorer artefakt, dokumentiran gore).
- Think-gate nije ponavljan β think produkcija ostaje v0.4-think.
- Za najveΔe potrebe: 9B/32B Δlanovi iste kolekcije.
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-9b
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
- 959
Model tree for BH-Language-AI/bh-llm-basic-1-4b
Base model
alphaedge-ai/Qwen3.5-4B-bos-32768