Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,9 @@ import gradio as gr
|
|
| 2 |
from unsloth import FastLanguageModel
|
| 3 |
from peft import PeftModel
|
| 4 |
import torch
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
# Load the base model and tokenizer
|
| 7 |
max_seq_length = 4096
|
| 8 |
dtype = None
|
|
|
|
| 2 |
from unsloth import FastLanguageModel
|
| 3 |
from peft import PeftModel
|
| 4 |
import torch
|
| 5 |
+
# Load model directly
|
| 6 |
+
from transformers import AutoModel
|
| 7 |
+
model = AutoModel.from_pretrained("Sumit404/Llama-3.2-3B-Instruct-bnb-4bit-finetuned", torch_dtype="auto")
|
| 8 |
# Load the base model and tokenizer
|
| 9 |
max_seq_length = 4096
|
| 10 |
dtype = None
|