This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Easily resolve addresses in a Google sheet to ENS names via @frolic's ENS resolution API - https://ensideas.com/about | |
// 1. In a Google sheet, select the menu item Extensions > Apps Script. | |
// 2. Replace the example code in the editor with the below function: | |
function LOOKUP_ENS(input) { | |
var endpoint = "https://api.ensideas.com/ens/resolve/" + input; | |
var response = UrlFetchApp.fetch(endpoint); | |
var json = response.getContentText(); |