Spaces:
Runtime error
Runtime error
FlawedLLM
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
|
|
61 |
# model = AutoModelForCausalLM.from_pretrained("FlawedLLM/Bhashini_9",config=config, ignore_mismatched_sizes=True).to('cuda')
|
62 |
# Load model directly
|
63 |
|
64 |
-
tokenizer = AutoTokenizer.from_pretrained("FlawedLLM/
|
65 |
-
model = AutoModelForCausalLM.from_pretrained("FlawedLLM/
|
66 |
|
67 |
@spaces.GPU(duration=300)
|
68 |
def chunk_it(input_command, item_list):
|
|
|
61 |
# model = AutoModelForCausalLM.from_pretrained("FlawedLLM/Bhashini_9",config=config, ignore_mismatched_sizes=True).to('cuda')
|
62 |
# Load model directly
|
63 |
|
64 |
+
tokenizer = AutoTokenizer.from_pretrained("FlawedLLM/Bhashini_00")
|
65 |
+
model = AutoModelForCausalLM.from_pretrained("FlawedLLM/Bhashini_00", load_in_4bit=True)
|
66 |
|
67 |
@spaces.GPU(duration=300)
|
68 |
def chunk_it(input_command, item_list):
|