Check fiest that a upstream repo is setup here.
$ git remote -v
Basic commands to sync/merge git with origin.
$ git checkout master
> Switched to branch 'master'
$ git merge upstream/master
> Updating a422352..5fdff0f
Check fiest that a upstream repo is setup here.
$ git remote -v
Basic commands to sync/merge git with origin.
$ git checkout master
> Switched to branch 'master'
$ git merge upstream/master
> Updating a422352..5fdff0f
Quick install :
>>rvu
rvu: fatal - missing octree argument
L'output doit etre rvu: fatal - missing octree argument
, ca veut dire que il trouve rvu
sur ton path.
This gist aims to setup a LInux machine for python work from scratch.
Other terminal app that is plain better.
tmux new -s myname
def _get_col_idxs(df, cols): | |
"return cols index to perform iloc" | |
return [df.columns.get_loc(c) for c in L(cols) if c in df] | |
def _iloc(df, rows, cols=None): | |
"Iloc that supports col names" | |
if isinstance(cols, (tuple, list, str)): | |
cols = _get_col_idxs(df, cols) | |
return df.iloc[rows, cols] | |
return df.iloc[rows, slice(None)] |
from torch import nn | |
from functools import partial | |
from einops.layers.torch import Rearrange, Reduce | |
class PreNormResidual(nn.Module): | |
def __init__(self, dim, fn): | |
super().__init__() | |
self.fn = fn | |
self.norm = nn.LayerNorm(dim) |
you will need to setup docker with nvidia runtime, containers
docker
and nvidia-docker
:sudo apt-get install -y docker nvidia-container-toolkit