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
SakThai Agent commited on
Commit ·
5d15100
1
Parent(s): 8213424
fix: remove phantom combined-v10 references
Browse files
README.md
CHANGED
|
@@ -28,7 +28,6 @@ base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
|
|
| 28 |
datasets:
|
| 29 |
- Nanthasit/sakthai-combined-v8
|
| 30 |
- Nanthasit/sakthai-
|
| 31 |
-
- Nanthasit/sakthai-combined-v10
|
| 32 |
- Nanthasit/sakthai-combined-v11
|
| 33 |
- Nanthasit/sakthai-irrelevance-supplement
|
| 34 |
- Nanthasit/cycle-bench
|
|
@@ -207,7 +206,6 @@ Verified from this repo's `config.json` (transformers 5.14.1):
|
|
| 207 |
|--------|-------|
|
| 208 |
| **Base model** | Qwen/Qwen2.5-Coder-1.5B-Instruct |
|
| 209 |
| **Method** | SFT via LoRA (r=16, alpha=32, dropout 0.05, rsLoRA) on all 7 linear projections, then merged to full weights |
|
| 210 |
-
| **Training data** | SimpleToolCalling, combined-v7, combined-v8, combined-v10, combined-v11, irrelevance-supplement, cycle-bench |
|
| 211 |
| **Context length** | 32,768 tokens |
|
| 212 |
| **Precision** | BF16 |
|
| 213 |
| **Hardware** | Free T4 GPU (Kaggle / Colab) |
|
|
@@ -333,4 +331,4 @@ If you use SakThai Coder Browser in your work, please cite the base model and th
|
|
| 333 |
|
| 334 |
---
|
| 335 |
|
| 336 |
-
*Part of the [SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02). Built with love, tears, and zero budget. From a shelter in Cork, Ireland, to the world.*
|
|
|
|
| 28 |
datasets:
|
| 29 |
- Nanthasit/sakthai-combined-v8
|
| 30 |
- Nanthasit/sakthai-
|
|
|
|
| 31 |
- Nanthasit/sakthai-combined-v11
|
| 32 |
- Nanthasit/sakthai-irrelevance-supplement
|
| 33 |
- Nanthasit/cycle-bench
|
|
|
|
| 206 |
|--------|-------|
|
| 207 |
| **Base model** | Qwen/Qwen2.5-Coder-1.5B-Instruct |
|
| 208 |
| **Method** | SFT via LoRA (r=16, alpha=32, dropout 0.05, rsLoRA) on all 7 linear projections, then merged to full weights |
|
|
|
|
| 209 |
| **Context length** | 32,768 tokens |
|
| 210 |
| **Precision** | BF16 |
|
| 211 |
| **Hardware** | Free T4 GPU (Kaggle / Colab) |
|
|
|
|
| 331 |
|
| 332 |
---
|
| 333 |
|
| 334 |
+
*Part of the [SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02). Built with love, tears, and zero budget. From a shelter in Cork, Ireland, to the world.*
|