Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
# Load model directly
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("unsloth/
|
6 |
-
model = AutoModelForCausalLM.from_pretrained("unsloth/
|
7 |
|
8 |
# Move the model to the appropriate device (GPU if available, else CPU)
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
2 |
# Load model directly
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("unsloth/Llama-3.2-1B")
|
6 |
+
model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-1B")
|
7 |
|
8 |
# Move the model to the appropriate device (GPU if available, else CPU)
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|