commander using llm model openai/XHToken/Spark-X2.5-4B-GGUF

When running my commander app with XHToken/Spark-X2.5-4B-GGUF the result is pretty good. The model is able to follow instruction and extracts out the right container image to run and the commands too.  

This is my codebase for setting up my model XHToken/Spark-X2.5-4B-GGUF.



import os
from dotenv import load_dotenv
from google.adk.agents import LlmAgent
from google.adk.models.lite_llm import LiteLlm
from google.adk.tools import google_search


# Create a LiteLLM model pointing to your local server
model = LiteLlm(
    model="openai/XHToken/Spark-X2.5-4B-GGUF",
    api_base="http://localhost:8888/v1",  # Your local server
    api_key="sk-unsloth-4d0a1b198bd177a2a72ee1954585342a" ,
    temperature=0.0,
    extra_body={"chat_template_kwargs": {"enable_thinking": False}},
)

from app.prompt import ROOT_AGENT_INSTRUCTION
from app.tools.container_toolset import (
    container_image_finder_tool, run_container_command_tool
)
load_dotenv()

root_agent = LlmAgent(
    name="commander",
    description="Agent that read, understand and execute commands specified in a README or external HTTPS URL document.",
    model=model,
    instruction="You are a command execution agent. You are given a README.",
    tools=[container_image_finder_tool, run_container_command_tool]
)



And this is the output from my run using this model here - which is pretty good :-





Comments

Popular posts from this blog

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

llama cpp running it in google colab