Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,11 +4,12 @@ import torch
|
|
| 4 |
import gradio as gr
|
| 5 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
description = """"""
|
| 9 |
|
| 10 |
-
# Load model and tokenizer
|
| 11 |
-
model_name = "Salesforce/xLAM-8x7b-r"
|
| 12 |
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype="auto", trust_remote_code=True)
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 14 |
|
|
|
|
| 4 |
import gradio as gr
|
| 5 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 6 |
|
| 7 |
+
# Load model and tokenizer
|
| 8 |
+
model_name = "Salesforce/xLAM-1b-fc-r"
|
| 9 |
+
|
| 10 |
+
title = f"Eval Model: {model_name}"
|
| 11 |
description = """"""
|
| 12 |
|
|
|
|
|
|
|
| 13 |
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype="auto", trust_remote_code=True)
|
| 14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 15 |
|