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 files15 unmodified lines1617181920212210 unmodified lines333435363738395 unmodified lines454647484950515 unmodified lines575859606162631 unmodified line6566676869707115 unmodified lines# 🧠 BH-LLM-Basic-1-2B v1.0## Za šta se koristi> **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.10 unmodified linesAgentMujo‑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`)** ||---|---|---|---|| tool_selection | 0.667 | 0.800 | **0.833** || argument_accuracy | 0.731 | 0.808 | 0.731 |5 unmodified linesv0.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```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer5 unmodified linesQ8 locally (llama.cpp / Ollama): `model-q8-2b-dpo01.gguf` from this repo.## Trening- **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)1 unmodified line- 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, 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.15 unmodified lines1617181920212210 unmodified lines333435363738395 unmodified lines454647484950515 unmodified lines575859606162631 unmodified line6566676869707115 unmodified lines# 🧠 BH-LLM-Basic-1-2B v1.0## Intended Use> **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.10 unmodified linesAgentMujo‑Bench v0.5 (48 cases, greedy) and v0.6 (63 cases). Q8 v1.0 (dpo01); full bf16 is v0.5 joint‑23 merge.| Metric (v0.5) | v0.4 | v0.5 full (this `model.safetensors`) | **v1.0 Q8 (this `.gguf`)** ||---|---|---|---|| tool_selection | 0.667 | 0.800 | **0.833** || argument_accuracy | 0.731 | 0.808 | 0.731 |5 unmodified linesv0.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.## Usage```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer5 unmodified linesQ8 locally (llama.cpp / Ollama): `model-q8-2b-dpo01.gguf` from this repo.## 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)1 unmodified line- 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)## Limitations- 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.
README.md+5-5