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 | |
| # | |
| # See https://github.com/willccbb/verifiers for ongoing developments | |
| # | |
| import re | |
| import torch | |
| from datasets import load_dataset, Dataset | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| from peft import LoraConfig | |
| from trl import GRPOConfig, GRPOTrainer |
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
| #! /usr/bin/env python | |
| # script for ubnt device discovery | |
| # Usage: python discover.py or ./discover.py | |
| import socket | |
| from contextlib import closing | |
| PORT=40860 |
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
| """ | |
| Configuration example for ``ptpython``. | |
| Copy this file to $XDG_CONFIG_HOME/ptpython/config.py | |
| On Linux, this is: ~/.config/ptpython/config.py | |
| """ | |
| from prompt_toolkit.filters import ViInsertMode | |
| from prompt_toolkit.key_binding.key_processor import KeyPress | |
| from prompt_toolkit.keys import Keys | |
| from prompt_toolkit.styles import Style |
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
| " plugins | |
| let need_to_install_plugins = 0 | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| "autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| let need_to_install_plugins = 1 | |
| endif | |
| call plug#begin() |