Generalized from Karpathy's autoresearch. Same loop, any domain.
An AI agent runs an infinite hill-climbing loop: modify → run → measure → keep or revert → repeat. No human in the loop. Wake up to a TSV of completed experiments.
Generalized from Karpathy's autoresearch. Same loop, any domain.
An AI agent runs an infinite hill-climbing loop: modify → run → measure → keep or revert → repeat. No human in the loop. Wake up to a TSV of completed experiments.
| #include <iostream> | |
| // Base class using CRTP | |
| template <typename Derived> | |
| class Base { | |
| public: | |
| void doSomething() { | |
| static_cast<Derived*>(this)->implementation(); | |
| } |
The struggle itself toward faster Stable Diffusion is enough to fill a man's heart. One must imagine potato laptop users happy.
This Gist accompanies my Reddit post (33x Speed on Potato Laptops with OpenVINO and LCM LoRAs) and explains how I got the 33x number on my potato laptop. I also included some notes and images from using LCM with OpenVINO in Stable Diffusion WebUI.
Learn how to convert TTF to WOFF using C#: https://blog.aspose.com/2022/03/15/convert-ttf-to-woff-using-csharp/
The following topics are covered in this article:
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
Each running program has at least one thread which is occupied by its entry point. There can be many threads for a single program and the memory is shared among all threads. The objects possessed by the main thread (and shared by other threads as a reference to it) would be destroyed as soon as they go out of scope. This might lead to corrupt memory access by the rest of the threads.
Hence, sometimes, it's very important to make sure that all the threads are joined using std::thread::join() before the main thread terminates. Other times, you basically want a daemon thread running in background even after the termination of main thread and that can be achieved by calling std::thread::detach(), but it may or may not be possible to join a detachable thread.
Resource Acquisition Is Initialization (RAII) is a famous programming idiom in C++ (a misnomer actually) also (better) known and understood as **Scope-Bound Resource Managemen
| mines ubuntu 20.04 based, WSL2 | |
| in windows | |
| wsl --list -v | |
| * Ubuntu-20.04 Stopped 2 | |
| in wsl | |
| # the old update routine | |
| sudo apt-get update -y | |
| # add tools to build kernel, apologies if i missed anything as i already have a bunch of dev stuff setup | |
| sudo apt-get install -y autoconf bison build-essential flex libelf-dev libncurses-dev libssl-dev libtool libudev-dev |
| # !/usr/bin/env python3 | |
| # coding=utf-8 | |
| import sys | |
| from qiling import * | |
| from qiling.os.mapper import QlFsMappedObject | |
| from qiling.const import QL_VERBOSE | |
| base_address = 0x555555554000 |