Spaces:
Runtime error
Runtime error
from transformers import AutoModelForCausalLM,AutoTokenizer | |
import streamlit as st | |
def LOAD_GEMMA(): | |
model_id = "aryachakraborty/GEMMA-2B-NL-SQL" | |
tokenizer = AutoTokenizer.from_pretrained(model_id) | |
model = AutoModelForCausalLM.from_pretrained(model_id, | |
low_cpu_mem_usage = True | |
).cpu() | |
return tokenizer,model | |
def LOAD_MISTRAL(): | |
model_id='' | |
tokenizer = AutoTokenizer.from_pretrained(model_id) | |
model = AutoModelForCausalLM.from_pretrained(model_id, | |
low_cpu_usage=True, | |
).cpu() |