Spaces:
Paused
Paused
Update app.py
Browse files13 unmodified lines1415161718171819202113 unmodified lines
#Transformers Codeif torch.cuda.is_available(): model_id = "Qwen/Qwen2.5-7B-Instruct" #model_id = "BenBranyon/sumbot7b-augmented" #model_id = "Qwen/Qwen2.5-7B-Instruct" model_id = "BenBranyon/sumbot7b-augmented" model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto") tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True, model_max_length=MAX_INPUT_TOKEN_LENGTH, padding="longest", language="en")
app.py+2-2