#!/bin/bash

export PYTHONPATH=~/regcache/src

VERSION=clip_evaluate_original
DIR=/home/user/regcache/result
RESULT_FILE=${DIR}/${VERSION}_result.out
mkdir -p ${DIR} ${DIR}/log ${CACHE_DIR}
LOGFILE=${DIR}/log/${VERSION}.log

BIT=None
W_QUANT=None
A_QUANT=None

CUDA_VISIBLE_DEVICES=0 python -m open_clip_train.main_search \
    --imagenet-val /data/ILSVRC2012/val \
    --model ViT-B-16-quickgelu \
    --pretrained openai \
    --seed 42 \
    --wbits ${BIT} \
    --abits ${BIT} \
    --w-quant-type ${W_QUANT} \
    --a-quant-type ${A_QUANT} \
    --num-classes 0 \
    --model-name clip \
    --batch-size 64 \
    --bit 4 \
    --baseline awq \
    \
    --eval-only \
    # --prefix-add \
    # --cache-option KV_Cache \
    # --prefix-add-block "[4,5,6,7,8,9,10,11]" \
    # --prefix-number 2 \
    # --global-prefix-rank 10 \
    # --target-block 4 \
    # --target-layer ffn_fc2 \
    # --token-delete \
    # --token-delete-block "[7]" \
    # --token-delete-number 2 \

