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
Upload .eval_results/benchmark-20260731_052122.yaml with huggingface_hub
Browse files
.eval_results/benchmark-20260731_052122.yaml
CHANGED
|
@@ -1,75 +1,93 @@
|
|
| 1 |
model: Nanthasit/sakthai-coder-browser
|
| 2 |
-
benchmark_ts: '2026-07-31T05:
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
quantization: q4_k_m
|
| 5 |
prompt_type: tool_calling_browser_navigate_extract
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
Yo...'
|
| 16 |
-
trials: 3
|
| 17 |
-
total_time_s: 73.68
|
| 18 |
-
input_tokens: 244
|
| 19 |
-
avg_generation_tps: 16.47
|
| 20 |
-
has_tool_call_any: false
|
| 21 |
-
has_tool_call_all: false
|
| 22 |
-
has_valid_json_any: false
|
| 23 |
-
has_valid_json_all: false
|
| 24 |
-
has_correct_answer_any: false
|
| 25 |
-
has_correct_answer_all: false
|
| 26 |
-
trials_detail:
|
| 27 |
- seed: 7
|
| 28 |
-
|
|
|
|
| 29 |
output_length: 0
|
| 30 |
-
generation_tps: 12.7
|
| 31 |
-
prompt_tps: 36.1
|
| 32 |
has_tool_call: false
|
| 33 |
has_valid_json: false
|
| 34 |
has_correct_answer: false
|
| 35 |
-
|
| 36 |
-
has_browser_navigate: false
|
| 37 |
-
has_browser_extract: false
|
| 38 |
-
navigate_url_ok: false
|
| 39 |
-
tool_call_count: 0
|
| 40 |
-
response_preview: ''
|
| 41 |
- seed: 42
|
| 42 |
-
|
|
|
|
| 43 |
output_length: 0
|
| 44 |
-
generation_tps: 19.3
|
| 45 |
-
prompt_tps: 62.7
|
| 46 |
has_tool_call: false
|
| 47 |
has_valid_json: false
|
| 48 |
has_correct_answer: false
|
| 49 |
-
|
| 50 |
-
has_browser_navigate: false
|
| 51 |
-
has_browser_extract: false
|
| 52 |
-
navigate_url_ok: false
|
| 53 |
-
tool_call_count: 0
|
| 54 |
-
response_preview: ''
|
| 55 |
- seed: 1337
|
| 56 |
-
|
|
|
|
| 57 |
output_length: 0
|
| 58 |
-
generation_tps: 17.4
|
| 59 |
-
prompt_tps: 65.3
|
| 60 |
has_tool_call: false
|
| 61 |
has_valid_json: false
|
| 62 |
has_correct_answer: false
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
router_probe:
|
| 72 |
-
status:
|
| 73 |
-
error:
|
| 74 |
-
api_inference_probe:
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
model: Nanthasit/sakthai-coder-browser
|
| 2 |
+
benchmark_ts: '2026-07-31T05:50:33Z'
|
| 3 |
+
verdict: MODEL_BROKEN_BIAS_CORRUPTION
|
| 4 |
+
benchmark_valid: false
|
| 5 |
+
backend: llama.cpp-gguf-q4_k_m + source safetensors inspection
|
| 6 |
quantization: q4_k_m
|
| 7 |
prompt_type: tool_calling_browser_navigate_extract
|
| 8 |
+
summary: 'Model cannot perform tool calling: attention projection biases are catastrophically
|
| 9 |
+
corrupted by the LoRA merge (Qwen2 base initializes attn biases to ZERO; all 84
|
| 10 |
+
bias tensors here have absmean > 0.01, layer-0 k_proj absmean 27.7 / max 354). Degenerate
|
| 11 |
+
output: whitespace-loop at temp<=0.7 on all 3 seeds (0 tool calls, 0 valid JSON);
|
| 12 |
+
only at temp 1.5 does it emit any text (''Hi'' on a trivial prompt). GGUF tensor
|
| 13 |
+
layout is structurally identical to the working sakthai-plus-1.5b GGUF (338 tensors,
|
| 14 |
+
same names), so the fault is in the weights, not the conversion or the harness.'
|
| 15 |
+
trials:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
- seed: 7
|
| 17 |
+
temp: 0.2
|
| 18 |
+
output_tokens: 150
|
| 19 |
output_length: 0
|
|
|
|
|
|
|
| 20 |
has_tool_call: false
|
| 21 |
has_valid_json: false
|
| 22 |
has_correct_answer: false
|
| 23 |
+
note: whitespace-only generation (150 newline tokens), no tool call
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
- seed: 42
|
| 25 |
+
temp: 0.2
|
| 26 |
+
output_tokens: 150
|
| 27 |
output_length: 0
|
|
|
|
|
|
|
| 28 |
has_tool_call: false
|
| 29 |
has_valid_json: false
|
| 30 |
has_correct_answer: false
|
| 31 |
+
note: whitespace-only generation, no tool call
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
- seed: 1337
|
| 33 |
+
temp: 0.2
|
| 34 |
+
output_tokens: 150
|
| 35 |
output_length: 0
|
|
|
|
|
|
|
| 36 |
has_tool_call: false
|
| 37 |
has_valid_json: false
|
| 38 |
has_correct_answer: false
|
| 39 |
+
note: whitespace-only generation, no tool call
|
| 40 |
+
temperature_probe:
|
| 41 |
+
- temp: 0.2
|
| 42 |
+
prompt: full browser prompt
|
| 43 |
+
result: blank/whitespace loop
|
| 44 |
+
- temp: 0.4
|
| 45 |
+
prompt: full browser prompt
|
| 46 |
+
result: blank/whitespace loop
|
| 47 |
+
- temp: 0.7
|
| 48 |
+
prompt: full browser prompt
|
| 49 |
+
result: blank/whitespace loop
|
| 50 |
+
- temp: 1.5
|
| 51 |
+
prompt: Say hello in one word
|
| 52 |
+
result: generated 'Hi' then EOS
|
| 53 |
+
weight_inspection:
|
| 54 |
+
source: Nanthasit/sakthai-coder-browser model.safetensors (3.09 GB, 338 tensors,
|
| 55 |
+
1.54B params, no lm_head -> tied embeddings)
|
| 56 |
+
bias_tensors_total: 84
|
| 57 |
+
bias_tensors_with_absmean_gt_0_01: 84
|
| 58 |
+
qwen2_base_attn_bias_init: zero
|
| 59 |
+
nan_present: false
|
| 60 |
+
embed_tokens:
|
| 61 |
+
absmean: 0.0136
|
| 62 |
+
absmax: 0.295
|
| 63 |
+
normal: true
|
| 64 |
+
sample_corrupted_biases:
|
| 65 |
+
- tensor: model.layers.0.self_attn.k_proj.bias
|
| 66 |
+
absmean: 27.6991
|
| 67 |
+
absmax: 354.0
|
| 68 |
+
- tensor: model.layers.0.self_attn.q_proj.bias
|
| 69 |
+
absmean: 1.1716
|
| 70 |
+
absmax: 28.88
|
| 71 |
+
- tensor: model.layers.1.self_attn.k_proj.bias
|
| 72 |
+
absmean: 3.284
|
| 73 |
+
absmax: 111.0
|
| 74 |
+
- tensor: model.layers.1.self_attn.q_proj.bias
|
| 75 |
+
absmean: 0.5512
|
| 76 |
+
absmax: 10.62
|
| 77 |
+
- tensor: model.layers.10.self_attn.k_proj.bias
|
| 78 |
+
absmean: 0.3383
|
| 79 |
+
absmax: 6.62
|
| 80 |
+
- tensor: model.layers.14.self_attn.q_proj.bias
|
| 81 |
+
absmean: 0.5422
|
| 82 |
+
absmax: 13.31
|
| 83 |
+
conclusion: LoRA merge corrupted all attention biases; values 3-4 orders of magnitude
|
| 84 |
+
above base init.
|
| 85 |
router_probe:
|
| 86 |
+
status: 400
|
| 87 |
+
error: Model not supported by provider hf-inference
|
| 88 |
+
api_inference_probe: NXDOMAIN (api-inference.huggingface.co decommissioned)
|
| 89 |
+
recommendation: Re-merge sakthai-coder-browser LoRA WITHOUT bias corruption (check
|
| 90 |
+
adapter config target_modules / bias handling and merge_and_unload scaling), verify
|
| 91 |
+
attention biases are ~0 after merge, then re-convert GGUF and re-benchmark. Until
|
| 92 |
+
then the model is not usable for inference. Model card should carry a BROKEN-WEIGHTS
|
| 93 |
+
warning.
|