Skip to content

Instantly share code, notes, and snippets.

View andandandand's full-sized avatar
🎯
Focusing

Antonio Rueda-Toicen andandandand

🎯
Focusing
View GitHub Profile
@andandandand
andandandand / grpo_demo.py
Created February 5, 2025 09:41 — 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
@andandandand
andandandand / modern-geospatial-python.md
Created September 1, 2018 16:15 — forked from jqtrde/modern-geospatial-python.md
Modern remote sensing image processing with Python
@andandandand
andandandand / Localbitcoins.py
Created April 14, 2018 21:51 — forked from rgoncalves-95/Localbitcoins.py
Script que descarga las transacciones realizadas en Bolívares en Localbitcoins
import json
import urllib.request
import datetime
import time
import pandas as pd
comienzo = time.time()
def hacer_request(tid):
url = "https://localbitcoins.com/bitcoincharts/VEF/trades.json?since="
@andandandand
andandandand / gist:8c2f5b8425940555acf0aa639b6073ef
Created December 18, 2017 22:31
Errors when installing saucy wrapper for R
saucyio.cpp: In function ‘amorph_graph* amorph_read(const char*, int)’:
saucyio.cpp:243:59: error: ‘to_string’ is not a member of ‘std’
Rf_warning((std::string("invalid vertex in input: ") + std::to_string(j)).c_str());
^
saucyio.cpp:247:59: error: ‘to_string’ is not a member of ‘std’
Rf_warning((std::string("invalid vertex in input: ") + std::to_string(k)).c_str());
^
In file included from saucyio.cpp:21:0:
platform.h: At global scope:
platform.h:99:14: warning: always_inline function might not be inlinable [-Wattributes]