Skip to content

Instantly share code, notes, and snippets.

View corbt's full-sized avatar

Kyle Corbitt corbt

View GitHub Profile
@corbt
corbt / 1_results.txt
Last active June 13, 2025 12:42
Benchmark script for reward model performance
Strategy | Relative Throughput | Time (s) | Cost ($/M tokens)
----------------------------------------------------------------------------------------
Unsloth | 2.17 | 3.83 | $0.0188
Unsloth+PEFT | 1.58 | 5.27 | $0.0259
Transformers+Liger | 1.14 | 7.28 | $0.0358
vLLM | 1.00 | 8.31 | $0.0409
Transformers | 0.97 | 8.54 | $0.0420
Transformers+Liger+PEFT | 0.84 | 9.85 | $0.0484
Transformers+PEFT | 0.74 | 11.26 | $0.0554
import OpenAI from "openai";
import { type CompletionCreateParams } from "openai/resources/chat";
import stringify from "json-stringify-pretty-compact";
import type { FromSchema, JSONSchema } from "json-schema-to-ts";
import Ajv from "ajv";
const ajv = new Ajv({ strict: false });
export const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
# Counts the total number of insertions and deletions in a git repository's lifetime
require 'git'
repo = Git.open('../emberall')
prev = repo.log.first
deletions = 0
insertions = 0
repo.log(count = 5000).each do |commit|
@corbt
corbt / CheckConnectionActivity.java
Created September 18, 2015 16:49
React Native sample activity
package com.your.app;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import com.facebook.react.LifecycleState;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactRootView;
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;