Build AI Agents with LM Studio
Local models served via LM Studio
Available LM Studio Models
| Model | ID |
|---|---|
| Qwen 2.5 7B Instruct | qwen2.5-7b-instruct |
| Llama 3.2 3B Instruct | llama-3.2-3b-instruct |
Quick start code
agent.py
from agno.agent import Agent
from agno.models.lmstudio import LMStudio
agent = Agent(
name="My LM Studio Agent",
model=LMStudio(id="qwen2.5-7b-instruct"),
instructions=["You are a helpful assistant."],
markdown=True,
)
agent.print_response("Hello! What can you help me with?")Install: pip install agno Then set API_KEY