Skip to content

Instantly share code, notes, and snippets.

View KarthickSelvam's full-sized avatar

Karthick S KarthickSelvam

View GitHub Profile
@emma-praxis
emma-praxis / cal-001.ts
Last active April 14, 2026 04:07
Emma eval golden dataset entry: cal-001 (calendar read)
// This golden dataset entry tests three eval dimensions: delegation, trajectory, and completion.
// The eval runner selects scorers based on those dimensions:
// - primaryAgentCorrectScorer + allSecondaryAgentsPresentScorer — did Emma delegate to Tempo?
// - toolTrajectoryScorer — did Tempo call listCalendarEvents?
// - taskCompletionScorer — did the response actually contain calendar events?
{
id: 'cal-001',
input: "what's on my calendar tomorrow",
expectedAgent: 'tempo',
expectedTools: ['listCalendarEvents'],
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@orottier
orottier / RetryTest.php
Last active July 21, 2023 10:10
Retry function for PHP with exponential backoff
<?php
class RetryTest extends TestCase
{
public function setUp()
{
parent::setUp();
// abuse superglobal to keep track of state
$_GET['a'] = 0;
}