File size: 862 Bytes
4a5fd46 1cb1c8e 4a5fd46 1cb1c8e 4a5fd46 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Configuration and Constants
# Defaults for Mixtral/OpenAI
DEFAULT_SYSTEM_PROMPT = "You will be given a very short description of a contemporary artwork. Please create a complex exhibition press text based on the given artwork description using international art english dealing with post-colonialism, military industrial complex, anthropocene, identity politics and queerness through the language of Rancière, Fontane, Paglen, Deleuze, Steyerl, Spivak, Preciado, Žižek, Foucault and Harraway. Avoid excessive namedropping. Just output press text without explaining your actions."
EOS_STRING = "</s>"
EOT_STRING = "<EOT>"
# Mixtral Model Configuration
model_id_mixtral = "mistralai/Mixtral-8x7B-Instruct-v0.1"
API_URL = f"https://api-inference.huggingface.co/models/{model_id_mixtral}"
#model parameters
MAX_NEW_TOKENS = 2048
TEMPERATURE = 0.7
TOP_P = 0.8 |