KB-VQA-E / my_model /config /LLAMA2_config.py
m7mdal7aj's picture
Rename my_model/LLAMA2/LLAMA2_config.py to my_model/config/LLAMA2_config.py
f9663bb verified
raw
history blame
No virus
533 Bytes
# Configuration parameters for LLaMA-2 model
import torch
import os
MODEL_NAME = "meta-llama/Llama-2-7b-chat-hf"
TOKENIZER_NAME = "meta-llama/Llama-2-7b-chat-hf"
QUANTIZATION = '4bit' # Options: '4bit', '8bit', or None
FROM_SAVED = False
MODEL_PATH = None
TRUST_REMOTE = False
USE_FAST = True
ADD_EOS_TOKEN = True
# ACCESS_TOKEN = "xx" # My HF Read-only Token, to be added here if needed
huggingface_token = os.getenv('HUGGINGFACE_TOKEN') # for use as a secret on hf space
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'