Install tmux:
sudo apt install tmux
Copy the tmux.conf
file bellow to your home:
cp tmux.conf ~/.tmux.conf
# Freeing space from Docker on Windows WSL | |
# (No need for HyperV and optimize-vhd: works on Windows Home Edition) | |
# Make sure to keep the images you really need running on Docker, this way the following command will | |
# only delete the cached layers: | |
# On WSL: | |
docker system prune -a | |
# On PowerShell: |
brew install cmake cache ninja | |
git clone https://github.com/llvm/llvm-project.git | |
mkdir llvm-project/build | |
cd llvm-project/build | |
cmake -G Ninja ../llvm \ | |
-DLLVM_ENABLE_PROJECTS=mlir \ | |
-DLLVM_BUILD_EXAMPLES=ON \ | |
-DLLVM_TARGETS_TO_BUILD="Native;ARM;X86" \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DLLVM_ENABLE_ASSERTIONS=ON \ |
# Instead of using llama.cpp directly, interface it through llama-cpp-python. | |
# | |
# Run: | |
# python3 -m venv venv | |
# source venv/bin/activate | |
# CMAKE_ARGS="-DLLAMA_METAL=on" FORCE_CMAKE=1 pip install llama-cpp-python | |
# | |
from llama_cpp import Llama | |
if __name__ == "__main__": |
FROM ubuntu:22.04 | |
# Install initial dependencies | |
RUN apt-get update && apt-get install -y curl gpg | |
# Install modular | |
RUN apt-get install -y apt-transport-https && \ | |
keyring_location=/usr/share/keyrings/modular-installer-archive-keyring.gpg && \ | |
curl -1sLf 'https://dl.modular.com/bBNWiLZX5igwHXeu/installer/gpg.0E4925737A3895AD.key' | gpg --dearmor >> ${keyring_location} && \ | |
curl -1sLf 'https://dl.modular.com/bBNWiLZX5igwHXeu/installer/config.deb.txt?distro=debian&codename=wheezy' > /etc/apt/sources.list.d/modular-installer.list && \ |
from random import random_float64 | |
from math import tanh | |
@value | |
@register_passable("trivial") | |
struct Value: | |
var r: Pointer[Int] | |
var l: Pointer[Int] | |
var data: Float64 | |
var grad: Float64 |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Unity Editor", | |
"type": "unity", | |
"request": "launch" | |
}, | |
{ | |
"name": "OSX Player", |
# Three.py ~ Rising | |
from time import sleep | |
from random import random | |
mom = open(__file__).read() | |
while True: | |
child = open(str(random()) + '.py', 'w') | |
child.write(mom) |
This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.