Skip to content

Instantly share code, notes, and snippets.

View igorzg's full-sized avatar
🎯
Focusing

igorzg igorzg

🎯
Focusing
View GitHub Profile
@igorzg
igorzg / patch_vllm.py
Last active June 25, 2026 22:49
patch_vllm.py – Build-time patches for AMD Radeon R9700 (gfx1201)
#!/usr/bin/env python3
"""
patch_vllm.py – Build-time patches for AMD Radeon R9700 (gfx1201)
Run this script from the root of a freshly cloned vLLM repository.
Every patch is idempotent: re-running the script on an already-patched
tree is safe (it will skip patches that are already applied).
"""
import os
@igorzg
igorzg / install.sh
Last active June 25, 2026 22:49
Rocm, vLLM config for R9700 architecture - configuring Shell Script For Fedora 44 Server Edition
#!/bin/bash
# ==============================================================================
# Fedora 44 Server Setup Script for vLLM with ROCm (RHEL 10 Repo Method)
# ==============================================================================
# Prerequisites:
# 1. Run this script as root or with sudo: sudo ./setup_vllm_rocm.sh
#
# Note: We use the official AMD RHEL 10 repositories which are binary-compatible
# with Fedora 44. We intentionally skip 'amdgpu-dkms' as Fedora's rapid kernel
# updates frequently break DKMS builds; the native 'amdgpu' driver in Fedora
WITH table_scans as (
SELECT relid,
tables.idx_scan + tables.seq_scan as all_scans,
( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes,
pg_relation_size(relid) as table_size
FROM pg_stat_user_tables as tables
),
all_writes as (
SELECT sum(writes) as total_writes
FROM table_scans
@igorzg
igorzg / fedora_gpu_passthroug_configs.md
Last active July 11, 2022 09:05
AMD Fedora GPU Passthrough

It's correct vfio configuration for GPU Passthrough, you will need to change ids to your GPU pci slot.

packages

sudo dnf group install virtualization

Verify IOMMU is enabled

dmesg | grep IOMMU
@igorzg
igorzg / debian_gpu_passthroug_configs.md
Last active July 8, 2022 10:39
AMD Ubuntu / Debian GPU Passthrough

It's correct vfio configuration for GPU Passthrough, you will need to change ids to your GPU pci slot.

packages

sudo apt-get install qemu-kvm qemu virt-manager virt-viewer libvirt-daemon-system libvirt-clients bridge-utils

Verify IOMMU is enabled

dmesg | grep IOMMU
@igorzg
igorzg / Microsoft.PowerShell_profile.ps1
Created November 18, 2021 21:35
Microsoft PowerShell profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@igorzg
igorzg / ohmyposh.json
Created November 18, 2021 21:01
Oh My Posh Theme
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
npm init
npm i --save-dev @types/node \
                 @types/jest \
                 @typescript-eslint/eslint-plugin \
                 @typescript-eslint/eslint-plugin-tslint \
                 @typescript-eslint/parser \
                 coveralls \
                 eslint \
 jest \
@igorzg
igorzg / CMakeLists.txt
Last active April 16, 2018 14:40
NodeJS native Cmake config - MacOS
cmake_minimum_required(VERSION 3.10)
project(NodeProject)
set(CMAKE_CXX_STANDARD 17)
file(READ $ENV{HOME}/.nvm/alias/default NODE_VER)
string(STRIP ${NODE_VER} NODE_VER)
set(LIBUV_VER "1.20.0")
set(LIBUV_PATH "/usr/local/Cellar/libuv/${LIBUV_VER}")
@igorzg
igorzg / AWS-Lambda-To-ElasticBeanStalk-Deployment-CodePipeLine.js
Created November 20, 2017 15:41
CodePipeline AWS Lambda to ElasticBeanstalk deployment
"use strict";
const util = require('util');
const AWS = require("aws-sdk");
/**
* Deploy env
* @param event
* @param context
* @param callback
* Example of params