Downloads · 30 days
0
cagataydev/qwen3-strands-adapter
qwen3-strands-adapter is a text generation model from cagataydev. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
LoRA adapter that teaches Qwen3-1.7B-4bit comprehensive knowledge of the Strands Agents SDK - without breaking tool calling capabilities.
Downloads · 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
39.9 MB
Likes
1
Public
Click a slice to open those files.
.safetensors59.8 MB · 100%
From the Hugging Face model README
LoRA adapter that teaches Qwen3-1.7B-4bit comprehensive knowledge of the Strands Agents SDK - without breaking tool calling capabilities.
Transforms base Qwen3-1.7B into a Strands SDK expert that can:
| Metric | Base Model | Trained Model |
|---|---|---|
| Strands Knowledge | 0/10 (hallucinates) | 10/10 (accurate) |
| Tool Calling | Works | ✅ 100% preserved |
| Training Time | - | 14 minutes |
| Adapter Size | - | 19MB |
pip install strands-agents strands-mlx
from strands import Agent
from strands_mlx import MLXModel
# Load base model + this adapter
model = MLXModel(
model_id="mlx-community/Qwen3-1.7B-4bit",
adapter_path="cagataycali/qwen3-strands-adapter" # Your HF repo
)
agent = Agent(model=model)
# Now it knows Strands!
agent("How do I create a Strands tool?")
# → Accurate answer with working code examples
agent("What model providers does Strands support?")
# → Complete list: Bedrock, Anthropic, OpenAI, Ollama, MLX, etc.
Dataset:
Training Configuration:
Key Training Strategy:
mask_prompt=True - Only train on assistant completionsfrom strands import Agent
from strands_mlx import MLXModel
model = MLXModel(
model_id="mlx-community/Qwen3-1.7B-4bit",
adapter_path="cagataycali/qwen3-strands-adapter"
)
# Tool calling still works perfectly!
agent = Agent(
model=model,
tools=["calculator", "shell", "file_read"]
)
agent("Calculate 15 * 7 and explain Strands")
# → Uses calculator AND provides Strands knowledge
# Load different adapters for different domains
strands_model = MLXModel(
"mlx-community/Qwen3-1.7B-4bit",
adapter_path="cagataycali/qwen3-strands-adapter"
)
coding_model = MLXModel(
"mlx-community/Qwen3-1.7B-4bit",
adapter_path="your-coding-adapter"
)
The adapter was trained on comprehensive Strands documentation covering:
Installation & Setup
Core Concepts
Model Providers
Advanced Features
Want to create your own domain-specific adapter? Here's how:
from strands import Agent
from strands_mlx import MLXModel, MLXSessionManager
from strands_mlx.tools import mlx_trainer, dataset_splitter
# 1. Collect training data
session = MLXSessionManager(session_id="my_domain")
model = MLXModel("mlx-community/Qwen3-1.7B-4bit")
agent = Agent(model=model, session_manager=session)
# Have conversations (100-200 examples recommended)
agent("Teach me about X")
# Data auto-saved to ~/.strands/mlx_training_data/my_domain.jsonl
# 2. Split dataset
dataset_splitter(
input_path="~/.strands/mlx_training_data/my_domain.jsonl",
train_ratio=0.8,
valid_ratio=0.1,
test_ratio=0.1
)
# 3. Train
mlx_trainer(
action="train",
config={
"model": "mlx-community/Qwen3-1.7B-4bit",
"data": "~/.strands/mlx_training_data/my_domain",
"iters": 200,
"learning_rate": 1e-5,
"batch_size": 1,
"grad_checkpoint": True
}
)
# 4. Use it!
trained = MLXModel("mlx-community/Qwen3-1.7B-4bit", adapter_path="./adapter")
Question: "How do I create a Strands agent with tools?"
Base Model Response:
I'll help you create a strands agent. Let me use the system_monitor tool...
<tool_call>{"name": "system_monitor", ...}</tool_call> ← Hallucinated tool
Trained Model Response:
from strands import Agent
agent = Agent(
system_prompt="You are a helpful assistant",
tools=["calculator", "shell", "file_read"]
)
agent("Calculate 2+2")
adapters.safetensors - Trained LoRA weightsadapter_config.json - LoRA configuration0000100_adapters.safetensors - Checkpoint at iter 1000000200_adapters.safetensors - Checkpoint at iter 200pip install strands-agents>=0.2.0 strands-mlx>=0.2.1
Same as base model (Apache 2.0)