Spaces:
Runtime error
Runtime error
Update app.py
Browse files31 unmodified lines323334353637383940414231 unmodified lines# Replace with your actual model namemodel_name = "jacksonstrut/tinyllama-1.1B-chat" # Update this with your model's name# Load the tokenizer and model with use_fast=Falsetokenizer = AutoTokenizer.from_pretrained(model_name,token=HUGGINGFACE_API_TOKEN,use_fast=False # Use the slow tokenizer to avoid conversion issues)config = AutoConfig.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(31 unmodified lines3233343536373839404142434445464748495051525354555631 unmodified lines# Replace with your actual model namemodel_name = "jacksonstrut/tinyllama-1.1B-chat" # Update this with your model's namefrom transformers import AutoTokenizermodel_name = "jacksonstrut/tinyllama-1.1B-chat"HUGGINGFACE_API_TOKEN = os.getenv('HUGGINGFACE_API_TOKEN')# Disable tokenizer parallelismimport osos.environ["TOKENIZERS_PARALLELISM"] = "false"# Load the tokenizer with use_fast=Falsetokenizer = AutoTokenizer.from_pretrained(model_name,token=HUGGINGFACE_API_TOKEN,use_fast=False)# Ensure pad_token is setif tokenizer.pad_token is None:tokenizer.pad_token = tokenizer.eos_token)config = AutoConfig.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(
app.py+16-2