selfie / configs.py
dar-tau's picture
Update configs.py
7673f3b verified
raw
history blame
No virus
3.03 kB
import os
dataset_info = [
{'name': 'Common Sense', 'hf_repo': 'tau/commonsense_qa', 'text_col': 'question'},
{'name': 'Factual Recall', 'hf_repo': 'azhx/counterfact-filtered-gptj6b', 'text_col': 'subject+predicate',
'filter': lambda x: x['label'] == 1},
# {'name': 'Physical Understanding', 'hf_repo': 'piqa', 'text_col': 'goal'},
{'name': 'Social Reasoning', 'hf_repo': 'ProlificAI/social-reasoning-rlhf', 'text_col': 'question'}
]
model_info = {
'LLAMA2-7B': dict(model_path='meta-llama/Llama-2-7b-chat-hf', token=os.environ['hf_token'],
original_prompt_template='<s>{prompt}',
interpretation_prompt_template='<s>[INST] [X] [/INST] {prompt}',
), # , load_in_8bit=True
# 'Gemma-2B': dict(model_path='google/gemma-2b', device_map='cpu', token=os.environ['hf_token'],
# original_prompt_template='<bos>{prompt}',
# interpretation_prompt_template='<bos>User: [X]\n\nAnswer: {prompt}',
# ),
'GPT-2 Small': dict(model_path='gpt2', original_prompt_template='{prompt}',
interpretation_prompt_template='User: [X]\n\nAnswer: {prompt}'),
'GPT-2 Medium': dict(model_path='gpt2-medium', original_prompt_template='{prompt}',
interpretation_prompt_template='User: [X]\n\nAnswer: {prompt}'),
'GPT-2 Large': dict(model_path='gpt2-large', original_prompt_template='{prompt}',
interpretation_prompt_template='User: [X]\n\nAnswer: {prompt}'),
'GPT-2 XL': dict(model_path='gpt2-xl', original_prompt_template='{prompt}',
interpretation_prompt_template='User: [X]\n\nAnswer: {prompt}'),
'GPT-J 6B': dict(model_path='EleutherAI/gpt-j-6b', original_prompt_template='{prompt}',
interpretation_prompt_template='User: [X]\n\nAnswer: {prompt}'),
'Mistral-7B Instruct': dict(model_path='mistralai/Mistral-7B-Instruct-v0.2', device_map='cpu',
original_prompt_template='<s>{prompt}',
interpretation_prompt_template='<s>[INST] [X] [/INST] {prompt}',
),
# 'TheBloke/Mistral-7B-Instruct-v0.2-GGUF': dict(model_file='mistral-7b-instruct-v0.2.Q5_K_S.gguf',
# tokenizer='mistralai/Mistral-7B-Instruct-v0.2',
# model_type='llama', hf=True, ctransformers=True,
# original_prompt_template='<s>[INST] {prompt} [/INST]',
# interpretation_prompt_template='<s>[INST] [X] [/INST] {prompt}',
# )
}