Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,13 +36,13 @@ if not torch.cuda.is_available():
|
|
| 36 |
|
| 37 |
|
| 38 |
if torch.cuda.is_available():
|
| 39 |
-
model_id = "
|
| 40 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_4bit=True)
|
| 41 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 42 |
tokenizer.use_default_system_prompt = False
|
| 43 |
|
| 44 |
|
| 45 |
-
@spaces.GPU
|
| 46 |
def generate(
|
| 47 |
message: str,
|
| 48 |
chat_history: list[tuple[str, str]],
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
if torch.cuda.is_available():
|
| 39 |
+
model_id = "ibm/labradorite-13b"
|
| 40 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_4bit=True)
|
| 41 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 42 |
tokenizer.use_default_system_prompt = False
|
| 43 |
|
| 44 |
|
| 45 |
+
@spaces.GPU(enable_queue=True)
|
| 46 |
def generate(
|
| 47 |
message: str,
|
| 48 |
chat_history: list[tuple[str, str]],
|