Spaces:
Build error
Build error
Update app.py
Browse files33 unmodified lines34353637373839404142434433 unmodified linesdevice = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(MODEL)model = AutoModelForCausalLM.from_pretrained(MODEL).to(device)model = AutoModelForCausalLM.from_pretrained( MODEL, torch_dtype=torch.bfloat16, device_map="auto", ignore_mismatched_sizes=True).to(device)
@spaces.GPU()def stream_chat(app.py+5-1