Sumit404 commited on
Commit
a45beaf
·
verified ·
1 Parent(s): 8f6d84e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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