Run this model with HF Jobs
Run BH-Language-AI/bs-sft-375m-v4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/BH-Language-AI/bs-sft-375m-v4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BH-Language-AI/bs-sft-375m-v4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/BH-Language-AI/bs-sft-375m-v4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/BH-Language-AI/bs-sft-375m-v4. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use BH-Language-AI/bs-sft-375m-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BH-Language-AI/bs-sft-375m-v4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BH-Language-AI/bs-sft-375m-v4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BH-Language-AI/bs-sft-375m-v4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BH-Language-AI/bs-sft-375m-v4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BH-Language-AI/bs-sft-375m-v4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BH-Language-AI/bs-sft-375m-v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BH-Language-AI/bs-sft-375m-v4
- SGLang
How to use BH-Language-AI/bs-sft-375m-v4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "BH-Language-AI/bs-sft-375m-v4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BH-Language-AI/bs-sft-375m-v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "BH-Language-AI/bs-sft-375m-v4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BH-Language-AI/bs-sft-375m-v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BH-Language-AI/bs-sft-375m-v4 with Docker Model Runner:
docker model run hf.co/BH-Language-AI/bs-sft-375m-v4
bs-sft-375m-v4 — bosanski 375M, SFT sa uravnoteženim mixom
375M model (24 sloja, d=1024, vocab 65.536) treniran na 34.693 SFT primjera: tool_call (36 alata), classification, ijekavica, reading (cloze), diacritics, topic.
BosnianBench v3.0 (2.704 itema, per-item u gamai-io/cua):
| zadatak | n | skor | 95% CI |
|---|---|---|---|
| tool_call | 300 | 43,33 % | 38,0–48,7 |
| classification | 500 | 89,60 % | 87,0–92,2 |
| ijekavica | 400 | 74,75 % | 70,5–78,5 |
| reading | 600 | 0,44 % | 0,0–0,8 |
| topic_sib200 | 204 | 76,96 % | 71,1–82,4 |
| diacritics | 700 | 34,14 % | 30,7–37,6 |
| overall (ponderisano) | 2.704 | 47,18 | — |
Referenca: slučajan izbor = 5,99 · Qwen3-0.6B = 8,49 (v2 skala) · naš base 375M = 0,54.
Nije za: produkcijski chat, dugačke dokumente (reading ~0), jezike osim bs/en. Ograničenja: kontekst 1.024 tokena; reading (cloze na dugim tekstovima) je izvan dometa 375M; dijakritike tačne u ~1/3 slučajeva.
Tokenizer: bs-65k (vocab 65.536, <pad>=0, <s>=1, </s>=2, <unk>=3).
- Downloads last month
- -