Text Generation
Transformers
Safetensors
English
qwen2
qwen2.5
qwen2.5-coder
sakthai
house-of-sak
browser-automation
web-agent
tool-calling
function-calling
tool-use
agent
code-generation
finetuned
finetune
sft
merged
conversational
Eval Results (legacy)
Eval Results
text-generation-inference
Instructions to use Nanthasit/sakthai-coder-browser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nanthasit/sakthai-coder-browser with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nanthasit/sakthai-coder-browser") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Nanthasit/sakthai-coder-browser") model = AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-coder-browser", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Nanthasit/sakthai-coder-browser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nanthasit/sakthai-coder-browser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nanthasit/sakthai-coder-browser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nanthasit/sakthai-coder-browser
- SGLang
How to use Nanthasit/sakthai-coder-browser 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 "Nanthasit/sakthai-coder-browser" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nanthasit/sakthai-coder-browser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Nanthasit/sakthai-coder-browser" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nanthasit/sakthai-coder-browser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Nanthasit/sakthai-coder-browser with Docker Model Runner:
docker model run hf.co/Nanthasit/sakthai-coder-browser
Flag MODEL_BROKEN bias corruption on card (per .eval_results/benchmark-20260731_052122.yaml)
Browse files
README.md
CHANGED
|
@@ -55,6 +55,9 @@ inference:
|
|
| 55 |
<img src="https://img.shields.io/badge/base-Qwen2.5--Coder--1.5B--Instruct-blueviolet" alt="Base"/>
|
| 56 |
</p>
|
| 57 |
|
|
|
|
|
|
|
|
|
|
| 58 |
---
|
| 59 |
|
| 60 |
## Model Description
|
|
@@ -198,7 +201,14 @@ Training configuration mirrors the sibling [sakthai-coder-browser-lora](https://
|
|
| 198 |
| 2 | 42 | 0 | β | β | β |
|
| 199 |
| 3 | 1337 | 0 | β | β | β |
|
| 200 |
|
| 201 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
|
| 203 |
**Hosted inference:** not available β router probe returned 404 (`Not Found`) and the legacy api-inference host does not resolve (per the same eval YAML). No `model-index` is published because there are no verified scores yet; publishing one would be misleading.
|
| 204 |
|
|
@@ -259,7 +269,7 @@ One of **19 public models** in the [SakThai Model Family collection](https://hug
|
|
| 259 |
## Limitations
|
| 260 |
|
| 261 |
- **Text-only** β cannot see images or screenshots (use [sakthai-vision-7b](https://huggingface.co/Nanthasit/sakthai-vision-7b) for vision tasks)
|
| 262 |
-
- **
|
| 263 |
- **English only** β trained primarily on English web data
|
| 264 |
- **Context-limited** β best results with page content β€ 4K tokens per interaction
|
| 265 |
- **Not servable on HF serverless inference** β no provider supports this custom fine-tune (router 404 verified); run locally or via an Endpoint/GGUF
|
|
|
|
| 55 |
<img src="https://img.shields.io/badge/base-Qwen2.5--Coder--1.5B--Instruct-blueviolet" alt="Base"/>
|
| 56 |
</p>
|
| 57 |
|
| 58 |
+
> [!CAUTION]
|
| 59 |
+
> **β BROKEN β DO NOT DEPLOY (as of 2026-07-31)** β The merged weights in this repo are **corrupted by a faulty LoRA merge**: all 84 attention-projection bias tensors are non-zero while Qwen2 initializes these biases to ZERO (layer-0 `k_proj.bias` absmean 27.7 / max 354). Multi-trial inference probes produced only whitespace loops β 0 tool calls, 0 valid JSON at temp β€ 0.7. Full evidence: [`.eval_results/benchmark-20260731_052122.yaml`](https://huggingface.co/Nanthasit/sakthai-coder-browser/blob/main/.eval_results/benchmark-20260731_052122.yaml). The fault is in the **weights, not the GGUF conversion or the prompt format**. The [GGUF variant](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf) was converted from these same corrupted weights and must be re-checked; the [LoRA adapter](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora) needs a clean re-merge. Treat this repo as **not deployable** until re-merged and re-verified.
|
| 60 |
+
|
| 61 |
---
|
| 62 |
|
| 63 |
## Model Description
|
|
|
|
| 201 |
| 2 | 42 | 0 | β | β | β |
|
| 202 |
| 3 | 1337 | 0 | β | β | β |
|
| 203 |
|
| 204 |
+
**Verdict β MODEL_BROKEN (bias corruption):** the repo's own eval YAML (updated 2026-07-31 05:50 UTC) includes **weight inspection** of `model.safetensors` that proves the fault is in the weights, not the harness:
|
| 205 |
+
|
| 206 |
+
- Qwen2 initializes attention-projection biases to **zero**; this merge left **all 84 bias tensors non-zero** (absmean > 0.01), e.g. layer-0 `k_proj.bias` absmean **27.7** / max **354**, layer-0 `q_proj.bias` absmean 1.17
|
| 207 |
+
- Degenerate generation at temp β€ 0.7 on all 3 seeds β **whitespace loops** (150 newline tokens, 0 tool calls, 0 valid JSON); only at temp 1.5 did the model emit `Hi` on a trivial prompt
|
| 208 |
+
- GGUF tensor layout is structurally identical to the working `sakthai-plus-1.5b` GGUF (338 tensors, same names) β the fault is in the **merged weights**, not the conversion
|
| 209 |
+
- No NaN present; `embed_tokens` is normal (absmean 0.0136) β corruption is isolated to the attention biases
|
| 210 |
+
|
| 211 |
+
**Recommended fix:** re-merge the LoRA adapter into `Qwen2.5-Coder-1.5B-Instruct` with correct bias handling (do not write adapter-state biases into the base where Qwen2 expects zeros), re-run the multi-trial probe, and update this card. Until then, this repo is **not deployable**.
|
| 212 |
|
| 213 |
**Hosted inference:** not available β router probe returned 404 (`Not Found`) and the legacy api-inference host does not resolve (per the same eval YAML). No `model-index` is published because there are no verified scores yet; publishing one would be misleading.
|
| 214 |
|
|
|
|
| 269 |
## Limitations
|
| 270 |
|
| 271 |
- **Text-only** β cannot see images or screenshots (use [sakthai-vision-7b](https://huggingface.co/Nanthasit/sakthai-vision-7b) for vision tasks)
|
| 272 |
+
- **BROKEN weights** β all 84 attention bias tensors are corrupted by a faulty LoRA merge (see [Evaluation & Status](#evaluation--status)); do not deploy until re-merged and re-verified
|
| 273 |
- **English only** β trained primarily on English web data
|
| 274 |
- **Context-limited** β best results with page content β€ 4K tokens per interaction
|
| 275 |
- **Not servable on HF serverless inference** β no provider supports this custom fine-tune (router 404 verified); run locally or via an Endpoint/GGUF
|