How to use from
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 "yeonjooooni/Gemma3-4B_WEASEL" \
    --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": "yeonjooooni/Gemma3-4B_WEASEL",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
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 "yeonjooooni/Gemma3-4B_WEASEL" \
        --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": "yeonjooooni/Gemma3-4B_WEASEL",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
Quick Links

Gemma3-4B_WEASEL

This model is a WEASEL fine-tuned variant of google/gemma-3-4b-it for web-agent style reasoning and action generation.

Model description

  • Base model: google/gemma-3-4b-it
  • Fine-tuning objective: web task solving with reasoning/action style supervision
  • Format: Hugging Face Transformers + Safetensors

Intended use

This model is intended for research on web-agent behavior, instruction following, and reasoning traces.

Training data

Fine-tuned on an AgentTrek-style web-agent dataset. If released separately, link it here: yeonjooooni/agenttrek-dataset

Limitations

  • May generate incorrect or unsafe browser actions
  • Reasoning traces do not guarantee factual correctness
  • Not evaluated for safety-critical use

Loading

from transformers import AutoProcessor, AutoModelForImageTextToText

model_id = "yeonjooooni/Gemma3-4B_WEASEL"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id)
Downloads last month
7
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for yeonjooooni/Gemma3-4B_WEASEL

Finetuned
(746)
this model

Dataset used to train yeonjooooni/Gemma3-4B_WEASEL

Collection including yeonjooooni/Gemma3-4B_WEASEL