Skip to content

Instantly share code, notes, and snippets.

View jonmaestas's full-sized avatar

Jon Maestas jonmaestas

View GitHub Profile
@willccbb
willccbb / grpo_demo.py
Last active September 25, 2025 03:20
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@koakh
koakh / gist:fbbc37cde630bedcf57acfd4d6a6956b
Last active March 24, 2025 14:40
SurrealDB : How to use signin and signup (server + client nodesjs)
**As a developer you have complete control over the signup and signin functionality...**
```shell
$ surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test
```
```sql
-- optional : this is the default see --ns test --db test start server flags
-- USE NS test DB test;
@corlaez
corlaez / README.md
Last active August 26, 2025 23:21
Hexagonal Architecture and Modular Implementation

Hexagonal Architecture

Conceptualized by Alistair Cockburn. Also known as "Ports and Adapters".

In a nutshell:

Application Driver -> Primary Adapter -> Primary Port -> Use Case -> Secondary Port -> Secondary Adapter -> External System/Side Effect
#!/usr/local/bin/python
import requests
import os
import json
import sys
import hcl
def hcl_config(api, config):
with open(os.path.abspath(config), 'r') as fp:
obj = hcl.load(fp)