Downloads · 30 days
14
20% of all-time downloads
rzagirov/mistral-7b-playwright-mcp
mistral-7b-playwright-mcp is a text generation model from rzagirov. Use it when you need the model to write or continue text. It is set up for peft.
A fine-tuned LoRA adapter for Mistral-7B-Instruct-v0.2, optimized for Playwright MCP (Model Context Protocol) tool-calling tasks. This model enables AI assistants to interact with web pages through browser automation…
Downloads · 30 days
14
20% of all-time downloads
All-time downloads
71
Public
Repo size
336 MB
Likes
2
Public
Click a slice to open those files.
.safetensors671 MB · 99%
From the Hugging Face model README
A fine-tuned LoRA adapter for Mistral-7B-Instruct-v0.2, optimized for Playwright MCP (Model Context Protocol) tool-calling tasks. This model enables AI assistants to interact with web pages through browser automation tools.
This is a LoRA (Low-Rank Adaptation) adapter fine-tuned on Mistral-7B-Instruct-v0.2 for Playwright MCP tool-calling tasks. The model has been trained to understand and generate appropriate tool calls for browser automation, including navigation, clicking, form filling, text extraction, and screenshot capture.
This model is designed to be used with Playwright MCP for browser automation tasks. It can:
hon from peft import PeftModel from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = AutoModelForCausalLM.from_pretrained( "mistralai/Mistral-7B-Instruct-v0.2", torch_dtype=torch.float16, device_map="auto" )
model = PeftModel.from_pretrained(base_model, "your-username/finetuned-mistral-7b-playwright-mcp") tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
messages = [ {"role": "system", "content": "You are an AI assistant with Playwright MCP tools."}, {"role": "user", "content": "Navigate to example.com and get the main heading"} ]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device) outputs = model.generate(**inputs, max_new_tokens=512) response = tokenizer.decode(outputs[0], skip_special_tokens=True)### Out-of-Scope Use
This model is specifically fine-tuned for Playwright MCP tool-calling. It may not perform well for:
Users should:
pip install transformers peft torch### Quick Start hon from peft import PeftModel from transformers import AutoModelForCausalLM, AutoTokenizer import torch
base_model = AutoModelForCausalLM.from_pretrained( "mistralai/Mistral-7B-Instruct-v0.2", torch_dtype=torch.float16, device_map="auto" ) model = PeftModel.from_pretrained(base_model, "your-username/finetuned-mistral-7b-playwright-mcp") tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")## Training Details
The model was fine-tuned on a dataset of Playwright MCP tool-calling examples in chat format, including:
Data format: JSONL files with chat messages (system, user, assistant roles).
["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]The model shows improved performance on Playwright MCP tool-calling tasks compared to the base model, with better understanding of tool call structure and browser automation workflows.