Posts
integrating cline and nvidia
- Get link
- X
- Other Apps
We can easily use cline with nvidia which provide free ll model to you. How to do the integration? Lets gets stareted by clicking on cline extension and then goto Settings -> API configuration where we will configure our Provider. Make sure you select Nvidia and then provide the base URL:- 'https://integrate.api.nvidia.com/v1' And for the OpenAI Compatible API Key, please generate that from Nvidia portal Then you need to select a valid model - meaning there can be many model but if that model is not hosted in Nvidia, then you will get an error. In my case I am using nvidia/nemotron-3.5-lightning-30b-a3b This is much faster than the one provided by cline. That's it.
installing rea into your laptop and performing analysis
- Get link
- X
- Other Apps
To install the infamour REA (reverse engineer anything) we require node 24x. If you do not have that, then you will not get the prompt below and the installation will just quitely go ahead. I think many developer would be caught off guard thinking that it went well. When you have all the pre-req, you will get a prompt like this :- And then you will asked a few questions and choose your coding agent. Next, we will perform our first analysis by copying and pasting the following to my opencode. Download https://rea.tools/examples/notes-example.zip into a new example folder and unpack it. Use REA to find what happens when I click Export notes. Show where notes.csv is written, which fields it contains, and the relevant files and lines. And the final reesults here:-
otel tail sampling intro
- Get link
- X
- Other Apps
Otel tail sampling is a really powerful feature that allow us to configure what tracses, log and metrics that we're going to be pushing to Application insights or other monitoring tools. I had a go with filtering where I tried to send traces only for transactions greater than 2 secs. Soon I realized that is quite limiting and not usable because we need those for performance analysis. All we ever see is slowness in our system. Tail sampling is a more customizable feature that allow us to configure stuff like 1. send error traces always 2. send request that has high latency times 3. high value transactions to ensure we are able to trace it 4. we can also impose sampling percentage to send over like 10% or 50% These are the configuration that we keep on the otel collector. processors : tail_sampling : decision_wait : 10s # Time to wait for all spans of a trace to arrive num_trac...
google adk what will happened when we did not set the output key correctly in the template
- Get link
- X
- Other Apps
What will happen when we set output wrongly? pipeline_runner = LlmAgent ( name = "pipeline_runner" , model = MODEL , description = ( "Runs and coordinates the delivery pipeline from dev to test to " "pre-prod to prod, enforcing promotion gates between stages." ), instruction = RUNNER_INSTRUCTION , tools = [ run_pipeline_stage , get_stage_status , get_stage_logs ], output_key = "pipeline_run_report1111" , ) Generally this is what you will get:- raise KeyError(f'Context variable not found: `{var_name}`.') KeyError: 'Context variable not found: `pipeline_run_report`.' And it looksl like this:
google ADK agent output_schema tend to stop tool calling
- Get link
- X
- Other Apps
If we specify output_schema here for our agent and provide tools for it to call - you will notice that tool calling stops and other times it return default python model (using default values) :- pipeline_runner = LlmAgent ( name = "pipeline_runner" , model = MODEL , description = ( "Runs and coordinates the delivery pipeline from dev to test to " "pre-prod to prod, enforcing promotion gates between stages." ), instruction = RUNNER_INSTRUCTION , output_schema = PipelineRunReport , tools = [ run_pipeline_stage , get_stage_status , get_stage_logs ], output_key = "pipeline_run_report" , ) And this is our agentic setup:- pipeline_coordinator = SequentialAgent ( name = "pipeline_coordinator" , description = ( "Coordinates a pipeline run: execute stages, log what ...
kubeflow - fine tuning gemini with text-based dataset
- Get link
- X
- Other Apps
To fine tune gemini using kubeflow pipeline, we are using the following setup. There is no validation being configure here. You can easily added it tho. This will be a much more practical example of using kubeflow for :- from kfp import compiler, dsl # ---------------------------- edit these ---------------------------- PROJECT_ID = "project-id" LOCATION = "us-central1" BUCKET = "my-vertex-bucket-ai" # the bucket where you uploaded train.jsonl TRAIN_URI = f "gs:// {BUCKET} /text/train.jsonl" VALIDATION_URI = f "gs:// {BUCKET} /text/validation.jsonl" # set to "" to skip validation # Must be a Gemini model that supports supervised tuning. Check Google's # supported-models list, because it changes over time. SOURCE_MODEL = "gemini-2.5-flash" TUNED_MODEL_NAME = "ticket-classifier" PIPELINE_ROOT = f "gs:// {BUCKET} /pipeline-root" # where pipeline files are stored # ------------...
kubeflow condition and parallel tasks
- Get link
- X
- Other Apps
We are going to look at a simple kubeflow condition and parallel task when working with pipeline, This pipeline will greet pet owner and if there's pets we greet them too. This is our example components:- @component def sayhi ( name : str ) -> int : return 1 if name == "eric" else 2 @component def args_generator_op () -> list : return [{ "cats" : "1" , "dogs" : "2" }, { "cats" : "10" , "dogs" : "20" }] And this is our pipeline code:- import json from kfp import dsl @dsl.pipeline (name= "control" , pipeline_root=PIPELINE_ROOT) def pipeline (): name = sayhi(name= "greet-human" ) with dsl.If(name.output == 1 , "if has pets" ): cat_and_dog = args_generator_op() with dsl.Else( "if has pets" ): cat_and_dog = args_generator_op() with dsl.ParallelFor(cat_and_dog.output, name= "hi-to-pe...
kubeflow pipeline conditional and parallel task
- Get link
- X
- Other Apps
We can easily run ML pipeline using aiplatfor sdk using the following setup - notebook PROJECT_ID = "project-your-id" # @param {type:"string"} LOCATION = "us-central1" # @param {type:"string"} BUCKET_URI = f "gs://your-bucket-name- {PROJECT_ID} -unique" # @param {type:"string"} ! gcloud storage buckets create --location={LOCATION} --project={PROJECT_ID} {BUCKET_URI} SERVICE_ACCOUNT = "ml-pipeline-dev-sa" # @param {type:"string"} import sys IS_COLAB = "google.colab" in sys.modules if ( SERVICE_ACCOUNT == "" or SERVICE_ACCOUNT is None or SERVICE_ACCOUNT == "ml-pipeline-dev-sa" ): # Get your service account from gcloud if not IS_COLAB: shell_output = ! gcloud auth list 2 >/dev/null SERVICE_ACCOUNT = shell_output[ 2 ].replace( "*" , "" ).strip() if IS_COLAB: shell_output = !...
creating agentic pipeline image training
- Get link
- X
- Other Apps
We can create gcp agent platform pipeline using kubeflow or tensorflow SDK (this is for large dataset which span terrabytes). Kubeflow sdk are basically python script that you defines pipelines or components. @kfp.dsl.pipeline and @kfp.dsl.componet. Lets gets started by installing the required modules uv install kfp.dsl google-cloud-pipeline-components docker In its simplistic form, a pipeline can look like this (this will not work for Windows setup with docker) local_pipeline.py from kfp import dsl # Define a component to add two numbers. @ dsl . component def add ( a : int , b : int ) -> int : return a + b # Define a simple pipeline using the component. @ dsl . pipeline def addition_pipeline ( x : int , y : int , z : int ) -> int : task1 = add ( a = x , b = y ) task2 = add ( a = task1 . output , b = z ) return task2 . output And here is our runner from kfp import local fro...
sequential deployments when using exclusive lock checks
- Get link
- X
- Other Apps
Let's say you would like to ensure that you pipeline operates in a sequential manner - lockBehaviour option- sequential in a sense that if user A trigger pipeline at 12:00 and then another user B trigger pipeline at 12:01, user B will have to wait until user A completes. If user a cancel it, User B will have to wait until the cancellation completes. This can take a while before next pipeline start executing. There are 2 option available - sequential and runLatest. stages: - stage: A lockBehavior: sequential jobs: - job: Job steps: - script: Hey! If we do not specify, lockBehaviour is runLatest. Potential issue :- Queued runs waiting on a check can eventually time out, so B could fail if it waits too long behind other runs. Only runs targeting the same protected resource (for example, the same environment, repository, agent pool, service connection) compete for the lock.
gcp agentic platform creating mcp server
- Get link
- X
- Other Apps
In gcp agentic platform mcp server is an abtraction that allows your agent to call a actual MCP hosted elsewhere. It is not to create and deploy an MCP server. You can of course do that via Google Cloud run. Typically you can use the following code in your agentic runtime to call this MCP server import os from google.adk.integrations.agent_registry import AgentRegistry from google.auth import default from google.adk.agents import Agent from google.adk.models import Gemini from google.genai import types _ , project_id = default() LOCATION = os.environ.setdefault( "GOOGLE_CLOUD_LOCATION" , "us-central1" ) MCP_SERVER_NAME = os.environ.get( "MCP_SERVER_NAME" , "agentregistry-00000000-0000-0000-bd07-35253020786b" ) os.environ[ "GOOGLE_GENAI_USE_VERTEXAI" ] = "True" registry = AgentRegistry(project_id=project_id, location=LOCATION) mcp_toolset = registry.get_mcp_toolset( f "projects/project-id/locations/us-cen...