This document has a more accessible location, here:
http://nickporcino.com/posts/last_mile_interchange.html
I'll maintain a copy here too, this is a nice place to support discussion.
| # 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 document has a more accessible location, here:
http://nickporcino.com/posts/last_mile_interchange.html
I'll maintain a copy here too, this is a nice place to support discussion.
| # https://github.com/RazrFalcon/svgcleaner/ must be installed | |
| find . -type f -name "*.svg" | sudo xargs -I file svgcleaner file file |
| #!/bin/env python | |
| """Merge mutiple glTF 2.0 animations into one.""" | |
| import json | |
| import sys | |
| def merge(gltf): | |
| # Maps (node, path) to (input, output, interpolation) | |
| target_to_sampler = {} | |
| for animation in gltf.get('animations', []): | |
| for channel in animation['channels']: |
| ########## | |
| # Tweaked Win10 Initial Setup Script | |
| # Primary Author: Disassembler <[email protected]> | |
| # Modified by: alirobe <[email protected]> based on my personal preferences. | |
| # Version: 2.20.2, 2018-09-14 | |
| # Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
| # Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
| # Tweak difference: | |
| # | |
| # @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
| // Modified version of a tilt shift shader from Martin Jonasson (http://grapefrukt.com/) | |
| // Read http://notes.underscorediscovery.com/ for context on shaders and this file | |
| // License : MIT | |
| uniform sampler2D tex0; | |
| varying vec2 tcoord; | |
| varying vec4 color; | |
| /* | |
| Take note that blurring in a single pass (the two for loops below) is more expensive than separating |
| shader_type spatial; | |
| render_mode unshaded; | |
| uniform usampler2D data_tex; | |
| /* | |
| Use with the following GDScript code: | |
| var data_img = Image.new() | |
| var data := PoolByteArray() | |
| var indexin = 0x8400 |
External Diff Tool, choose Custom/usr/local/bin/meld in Diff Command and $LOCAL $REMOTE in ArgumentsExternal Merge Tool, choose Custom/usr/local/bin/meld in Merge Command and $LOCAL $MERGED $REMOTE in Arguments| # This is a prototype of the state recorder that can be used in a replay system | |
| extends AnimationPlayer | |
| var nodes = [] | |
| var animations = {} | |
| var properties = ["global_position", "global_rotation"] | |
| func _init(): | |
| set_name("state_recorder") |
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |