Views
No views yet
| Quant Level | Perplexity Score |
|---|---|
| 8.0 | 5.2805 |
| 7.0 | 5.2841 |
| 6.0 | 5.2789 |
| 5.0 | 5.2930 |
| 4.5 | 5.3110 |
| 4.0 | 5.3663 |
| 3.5 | 5.4860 |
| Quant Size | ChatML | Alpaca | Chat-Vicuna |
|---|---|---|---|
| 8.0 | 73.82 | 75.02 | 73.53 |
| 7.0 | 74.22 | 74.96 | 72.71 |
| 6.0 | 74.29 | 75.11 | 74.16 |
| 5.0 | 72.74 | 74.11 | 73.28 |
| 4.5 | 73.62 | 73.18 | 73.32 |
| 4.0 | 73.99 | 71.85 | 74.74 |
| 3.5 | 72.07 | 73.73 | 73.56 |
1user: "USER:"
2bot: "ASSISTANT:"
3turn_template: "<|user|> <|user-message|><|im_end|>\n<|bot|> <|bot-message|><|im_end|></s>\n"
4context: "<|system-message|><|im_end|>\n\n"
5system_message: "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions."1#!/bin/bash
2
3# Activate the conda environment
4source ~/miniconda3/etc/profile.d/conda.sh
5conda activate exllamav2
6
7# Set the model name
8MODEL_NAME="Merged-RP-Stew-V2-34B"
9BIT_PRECISIONS=(8.0 7.0 6.0 5.0 4.5 4.0 3.5 3.0 2.65 2.4)
10
11for BIT_PRECISION in "${BIT_PRECISIONS[@]}"
12do
13 MODEL_DIR="models/${MODEL_NAME}_exl2_${BIT_PRECISION}bpw"
14
15 if [ -d "$MODEL_DIR" ]; then
16 output=$(python test_inference.py -m "$MODEL_DIR" -gs 21,24 -ed data/wikitext/wikitext-2-v1.parquet)
17 score=$(echo "$output" | grep -oP 'Evaluation perplexity: \K[\d.]+')
18 echo "BPW: $BIT_PRECISION, Score: $score"
19 fi
20
21done1#!/bin/bash
2
3# Activate the conda environment
4source ~/miniconda3/etc/profile.d/conda.sh
5conda activate exllamav2
6
7# Set the model name and bit size
8MODEL_NAME="Merged-RP-Stew-V2-34B"
9BIT_PRECISION=4.0
10
11# Define variables
12MODEL_DIR="models/$MODEL_NAME"
13OUTPUT_DIR="exl2_$MODEL_NAME"
14MEASUREMENT_FILE="measurements/$MODEL_NAME.json"
15CONVERTED_FOLDER="models/${MODEL_NAME}_exl2_${BIT_PRECISION}bpw"
16CALIBRATION_DATASET="data/Bluemoon-Light/chat-vicuna.parquet"
17
18# Create directories
19rm -r "$OUTPUT_DIR"
20mkdir "$OUTPUT_DIR"
21mkdir "$CONVERTED_FOLDER"
22
23# Run conversion commands
24python convert.py -i $MODEL_DIR -o $OUTPUT_DIR -nr -om $MEASUREMENT_FILE -c $CALIBRATION_DATASET
25python convert.py -i $MODEL_DIR -o $OUTPUT_DIR -nr -m $MEASUREMENT_FILE -b $BIT_PRECISION -c $CALIBRATION_DATASET -cf $CONVERTED_FOLDER