This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
from abc import ABC, abstractmethod | |
import os | |
import subprocess | |
import argparse | |
import json | |
import shutil | |
import glob | |
import signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |