AWQ 4bit quantization of SicariusSicarii's Impish_Bloodmoon_12B
Quantized on a single Nvidia RTX 4090.
Recipe:
from transformers import AutoModelForCausalLM, AutoTokenizer
from llmcompressor import oneshot
from llmcompressor.modifiers.awq import AWQModifier
dataset = "gsm8k"
model_id = "/path/to/model/"
SAVE_DIR = "/save/dir/"
MAX_SEQUENCE_LENGTH = 1024
NUM_CALIBRATION_SAMPLES = 128
tokenizer = AutoTokenizer.from_pretrained(
model_id,
)
recipe = [
AWQModifier(
targets=["Linear"],
scheme="W4A16_ASYM",
ignore=["lm_head"],
)
]
oneshot(
model=model_id,
dataset=dataset,
dataset_config_name="main",
recipe=recipe,
output_dir=SAVE_DIR,
max_seq_length=MAX_SEQUENCE_LENGTH,
num_calibration_samples=NUM_CALIBRATION_SAMPLES,
)
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo isola-tropicale/Impish_Bloodmoon_12B-AWQ-4bit ./model-foldermodel-00001-of-00002.safetensors 4.6 GiBmodel-00002-of-00002.safetensors 3.1 GiBSicariusSicariiStuff/Angelic_Eclipse_12B