Skip to content

Instantly share code, notes, and snippets.

@tommythorn
tommythorn / gist:129f5c93db491d5f4bff6d6202f429d4
Created September 3, 2026 07:03
claude-mtplx wrapper to streamline running Claude Code against mtplx
#!/usr/bin/env bash
# claude-mtplx — run the Claude Code CLI against a locally served MTPLX model.
#
# Starts the MTPLX server if it isn't already listening, then execs `claude`
# with the Anthropic-compatible endpoint pointed at it. Any arguments are
# passed straight through to claude, e.g.:
#
# claude-mtplx # interactive session
# claude-mtplx -p "explain this" # one-shot
# claude-mtplx --mtplx-stop # stop the server and exit
@progmars
progmars / LTX2_Franken_VideoExtender.json
Last active June 13, 2026 08:19
LTX2 YOLO frankenworkflow - extend a video from both sides with lipsync and additional keyframe injection, everything at once just because we can
{
"id": "0a99bf5b-5c7e-49af-aa2e-0b0ec5b91a36",
"revision": 0,
"last_node_id": 377,
"last_link_id": 595,
"nodes": [
{
"id": 95,
"type": "BasicScheduler",
"pos": [

Z-Image AI: Free Fast S3-DiT Image Generator

Z‑Image Turbo is a bit different from “classic” Stable Diffusion, so a lot of old prompting habits don’t quite apply. I’ll walk through how to prompt it deeply and safely, with special focus on controlling content (nudity, stereotypes, unwanted artifacts) even though the model does not support traditional negative prompts at all. ([Hugging Face][1])


1. How Z‑Image Turbo thinks (and why “negative” prompts don’t work)

Key facts that matter for prompting:

@rvndbalaji
rvndbalaji / langgraph_builder.py
Last active April 14, 2025 16:45
Utility class to build dynamic langgrah agents
import base64
import functools
import operator
from typing import *
from typing import Annotated, Any, Dict, List, Sequence
from dto.chat import *
from dto.graph import *
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain.tools import BaseTool
@takanotaiga
takanotaiga / i2t.py
Last active December 26, 2025 00:21
i2t ros2
# Copyright 2023 Taiga Takano
#
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@anzz1
anzz1 / convert-pth-to-ggml.py
Last active March 29, 2023 13:26
ugly hardcoded hack for point-alpaca conversion
# Convert a LLaMA model checkpoint to a ggml compatible file
#
# Load the model using Torch
# Iterate over all variables and write them to a binary file.
#
# For each variable, write the following:
# - Number of dimensions (int)
# - Name length (int)
# - Dimensions (int[n_dims])
# - Name (char[name_length])
@harubaru
harubaru / wd1-3-release.md
Last active June 9, 2026 18:45
Official Release Notes for Waifu Diffusion 1.3
@atc1441
atc1441 / Telink OTA Ble Protocol.js
Last active July 5, 2024 14:14
Telink OTA Ble Protocol
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
anonymous
anonymous / align_images.py
Created December 21, 2017 16:05
Face alignment scripts based on 1adrianb/face-alignment
import argparse
import cv2
import dlib
import json
import numpy
import skimage
from pathlib import Path
from tqdm import tqdm
from umeyama import umeyama