Skip to content

Instantly share code, notes, and snippets.

View smellslikeml's full-sized avatar
📈

smellslikeml smellslikeml

📈
View GitHub Profile
@smellslikeml
smellslikeml / gist_landing_zone_standalone.md
Created July 5, 2026 03:40
Landing-zone-to-PR: shipping one focused PR per architectural cluster of gap-Issues, with cluster context preserved in the PR narrative

From surveying gaps to shipping the anchor

An earlier writeup (Findings from running remyxai-cli explore across 6 production repos) walked through what happens when you dispatch recent arxiv papers as draft integrations against a set of production repos: each paper hits the ranker, preflight identifies the extension point the paper needs, and Outrider opens an Issue naming what's missing. The by-product is a per-repo gap analysis — a catalog of the extension points those repos lack, and the papers currently blocked on them.

@smellslikeml
smellslikeml / autoresearch-gist.md
Last active July 4, 2026 17:32
Findings from running remyxai-cli autoresearch across 5 production repos — per-repo inventory of architectural extension points missing to receive recent AI methods

Findings from running remyxai-cli explore across 6 production repos

Recent AI research lands in existing codebases through specific extension points — modules, callbacks, or data-structure fields where a new method can plug in. Which extension points a repo provides determines which methods can be tried against it without a rewrite. We ran an agentic method-search loop that dispatches recent arxiv papers as draft integrations against 6 production repos; the by-product across 36 cycles was a per-repo inventory of the specific extension points those repos are missing.

The dispatch mode

Packaged as a CLI subcommand in remyxai-cli #46:

remyxai outrider explore --repo owner/name \
@smellslikeml
smellslikeml / v7_paired_analysis_gist.md
Last active June 30, 2026 23:16
Opus vs GLM-5.2 in a coding-agent pipeline — paired-run findings

GLM Tries, Opus Triages: Behavioral Differences in Research-to-Code Agents

A controlled comparison across 19 paired runs spanning 19 repository forks — 38 individual workflow executions total — running an identical paper-implementation pipeline (remyxai/outrider — Claude Code under the hood, with glm-5.2 routed at z.ai's Coding Plan endpoint vs default Opus). The pipeline ran in two modes that probe different parts of the workflow:

  • Selection-pass mode (n=9): no pin; each provider freely selects its own paper from the candidate pool. Exercises the full pipeline including selection + verification gates.
  • Pin-method mode (n=10): same paper pinned on each fork, both providers run their full chain on identical input. Isolates implementation-side behavior on a forced pick.

The aggregate verdict comes from the n=19 union; the two mode-specific breakdowns below show where the difference comes from.

Reproducing this

@smellslikeml
smellslikeml / app.py
Last active May 29, 2024 20:08
Example using custom LLM with Fast API
import torch
from fastapi import FastAPI, Request
from pydantic import BaseModel
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
model_name = "name of model"
prompt_template = """ ### Input: {} ### Response: {}"""
stop_token_ids = [0]
app = FastAPI()
@smellslikeml
smellslikeml / llm_request_aggregator.py
Created March 11, 2024 18:00
Uses NATS to aggregate responses from workers publishing LLM inference to the subject inference.requests
import asyncio
import nats
import uuid
async def aggregate_inferences(nats_url, request_subject, data, timeout=10):
nc = await nats.connect(nats_url)
responses = []
@smellslikeml
smellslikeml / llm_worker.py
Last active March 11, 2024 18:27
Uses NATS to publish responses of LLM inference to the subject inference.requests
# Launch nats-server
# wget https://huggingface.co/remyxai/stablelm-zephyr-3B_localmentor/resolve/main/ggml-model-q4_0.gguf -o stablelm-localmentor_2.gguf
import nats
import asyncio
from llama_cpp import Llama
async def llm_runner(nats_url, model_path, subject):
nc = await nats.connect(nats_url)
llm = Llama(model_path)
@smellslikeml
smellslikeml / train_dreambooth_lora_sdxl.py
Created December 20, 2023 23:17
Modified data loader - train_dreambooth_lora_sdxl.py
#!/usr/bin/env python
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@smellslikeml
smellslikeml / concat_script.sh
Created June 26, 2023 04:03
Concatenate videos with ffmpeg
#!/bin/bash
# Ensure a list of clips is provided
if [ $# -eq 0 ]; then
echo "Please provide a list of clips to process and concatenate."
exit 1
fi
# Directory to store processed clips
mkdir -p processed_clips
@smellslikeml
smellslikeml / video_llama_eval.yaml
Created June 25, 2023 22:38
Video-LLaMA eval config for Colab
model:
arch: video_llama
model_type: pretrain_vicuna
freeze_vit: True
freeze_qformer: True
max_txt_len: 160
end_sym: "###"
low_resource: True
frozen_llama_proj: False
@smellslikeml
smellslikeml / client_example.py
Last active April 19, 2023 03:09
U^2Net Triton Inference Server
import os
import time
import cv2
import hashlib
import numpy as np
from PIL import Image
from absl import logging
import tritonclient.http