Nanthasit commited on
Commit
28567ee
·
verified ·
1 Parent(s): 285a563

docs: restore dynamic downloads badge and dedupe header badges

Browse files
Files changed (1) hide show
  1. README.md +14 -15
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({{"url": "https://huggingface.co/models"}})
121
  ```
122
 
123
  Expected follow-up:
124
 
125
  ```text
126
- browser_click({{"selector": "a[href*='models']"}})
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 = [{{"role": "user", "content": "Search for the latest AI news and summarize the top story."}}]
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={{Qwen2.5-Coder Technical Report}},
258
- author={{Qwen Team}},
259
- journal={{arXiv preprint}},
260
- year={{2026}}
261
  }
262
 
263
- @misc{{sakthai-coder-browser-lora}},
264
- title={{SakThai Coder Browser LoRA: Browser-Automation Adapter for Qwen2.5-Coder-1.5B}},
265
- author={{Nanthasit, Beer and the SakThai Family Agents}},
266
- year={{2026}},
267
- howpublished={{\url{https://huggingface.co/Nanthasit/sakthai-coder-browser-lora}}},
268
- note={{Apache 2.0; fine-tuned from Qwen/Qwen2.5-Coder-1.5B-Instruct via QLoRA}}
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