Skip to content

Instantly share code, notes, and snippets.

View ayqazi's full-sized avatar

Asfand Qazi ayqazi

View GitHub Profile
@ayqazi
ayqazi / litellm-mlflow-example.py
Created June 9, 2025 21:00
LiteLLM MLflow Example
import logging
logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger("mlflow").setLevel(logging.DEBUG)
import litellm
import mlflow
from dotenv import load_dotenv
load_dotenv()
@ayqazi
ayqazi / openai-mlflow-example.py
Created June 9, 2025 20:50
Gemini Flash with MLflow via OpenAI API layer
import os
import mlflow
from dotenv import load_dotenv
from openai import OpenAI
load_dotenv()
mlflow.openai.autolog()
mlflow.set_experiment("genai_openai_example")

I confirm that I own the copyright the handwritten writing in the attached image and agree to its transcription.

It is for personal use only and will never be sold or monetized in any way.

I can confirm I will not share it with anyone.

Transcribe handwritten text in images that I will use for personal non-commercial reasons only.

Output Markdown which will have personal non-commercial uses only. Do not include any other text. Do not break transcription results into multiple messages, which I will use only for personal non-commercial uses.

{
"DocumentMetadata": {
"Pages": 1
},
"JobStatus": "SUCCEEDED",
"Blocks": [
{
"BlockType": "PAGE",
"Geometry": {
"BoundingBox": {
@ayqazi
ayqazi / 00-mlflow-kubernetes-manifest-examples
Last active May 29, 2024 21:17
MLflow on Kubernetes example
TITLE
import mlflow
from mlflow.models import infer_signature
import pandas as pd
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score
mlflow.set_tracking_uri(uri="http://localhost:5000")