Text Generation
Transformers
ONNX
Safetensors
English
gemma3_text
text-generation-inference
unsloth
conversational
Instructions to use osanseviero/browser-actions with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use osanseviero/browser-actions with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="osanseviero/browser-actions") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("osanseviero/browser-actions") model = AutoModelForCausalLM.from_pretrained("osanseviero/browser-actions") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use osanseviero/browser-actions with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "osanseviero/browser-actions" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "osanseviero/browser-actions", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/osanseviero/browser-actions
- SGLang
How to use osanseviero/browser-actions 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 "osanseviero/browser-actions" \ --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": "osanseviero/browser-actions", "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 "osanseviero/browser-actions" \ --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": "osanseviero/browser-actions", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use osanseviero/browser-actions with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for osanseviero/browser-actions to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for osanseviero/browser-actions to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for osanseviero/browser-actions to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="osanseviero/browser-actions", max_seq_length=2048, ) - Docker Model Runner
How to use osanseviero/browser-actions with Docker Model Runner:
docker model run hf.co/osanseviero/browser-actions
Upload optimized ONNX model
#2
by Xenova HF Staff - opened
- config.json +26 -7
- onnx/model.onnx_data +1 -1
- onnx/model_fp16.onnx_data +1 -1
- onnx/model_q4.onnx_data +1 -1
- onnx/model_q4f16.onnx_data +1 -1
- tokenizer.json +2 -2
- tokenizer_config.json +0 -0
config.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
-
"
|
| 11 |
"eos_token_id": 106,
|
| 12 |
"final_logit_softcapping": null,
|
| 13 |
"head_dim": 256,
|
|
@@ -43,14 +43,33 @@
|
|
| 43 |
"pad_token_id": 0,
|
| 44 |
"query_pre_attn_scalar": 256,
|
| 45 |
"rms_norm_eps": 1e-06,
|
| 46 |
-
"
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
"sliding_window": 512,
|
| 50 |
-
"transformers_version": "
|
| 51 |
"unsloth_fixed": true,
|
| 52 |
"unsloth_version": "2026.1.2",
|
| 53 |
"use_bidirectional_attention": false,
|
| 54 |
"use_cache": true,
|
| 55 |
-
"vocab_size": 262144
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
+
"dtype": "float16",
|
| 11 |
"eos_token_id": 106,
|
| 12 |
"final_logit_softcapping": null,
|
| 13 |
"head_dim": 256,
|
|
|
|
| 43 |
"pad_token_id": 0,
|
| 44 |
"query_pre_attn_scalar": 256,
|
| 45 |
"rms_norm_eps": 1e-06,
|
| 46 |
+
"rope_parameters": {
|
| 47 |
+
"full_attention": {
|
| 48 |
+
"rope_theta": 1000000.0,
|
| 49 |
+
"rope_type": "default"
|
| 50 |
+
},
|
| 51 |
+
"sliding_attention": {
|
| 52 |
+
"rope_theta": 10000.0,
|
| 53 |
+
"rope_type": "default"
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
"sliding_window": 512,
|
| 57 |
+
"transformers_version": "5.0.0.dev0",
|
| 58 |
"unsloth_fixed": true,
|
| 59 |
"unsloth_version": "2026.1.2",
|
| 60 |
"use_bidirectional_attention": false,
|
| 61 |
"use_cache": true,
|
| 62 |
+
"vocab_size": 262144,
|
| 63 |
+
"transformers.js_config": {
|
| 64 |
+
"use_external_data_format": {
|
| 65 |
+
"model.onnx": 1,
|
| 66 |
+
"model_fp16.onnx": 1,
|
| 67 |
+
"model_q4.onnx": 1,
|
| 68 |
+
"model_q4f16.onnx": 1
|
| 69 |
+
},
|
| 70 |
+
"kv_cache_dtype": {
|
| 71 |
+
"q4f16": "float16",
|
| 72 |
+
"fp16": "float16"
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
}
|
onnx/model.onnx_data
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1139501568
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7d3a412f0da96eaa98edee828ce6c0dfebbbb9974485615ad14bab736526e08
|
| 3 |
size 1139501568
|
onnx/model_fp16.onnx_data
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 569862656
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e20f41ae1f64b827396fe58365d542d20f6d7f36e370701426446dfb59c153ee
|
| 3 |
size 569862656
|
onnx/model_q4.onnx_data
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 801090048
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abddf978d152ad7d57bc5f1a98504bdbd76ed72db808542b8149c369bb092faa
|
| 3 |
size 801090048
|
onnx/model_q4f16.onnx_data
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 425724416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fb1a1c91d28dac4c426e17df4b98127f04462a5e6ba23d639eb06a8c1bc3b6c
|
| 3 |
size 425724416
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fa00479b9f9d41a876e5cd1b369eea7af974fa0bdcc994c987972056d8ed5c2
|
| 3 |
+
size 20323384
|
tokenizer_config.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|