In the name of God
This gist contains steps to setup Ubuntu 22.04 for deep learning.
| # train_grpo.py | |
| # | |
| # See https://github.com/willccbb/verifiers for ongoing developments | |
| # | |
| """ | |
| citation: | |
| @misc{brown2025grpodemo, | |
| title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models}, | |
| author={Brown, William}, |
| # I was running spectaql to generate documentation for my GraphQL API and it complained about | |
| # directives that I had in my schema file. I threw errors including | |
| # - Unknown directive "@model". | |
| # - Unknown directive "@auth". | |
| # - Unknown directive "@index". | |
| # - Unknown directive "@hasOne". | |
| # These are all directives you would use when developing an Amplify app. | |
| # | |
| # Created this file to include as the first schemaFile in specaql.yml so that the graphql | |
| # parser is aware of the directives and can simply ignore them. |
| # Demonstration: https://www.youtube.com/watch?v=5AvHrIK-Kjc&feature=youtu.be | |
| # rand_cmap from https://stackoverflow.com/questions/14720331/how-to-generate-random-colors-in-matplotlib | |
| import matplotlib.pyplot as plt | |
| import torch | |
| import torch.nn.functional as F | |
| from visualizations import rand_cmap | |
| W = H = 64 | |
| img = torch.randn(W, H).to(device) |
These are my responses to some of the questions asked at the end of my Lambda Calculus talk, held on 2019-10-15 at Smartly.io's DevTalks in Helsinki. I've grouped similar questions together.
$laptop: ssh -l <username>@<yourNewServerIP>
$server: jupyter notebook --no-browser --port=8888
$laptop: ssh -NL 8888:localhost:8888 <username>@<yourNewServerIP>Then you can goto http://localhost:8888 on your laptop’s browser and remotely view/edit your Jupyter notebooks.
| const util = require('util') | |
| const mysql = require('mysql') | |
| const pool = mysql.createPool({ | |
| connectionLimit: 10, | |
| host: 'localhost', | |
| user: 'root', | |
| password: 'password', | |
| database: 'my_database' | |
| }) |
Here are the installation steps on Ubuntu (this installation will also work on any Debian-based distribution):
| """ | |
| Lyle Scott, III // lyle@ls3.io | |
| Multiple ways to rotate a 2D point around the origin / a point. | |
| Timer benchmark results @ https://gist.github.com/LyleScott/d17e9d314fbe6fc29767d8c5c029c362 | |
| """ | |
| from __future__ import print_function | |
| import math |