Nanthasit commited on
Commit
fe34583
·
verified ·
1 Parent(s): 17baf0d

feat: add model card front matter, usage, limitations, citation

Browse files
Files changed (1) hide show
  1. README.md +106 -0
README.md CHANGED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - qwen2.5
8
+ - qwen2.5-coder
9
+ - code-generation
10
+ - browser-automation
11
+ - web-agent
12
+ - tool-calling
13
+ - function-calling
14
+ - agent
15
+ - conversational
16
+ - lora
17
+ - peft
18
+ - adapter
19
+ - sft
20
+ - trl
21
+ - sakthai
22
+ - house-of-sak
23
+ - safetensors
24
+ base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
25
+ datasets:
26
+ - Nanthasit/sakthai-combined-v8
27
+ - Nanthasit/sakthai-combined-v11
28
+ - Nanthasit/sakthai-irrelevance-supplement
29
+ - Nanthasit/cycle-bench
30
+ inference:
31
+ parameters:
32
+ temperature: 0.3
33
+ max_new_tokens: 256
34
+ top_p: 0.9
35
+ ---
36
+
37
+ # SakThai Coder Browser LoRA
38
+
39
+ <p align="center">
40
+ <strong>LoRA adapter for browser-automation agent training — Qwen2.5-Coder-1.5B-Instruct</strong><br/>
41
+ <em>Part of the <a href="https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02">SakThai Model Family</a></em>
42
+ </p>
43
+
44
+ <p align="center">
45
+ <a href="https://huggingface.co/Nanthasit"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Nanthasit-6644cc" alt="Profile"/></a>
46
+ <a href="https://github.com/beer-sakthai"><img src="https://img.shields.io/badge/GitHub-beer--sakthai-181717?logo=github" alt="GitHub"/></a>
47
+ <a href="https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02"><img src="https://img.shields.io/badge/%F0%9F%8F%A0-SakThai%20Family-6644cc" alt="Collection"/></a>
48
+ <img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License"/>
49
+ <img src="https://img.shields.io/badge/task-browser%20automation-ff6b6b" alt="Task"/>
50
+ <img src="https://img.shields.io/badge/base-Qwen2.5--Coder--1.5B--Instruct-brightgreen" alt="Base Model"/>
51
+ </p>
52
+
53
+ ## Model Description
54
+
55
+ `sakthai-coder-browser-lora` is a **LoRA adapter** that teaches `Qwen/Qwen2.5-Coder-1.5B-Instruct` to act as a browser-automation agent. It is trained to emit structured tool calls for web navigation tasks, including click, scroll, search, extract, and form interaction. This repo does **not** include the base model weights; merge it onto the base model before inference.
56
+
57
+ ## Training Details
58
+
59
+ - **Base model:** Qwen/Qwen2.5-Coder-1.5B-Instruct
60
+ - **Adapter type:** LoRA
61
+ - **LoRA config:** r=16, alpha=32, dropout=0.05, rslora=true
62
+ - **Target modules:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
63
+ - **Datasets:** sakthai-combined-v8, sakthai-combined-v11, irrelevance-supplement, cycle-bench
64
+ - **Trainer:** TRL SFT
65
+ - **License:** apache-2.0
66
+
67
+ ## How to Use
68
+
69
+ ```python
70
+ from peft import PeftModel
71
+ from transformers import AutoModelForCausalLM, AutoTokenizer
72
+
73
+ base = "Qwen/Qwen2.5-Coder-1.5B-Instruct"
74
+ adapter = "Nanthasit/sakthai-coder-browser-lora"
75
+
76
+ tokenizer = AutoTokenizer.from_pretrained(base)
77
+ model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
78
+ model = PeftModel.from_pretrained(model, adapter)
79
+ model = model.merge_and_unload() # optional; or keep adapter separate for switching
80
+ ```
81
+
82
+ For zero-cost local inference, use the merged sibling `Nanthasit/sakthai-coder-browser` with `llama.cpp`.
83
+
84
+ ## Inference Tips
85
+
86
+ - Prefer merged weights (`sakthai-coder-browser`) for browser tasks.
87
+ - Use low temperature (0.1–0.3) to reduce hallucinated tool names.
88
+ - Always wrap function specs inside `<tools>` XML for reliable structured output.
89
+
90
+ ## Limitations
91
+
92
+ - Adapter-only repo: **cannot benchmark standalone**; always merge onto the base model.
93
+ - Web task success depends on DOM complexity and instruction phrasing.
94
+ - Tool-calling accuracy drops on multi-step plans longer than 5 actions.
95
+ - CPU inference is usable but slow; prefer GPU/TGI or llama.cpp GGUF for production.
96
+
97
+ ## Citation
98
+
99
+ ```bibtex
100
+ @misc{sakthai-coder-browser-lora,
101
+ title = {SakThai Coder Browser LoRA},
102
+ author = {Nanthasit},
103
+ year = {2026},
104
+ url = {https://huggingface.co/Nanthasit/sakthai-coder-browser-lora}
105
+ }
106
+ ```