How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="pierretokns/qwen-0.5b-ccmcp-v1")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("pierretokns/qwen-0.5b-ccmcp-v1")
model = AutoModelForCausalLM.from_pretrained("pierretokns/qwen-0.5b-ccmcp-v1", 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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

qwen-0.5b-ccmcp-v1

Qwen 0.5B trained for Claude Chrome MCP tool calling

Attribution: Built with Qwen

Model Description

Fine-tuned for MCP (Model Context Protocol) tool calling with the Claude Chrome extension. The model generates tool calls for browser automation tasks.

Training Details

  • Base Model: Qwen/Qwen2.5-Coder-0.5B-Instruct
  • Method: LoRA fine-tuning on Apple Silicon (MLX)
  • Dataset: 1,782 MCP browser automation examples
  • Validation Loss: 0.083
  • Iterations: 500
  • Naming Convention: {base}-{size}-ccmcp-{version}
    • ccmcp = Claude Chrome MCP

Files

  • adapters.safetensors - LoRA adapter weights
  • adapter_config.json - LoRA configuration
  • qwen-0.5b-ccmcp-v1-f16.gguf - GGUF F16 format for llama.cpp/Ollama
  • checkpoints/ - Training checkpoints

Usage

With MLX (Apple Silicon)

from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler

model, tokenizer = load(
    "mlx-community/Qwen2.5-Coder-0.5B-Instruct-4bit",
    adapter_path="pierretokns/qwen-0.5b-ccmcp-v1"
)

messages = [
    {"role": "system", "content": "You are a browser automation assistant with MCP tools."},
    {"role": "user", "content": "Go to google.com"}
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
sampler = make_sampler(temp=0.1)

response = generate(model, tokenizer, prompt=prompt, max_tokens=150, sampler=sampler)
print(response)

With Ollama

# Download GGUF from this repo
# Create Modelfile:
cat > Modelfile << 'EOF'
FROM ./qwen-0.5b-ccmcp-v1-f16.gguf
PARAMETER num_ctx 8192
PARAMETER temperature 0.1
SYSTEM "You are a browser automation assistant with MCP tools."
EOF

# Create and run
ollama create qwen-0.5b-ccmcp-v1 -f Modelfile
ollama run qwen-0.5b-ccmcp-v1 "Go to google.com"

With Claude Code + Ollama

ANTHROPIC_BASE_URL=http://localhost:11434 \
ANTHROPIC_AUTH_TOKEN=ollama \
ANTHROPIC_API_KEY=ollama \
claude --model qwen-0.5b-ccmcp-v1

MCP Tools

The model was trained on 16 MCP browser automation tools: navigate, read_page, find, computer, form_input, get_page_text, screenshot, javascript_tool, tabs_context_mcp, tabs_create_mcp, gif_creator, upload_image, read_console_messages, read_network_requests, shortcuts_list, shortcuts_execute

License

This model is licensed under the Apache 2.0 License.

Downloads last month
76
Safetensors
Model size
0.5B params
Tensor type
F16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
Input a message to start chatting with pierretokns/qwen-0.5b-ccmcp-v1.

Model tree for pierretokns/qwen-0.5b-ccmcp-v1

Adapter
(52)
this model