Text Generation
PEFT
Safetensors
English
qwen2.5
qwen2.5-coder
code-generation
browser-automation
web-agent
tool-calling
function-calling
agent
conversational
lora
adapter
sft
trl
sakthai
house-of-sak
Eval Results (legacy)
Eval Results
Instructions to use Nanthasit/sakthai-coder-browser-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Nanthasit/sakthai-coder-browser-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "Nanthasit/sakthai-coder-browser-lora") - Notebooks
- Google Colab
- Kaggle
docs: restore dynamic downloads badge and dedupe header badges
Browse files
README.md
CHANGED
|
@@ -80,7 +80,6 @@ model-index:
|
|
| 80 |
<a href="https://huggingface.co/Nanthasit"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Nanthasit-6644cc" alt="Profile"/></a>
|
| 81 |
<a href="https://github.com/beer-sakthai"><img src="https://img.shields.io/badge/GitHub-beer--sakthai-181717?logo=github" alt="GitHub"/></a>
|
| 82 |
<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>
|
| 83 |
-
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhuggingface.co%2Fapi%2Fmodels%2FNanthasit%2Fsakthai-coder-browser-lora&query=%24.downloads&label=downloads&color=blue&cacheSeconds=3600" alt="Downloads"/>
|
| 84 |
<img src="https://img.shields.io/badge/PEFT-LoRA%20r16-blueviolet" alt="LoRA"/>
|
| 85 |
<img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License"/>
|
| 86 |
<img src="https://img.shields.io/badge/Qwen2.5-Coder-1.5B-orange" alt="Qwen2.5-Coder-1.5B"/>
|
|
@@ -117,17 +116,17 @@ For a quantized browser package, see [sakthai-coder-browser-gguf](https://huggin
|
|
| 117 |
This adapter emits browser actions as JSON tool calls. Provide a tools block in the system prompt; the model responds with a JSON call object instead of plain prose when an action is needed:
|
| 118 |
|
| 119 |
```text
|
| 120 |
-
browser_navigate({
|
| 121 |
```
|
| 122 |
|
| 123 |
Expected follow-up:
|
| 124 |
|
| 125 |
```text
|
| 126 |
-
browser_click({
|
| 127 |
```
|
| 128 |
|
| 129 |
```text
|
| 130 |
-
browser_extract({
|
| 131 |
```
|
| 132 |
|
| 133 |
> **Note:** Tool schemas are browser-centric, not weather/retrieval generic. Omitting the tools schema will make the model fall back to plain chat answers.
|
|
@@ -152,7 +151,7 @@ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct")
|
|
| 152 |
|
| 153 |
model = PeftModel.from_pretrained(base, "Nanthasit/sakthai-coder-browser-lora")
|
| 154 |
|
| 155 |
-
messages = [{
|
| 156 |
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 157 |
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.3, top_p=0.9)
|
| 158 |
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
|
|
@@ -254,18 +253,18 @@ If you use this adapter in your work, please cite both the base model and the fi
|
|
| 254 |
|
| 255 |
```bibtex
|
| 256 |
@article{qwen2.5-coder,
|
| 257 |
-
title={
|
| 258 |
-
author={
|
| 259 |
-
journal={
|
| 260 |
-
year={
|
| 261 |
}
|
| 262 |
|
| 263 |
-
@misc{
|
| 264 |
-
title={
|
| 265 |
-
author={
|
| 266 |
-
year={
|
| 267 |
-
howpublished={
|
| 268 |
-
note={
|
| 269 |
}
|
| 270 |
```
|
| 271 |
|
|
|
|
| 80 |
<a href="https://huggingface.co/Nanthasit"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Nanthasit-6644cc" alt="Profile"/></a>
|
| 81 |
<a href="https://github.com/beer-sakthai"><img src="https://img.shields.io/badge/GitHub-beer--sakthai-181717?logo=github" alt="GitHub"/></a>
|
| 82 |
<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>
|
|
|
|
| 83 |
<img src="https://img.shields.io/badge/PEFT-LoRA%20r16-blueviolet" alt="LoRA"/>
|
| 84 |
<img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License"/>
|
| 85 |
<img src="https://img.shields.io/badge/Qwen2.5-Coder-1.5B-orange" alt="Qwen2.5-Coder-1.5B"/>
|
|
|
|
| 116 |
This adapter emits browser actions as JSON tool calls. Provide a tools block in the system prompt; the model responds with a JSON call object instead of plain prose when an action is needed:
|
| 117 |
|
| 118 |
```text
|
| 119 |
+
browser_navigate({"url": "https://huggingface.co/models"})
|
| 120 |
```
|
| 121 |
|
| 122 |
Expected follow-up:
|
| 123 |
|
| 124 |
```text
|
| 125 |
+
browser_click({"selector": "a[href*='models']"})
|
| 126 |
```
|
| 127 |
|
| 128 |
```text
|
| 129 |
+
browser_extract({})
|
| 130 |
```
|
| 131 |
|
| 132 |
> **Note:** Tool schemas are browser-centric, not weather/retrieval generic. Omitting the tools schema will make the model fall back to plain chat answers.
|
|
|
|
| 151 |
|
| 152 |
model = PeftModel.from_pretrained(base, "Nanthasit/sakthai-coder-browser-lora")
|
| 153 |
|
| 154 |
+
messages = [{"role": "user", "content": "Search for the latest AI news and summarize the top story."}]
|
| 155 |
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 156 |
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.3, top_p=0.9)
|
| 157 |
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
|
|
|
|
| 253 |
|
| 254 |
```bibtex
|
| 255 |
@article{qwen2.5-coder,
|
| 256 |
+
title={Qwen2.5-Coder Technical Report},
|
| 257 |
+
author={Qwen Team},
|
| 258 |
+
journal={arXiv preprint},
|
| 259 |
+
year={2026}
|
| 260 |
}
|
| 261 |
|
| 262 |
+
@misc{sakthai-coder-browser-lora},
|
| 263 |
+
title={SakThai Coder Browser LoRA: Browser-Automation Adapter for Qwen2.5-Coder-1.5B},
|
| 264 |
+
author={Nanthasit, Beer and the SakThai Family Agents},
|
| 265 |
+
year={2026},
|
| 266 |
+
howpublished={\url{https://huggingface.co/Nanthasit/sakthai-coder-browser-lora}},
|
| 267 |
+
note={Apache 2.0; fine-tuned from Qwen/Qwen2.5-Coder-1.5B-Instruct via QLoRA}
|
| 268 |
}
|
| 269 |
```
|
| 270 |
|