Skip to content

Instantly share code, notes, and snippets.

View jasonjmcghee's full-sized avatar
✏️

Jason McGhee jasonjmcghee

✏️
View GitHub Profile
@jasonjmcghee
jasonjmcghee / .live.md
Last active August 22, 2026 03:37
HRC A/B — parity-split HRC rewrite, baseline paint
@jasonjmcghee
jasonjmcghee / .live.md
Last active August 22, 2026 03:29
HRC A/B — paint queue plus damage scissor
@jasonjmcghee
jasonjmcghee / .live.md
Last active August 22, 2026 03:29
HRC A/B — one paint flush per frame only, full-frame paint
@jasonjmcghee
jasonjmcghee / .live.md
Last active August 22, 2026 03:20
HRC A/B — damage scissor only, immediate paint
@jasonjmcghee
jasonjmcghee / .live.md
Last active August 22, 2026 03:20
HRC A/B — baseline: no paint queue, no damage scissor
@jasonjmcghee
jasonjmcghee / index.md
Last active August 20, 2026 01:57
Holographic Radiance Cascades — WebGPU dense and compact

title: "Holographic Radiance Cascades — WebGPU" head: '

<style> #content { max-width: none !important; } main { padding: 0; box-sizing: border-box; } .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 12px; }
@jasonjmcghee
jasonjmcghee / index.md
Last active August 22, 2026 03:11
Optimized Holographic Radiance Cascades

title: "Holographic Radiance Cascades" head: '

@jasonjmcghee
jasonjmcghee / Modelfile
Last active September 9, 2023 15:42
LLMonitor - CodeLlama - Instruct (7B) :: My Local Results using `Ollama` (Temperature 0)
FROM codellama
PARAMAETER temperature 0
@jasonjmcghee
jasonjmcghee / cached_fn.py
Created May 28, 2023 04:48
Incredibly simple way to cache the output of a function - useful with unreliable LLM APIs
import os
def cached_fn(dir_name: str, file_name: str, fn, verbose=True):
"""
Base the output of a function on a file.
If the file already exists, use it instead of running the function.
If the function was executed, write its output to the provided `dir_name` and `file_name`.
@jasonjmcghee
jasonjmcghee / cached_chroma.py
Last active November 2, 2025 10:35
Cached embeddings in Chroma made easy.
from abc import ABC
from typing import List, Optional, Any
import chromadb
from langchain.docstore.document import Document
from langchain.embeddings.base import Embeddings
from langchain.vectorstores import Chroma
class CachedChroma(Chroma, ABC):