Text Generation
Safetensors
GGUF
Bosnian
English
qwen3_5_text
bosnian
function-calling
ai-agents
bh-language-ai
conversational
Instructions to use BH-Language-AI/bh-llm-basic-1-2b 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-2b 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-2b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-llm-basic-1-2b
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-2b # Run inference directly in the terminal: llama cli -hf BH-Language-AI/bh-llm-basic-1-2b
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-2b # Run inference directly in the terminal: ./build/bin/llama cli -hf BH-Language-AI/bh-llm-basic-1-2b
Use Docker
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-2b
- Llama new
- LM Studio
- Jan
- vLLM
How to use BH-Language-AI/bh-llm-basic-1-2b 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-2b" # 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-2b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-2b
- Ollama
How to use BH-Language-AI/bh-llm-basic-1-2b with Ollama:
ollama run hf.co/BH-Language-AI/bh-llm-basic-1-2b
- Unsloth Desktop
- Pi
How to use BH-Language-AI/bh-llm-basic-1-2b 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-2b
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-2b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use BH-Language-AI/bh-llm-basic-1-2b with Docker Model Runner:
docker model run hf.co/BH-Language-AI/bh-llm-basic-1-2b
- Lemonade
How to use BH-Language-AI/bh-llm-basic-1-2b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BH-Language-AI/bh-llm-basic-1-2b
Run and chat with the model
lemonade run user.bh-llm-basic-1-2b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use BH-Language-AI/bh-llm-basic-1-2b 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-2b
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-2b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use BH-Language-AI/bh-llm-basic-1-2b 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-2b
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-2b" \ --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"
docs: English card (translated from Bosnian)
Browse files17 unmodified lines181920212221222324242526273 unmodified lines31323334343536375 unmodified lines43444546464748492 unmodified lines52535455555657585859606162636465666263646566676869707172737071727374757517 unmodified lines
## Za šta se koristi
> **Bosanski non-thinking agent model (ijekavica + en) — brz, mali, za CPU.**> Umjesto slobodnog chatta vraća mašinski čitljiv `<tool_call>` XML za Linux/dijagnostičke alate.> **Bosnian non‑thinking agent model (Ijekavian + en) — fast, small, CPU‑friendly.** > Instead of free‑form chat it returns machine‑readable `<tool_call>` XML for Linux/diagnostic tools.
BH-LLM-Basic-1-2B v1.0 je produkcijski function-calling model za bosanski jezik: trijaža zahtjeva, dijagnostika servisa, višekorakni agent loop s verifikacijom. Namijenjen AI agentima i poslovnim aplikacijama kojima treba pouzdan poziv alata na bosanskoj ijekavici, lokalno na CPU-u (Q8) ili GPU-u (bf16). Model je izveden iz `alphaedge-ai/Qwen3.5-2B-bos-32768` (bosanska adaptacija s vokabularom 32768) i objavljen u dvije datoteke: puna bf16 (`model.safetensors`, v0.5 joint-23 merge) i kvantizirana Q8 (`model-q8-2b-dpo01.gguf`, v1.0 DPO). Na AgentMujo-Bench v0.5 (48 slučajeva) Q8 v1.0 postiže tool_selection 0.833, safety 1.0, json 1.0, ijekavica 1.0; na v0.6 (63 slučaja) tool 0.824, safety 0.909. Pripada kolekciji [BH-LLM-Basic](https://huggingface.co/collections/BH-Language-AI/bh-llm-basic). Ovo NIJE opći chat model — za slobodan razgovor će odgovarati stilom alata, ne razgovora.BH-LLM-Basic-1-2B v1.0 is a production‑grade function‑calling model for the Bosnian language: request triage, service diagnostics, multi‑step agent loop with verification. Intended for AI agents and business applications that need reliable tool invocation in Bosnian Ijekavian, running locally on CPU (Q8) or GPU (bf16). The model is derived from `alphaedge-ai/Qwen3.5-2B-bos-32768` (Bosnian adaptation with a 32768‑token vocabulary) and released in two files: full bf16 (`model.safetensors`, v0.5 joint‑23 merge) and quantized Q8 (`model-q8-2b-dpo01.gguf`, v1.0 DPO). On AgentMujo‑Bench v0.5 (48 cases) Q8 v1.0 achieves tool_selection 0.833, safety 1.0, json 1.0, Ijekavian 1.0; on v0.6 (63 cases) tool 0.824, safety 0.909. Belongs to the [BH-LLM-Basic](https://huggingface.co/collections/BH-Language-AI/bh-llm-basic) collection. This is **NOT** a general‑purpose chat model — for open‑ended conversation it will respond in the style of tool calls, not dialogue.
3 unmodified lines
## Benchmark
AgentMujo-Bench v0.5 (48 slučajeva, greedy) i v0.6 (63 slučaja). Q8 v1.0 (dpo01); puna bf16 je v0.5 joint-23 merge.AgentMujo‑Bench v0.5 (48 cases, greedy) and v0.6 (63 cases). Q8 v1.0 (dpo01); full bf16 is v0.5 joint‑23 merge.
| Metrika (v0.5) | v0.4 | v0.5 full (ovaj `model.safetensors`) | **v1.0 Q8 (ovaj `.gguf`)** ||---|---|---|---|5 unmodified lines| refusal / safety | 1.0 / 1.0 | 0.8 / 1.0 | **1.0 / 1.0** || ijekavica / json | 1.0 / 1.0 | 1.0 / 1.0 | 1.0 / 1.0 |
v0.6: tool 0.824, safety 0.909. Lokalni neovisni run (`results_dpo01_prod_nonthink.json`, n≈30): tool 0.80, args 0.846, safety 1.0.v0.6: tool 0.824, safety 0.909. Local independent run (`results_dpo01_prod_nonthink.json`, n≈30): tool 0.80, args 0.846, safety 1.0.
## Upotreba
2 unmodified linesmid = "BH-Language-AI/bh-llm-basic-1-2b"tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True)model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype="auto", device_map="auto", trust_remote_code=True)# prompt: bosanska ijekavica + <tool_call><function=IME><parameter=P>..</parameter></function></tool_call># prompt: Bosnian Ijekavian + <tool_call><function=NAME><parameter=P>..</parameter></function></tool_call>```
Q8 lokalno (llama.cpp / Ollama): `model-q8-2b-dpo01.gguf` iz ovog repoa.Q8 locally (llama.cpp / Ollama): `model-q8-2b-dpo01.gguf` from this repo.
## Trening
- Baza: `alphaedge-ai/Qwen3.5-2B-bos-32768` @ `2f89b833` (težine se NE re-uploadaju) · Apache-2.0- SFT: LoRA r16/alpha 32, 7 modula, bf16 · FC → agentic → rebalance → joint-23 (v0.5)- DPO-01 (samo Q8 v1.0): dpo_9b_v05 mix (1000 tool + 1000 safety parova), loss 0.086, seed 42, LUMI- Puna bf16 DPO fuzija nije objavljena kao safetensors (planirano); Q8 v1.0 je mjerena produkcija- Sirovi rezultati: `benchmark/results_dpo01_prod_nonthink.json` u [framework repozitoriju](https://github.com/BH-Language-AI/agentmujo-training)- **Base:** `alphaedge-ai/Qwen3.5-2B-bos-32768` @ `2f89b833` (weights are NOT re‑uploaded) · Apache‑2.0- **SFT:** LoRA r16/alpha 32, 7 modules, bf16 · FC → agentic → rebalance → joint‑23 (v0.5)- **DPO‑01** (Q8 v1.0 only): dpo_9b_v05 mix (1000 tool + 1000 safety pairs), loss 0.086, seed 42, LUMI- Full bf16 DPO fusion has not been released as safetensors (planned); Q8 v1.0 is the measured production version- Raw results: `benchmark/results_dpo01_prod_nonthink.json` in the [framework repository](https://github.com/BH-Language-AI/agentmujo-training)
## Ograničenja
- Agent model, ne chat model: slobodan razgovor nije namjena; format je `<tool_call>` XML.- args 0.731 — složene argumente provjeriti verifikacijskim korakom u loopu.- Za veće potrebe: 4B/9B/32B članovi iste kolekcije.- Salamandra-2B SFT eksperiment (sal2b-sft01–03) ostaje istraživački, nije dio v1.0.- Agent model, not a chat model: open‑ended conversation is not the intended use; the output format is `<tool_call>` XML.- args 0.731 — complex arguments should be verified with a verification step in the loop.- For larger needs: 4B/9B/32B members of the same collection.- Salamandra‑2B SFT experiment (sal2b-sft01–03) remains research‑only, not part of v1.0.
*BH-LLM-Basic · Kolektiv d.o.o. + Gamatrade d.o.o. · xnetba@gmail.com · Pravilo: bez fabriciranja, svaka brojka iz stvarnog runa.**BH-LLM-Basic · Kolektiv Ltd. + Gamatrade Ltd. · xnetba@gmail.com · Rule: no fabrication, every figure comes from a real run.*README.md+17-17