#!/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=8
W_QUANT=per_tensor
A_QUANT=per_tensor

CUDA_VISIBLE_DEVICES=6 python -m open_clip_train.main_search \
    --imagenet-val /home/user/data/ILSVRC2012/train_sample_50_per_class \
    --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 ${BIT} \
    --baseline original \
    \
    --prefix-add \
    --cache-option KV_Cache \
    --max-global-prefix-rank 3 \
    --target-block 1 \
    --target-layer ffn_fc2 \
    --max-prefix-number 3 \
    --token-delete-block "[7]" \
    --max-token-delete-number 3 \


