Spaces:
Runtime error
Runtime error
FlawedLLM
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -45,10 +45,10 @@ import torch
|
|
45 |
# tokenizer = AutoTokenizer.from_pretrained("FlawedLLM/Bhashini")
|
46 |
from unsloth import FastLanguageModel
|
47 |
model, tokenizer = FastLanguageModel.from_pretrained(
|
48 |
-
model_name = "
|
49 |
-
max_seq_length =
|
50 |
-
dtype =
|
51 |
-
load_in_4bit =
|
52 |
FastLanguageModel.for_inference(model)
|
53 |
|
54 |
@spaces.GPU(duration=300)
|
|
|
45 |
# tokenizer = AutoTokenizer.from_pretrained("FlawedLLM/Bhashini")
|
46 |
from unsloth import FastLanguageModel
|
47 |
model, tokenizer = FastLanguageModel.from_pretrained(
|
48 |
+
model_name = "FlawedLLM/Bhashini_2", # YOUR MODEL YOU USED FOR TRAINING
|
49 |
+
max_seq_length = 2048,
|
50 |
+
dtype = torch.float16,
|
51 |
+
load_in_4bit = True,)
|
52 |
FastLanguageModel.for_inference(model)
|
53 |
|
54 |
@spaces.GPU(duration=300)
|