Skip to content

Instantly share code, notes, and snippets.

View Firstbober's full-sized avatar
🔈
Sending ultrasonic advertisement ID

Firstbober

🔈
Sending ultrasonic advertisement ID
View GitHub Profile
import multiprocessing
import llama_cpp
class LLaMAChat():
def __init__(
self,
model: str, # model path
contextSize: int, # size of the prompt context
modelParts: int, # number of model parts
seed: int = 0, # RNG seed, 0 for random
@Firstbober
Firstbober / builder.py
Last active November 7, 2020 19:19
Simple builder for my C++ projects
#!/bin/python
from abc import ABC, abstractmethod
import os
import subprocess
import argparse
import json
import shutil
import glob
import signal