Delimiters:
{{ and }} are used to enclose template actions.
Conditionals:
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
class NF4Quantizer(nn.Module): | |
def __init__(self): | |
super().__init__() | |
self.nf4_values = torch.tensor([ | |
-1.0, -0.6961928009986877, -0.5250730514526367, -0.39491748809814453, | |
-0.28444138169288635, -0.18477343022823334, -0.09105003625154495, 0.0, |
from pynput import keyboard | |
from pynput.keyboard import Key, Controller | |
# For simulating keyboard presses | |
keyboard_controller = Controller() | |
def on_press(key): | |
try: | |
print(f'Alphanumeric key pressed: {key.char}') | |
except AttributeError: |
import math | |
import torch | |
import torch.nn as nn | |
class RotaryPositionEmbedding(nn.Module): | |
""" | |
Implements Rotary Position Embedding (RoPE) as a PyTorch module. | |
Args: | |
dim (int): Dimension of the embedding (must be even) |
.aider.conf.yml
CONVENTION.md
and all reference files.~/.env
/add
README and ask
How to use Pipe?
Add models
3RPT8lpHOSQSvxPrv1wPyBGxPCCKo80L
Self-hosted Livesync:
test
arp = ip neigh | |
ifconfig = ip addr | |
route = ip route | |
netstat = ss | |
ip addr show name | |
# Create MacVLan | |
ip link add mac0 link ens18 type macvlan mode bridge | |
ip addr add 192.168.0.94/27 dev mac0 # it needs to be subnet of the original macvlan |