Skip to content

Instantly share code, notes, and snippets.

View leamsigc's full-sized avatar

ismael garcia leamsigc

View GitHub Profile
@leamsigc
leamsigc / grpo_demo.py
Created January 31, 2025 17:05 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset
services:
postiz:
image: 'ghcr.io/gitroomhq/postiz-app:latest'
environment:
- SERVICE_FQDN_POSTIZ_5000
- 'MAIN_URL=${SERVICE_FQDN_POSTIZ}'
- 'FRONTEND_URL=${SERVICE_FQDN_POSTIZ}'
- 'NEXT_PUBLIC_BACKEND_URL=${SERVICE_FQDN_POSTIZ}/api'
- 'JWT_SECRET=${SERVICE_PASSWORD_JWTSECRET}'
- 'DATABASE_URL=postgresql://${SERVICE_USER_POSTGRESQL}:${SERVICE_PASSWORD_POSTGRESQL}@postgres:5432/${POSTGRESQL_DATABASE:-postiz-db}'
@leamsigc
leamsigc / test.json
Last active July 5, 2022 18:27
Test geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am leamsigc on github.
  • I am leamsigc (https://keybase.io/leamsigc) on keybase.
  • I have a public key ASBOMeuYVg6aIKq-320b4zSDhJWeUc1I8GJky_o7-ccYHQo

To claim this, I am signing this object:

var CCC = CCC || {};
CCC.STATIC = CCC.STATIC || {};
CCC.STATIC.TYPE = {
'TRADE': '0',
'FEEDNEWS': '1',
'CURRENT': '2',
'LOADCOMPLATE': '3',
'COINPAIRS': '4',
@leamsigc
leamsigc / index.html
Created December 28, 2017 03:39
Prototype inheritance // source https://jsbin.com/buxetud
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Prototype inheritance</title>
<style id="jsbin-css">
*{
padding: 0;
margin: 0;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script>