Spaces:
Paused
Paused
Update app/main.py
Browse files33 unmodified lines34353637383940414243444546474833 unmodified lineslogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)# ---------------------------# Supported models# ---------------------------SUPPORTED_MODELS = {"smollm3": "HuggingFaceTB/SmolLM3-3B", # default"nous": "NousResearch/Nous-Hermes-7B","phi2": "TheBloke/phi-2-7b"}DEFAULT_MODEL_KEY = "smollm3"generator = Nonecurrent_model = None33 unmodified lines343536373839404142434445464748495051525333 unmodified lineslogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)# ---------------------------# Supported models# ---------------------------SUPPORTED_MODELS = {"smollm3": "HuggingFaceTB/SmolLM3-3B","nous": "NousResearch/Nous-Hermes-7B","phi2": "TheBloke/phi-2-7b","llama2-7b-chat": "meta-llama/Llama-2-7b-chat-hf", # Chat-tuned, main LLaMA 2 model"llama2-2b-chat": "meta-llama/Llama-2-2b-chat-hf", # Chat-tuned, smaller contrast"llama2-2b-base": "meta-llama/Llama-2-2b-hf" # Base (non-chat), instruction-style prompts}DEFAULT_MODEL_KEY = "llama2-2b-chat"generator = Nonecurrent_model = None
app/main.py+8-3