Spaces:
Runtime error
Runtime error
Danil commited on
Commit Β·
2c3abf7
1
Parent(s): 0bea55f
Update app.py
Browse files6 unmodified lines789101112136 unmodified linesLoads the model and tokenizer from the local directory.:return: A list containing the model and the tokenizer.'''model_name = 'facebook/incoder-6B'tokenizer = AutoTokenizer.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(model_name, low_cpu_mem_usage=True)return [model, tokenizer]6 unmodified lines789101112136 unmodified linesLoads the model and tokenizer from the local directory.:return: A list containing the model and the tokenizer.'''model_name = 'facebook/incoder-1B'tokenizer = AutoTokenizer.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(model_name, low_cpu_mem_usage=True)return [model, tokenizer]
app.py+1-1