Skip to content

Instantly share code, notes, and snippets.

View butchland's full-sized avatar

Butch Landingin butchland

View GitHub Profile
@butchland
butchland / recreate-weird-seed-error.ipynb
Created May 22, 2024 15:39
SQLMesh notebook with error on `%model` and `%render` ipython magics due to csv with a period in a column name
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchland
butchland / gist:05f2b87da850d4f54f9ced6adc578832
Created July 26, 2022 13:40
calling package to hub triggers the following error
ℹ This function will save, evaluate, generate a video of your agent,
create a model card and push everything to the hub. It might take up to 1min.
This is a work in progress: if you encounter a bug, please open an issue.
/usr/local/lib/python3.7/dist-packages/stable_baselines3/common/evaluation.py:69: UserWarning: Evaluation environment is not wrapped with a ``Monitor`` wrapper. This may result in reporting modified episode lengths and rewards, if other wrappers happen to modify these. Consider wrapping environment first with ``Monitor`` wrapper.
UserWarning,
---------------------------------------------------------------------------
NoSuchDisplayException Traceback (most recent call last)
<ipython-input-5-a05b2900be06> in <module>()
28 eval_env=eval_env, # Evaluation Environment
29 repo_id=repo_id, # id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name} for instance ThomasSimonini/ppo-LunarLander-v2
#!/bin/bash
# colab check to cd to default "/content" directory
[ -d "/content" ] && cd /content
mkdir -p $HOME/.fastai/data
mkdir -p $HOME/.torch/models
ln -s $HOME/.fastai/data
ln -s $HOME/.torch/models
# colab default dir in content
[ -d sample_data ] && rm -rf sample_data
echo "fastai data model setup done!"
@butchland
butchland / working-filipino-ulmfit.ipynb
Created July 18, 2021 08:49
working-Filipino-ULMFiT.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchland
butchland / 2b-odds-and-ends.ipynb
Created June 24, 2021 00:06
2b-odds-and-ends.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchland
butchland / updated-colab-2-svd-nmf-topic-modeling.ipynb
Created June 16, 2021 22:33
updated-colab-2-svd-nmf-topic-modeling.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchland
butchland / minimal-fastai-pytorch-tpu-sample-latest-error.ipynb
Created May 9, 2021 14:19
minimal-fastai-pytorch-tpu-sample-latest-error.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchland
butchland / make_sound.py
Created May 9, 2021 14:14
colab tricks - make a cell sound
from google.colab import output
# output.eval_js('new Audio("https://upload.wikimedia.org/wikipedia/commons/0/05/Beep-09.ogg").play()')
output.eval_js('new Audio("https://upload.wikimedia.org/wikipedia/commons/b/b4/CloudMagic_5.ogg").play()')
@butchland
butchland / accelerate-tpu-simple-nlp-fasttpu.ipynb
Created May 2, 2021 09:29
accelerate-tpu-simple-nlp-fasttpu
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchland
butchland / wandb-fastai-callback-multi-core-tpu-error.ipynb
Created February 5, 2021 09:02
wandb-fastai-callback-multi-core-tpu-error.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.