- LLama.cpp
- git clone [email protected]:ggerganov/llama.cpp.git
- pip install -r llama.cpp/requirements.txt
- Compile llama.cpp a) cd llama.cpp b) make
- wikiextractor (this is used for creating imatrix files from wikipedia dumps)
- git clone [email protected]:attardi/wikiextractor.git
- cd wikiextractor
This file contains hidden or 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 time | |
import os | |
import logging | |
import random | |
from datasets import load_dataset | |
class QuantAutoGPTQ: | |
def __init__(self, model_name_or_path, output_dir, dataset, | |
num_samples=128, trust_remote_code=False, cache_examples=True, | |
use_fast=True, use_triton=False, bits=[4], group_size=[128], damp=[0.01], |
This file contains hidden or 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
# Rails Stuff | |
alias stoprails='kill -9 $(lsof -i :3000 -t)' | |
alias startrails='rails server -d' | |
alias restartrails='stopRails && startRails' | |
#Check PHP For Erroes | |
alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l' | |
# ROT13-encode text. Works for decoding, too! ;) | |
alias rot13='tr a-zA-Z n-za-mN-ZA-M' |