Spaces:
Runtime error
Runtime error
File size: 416 Bytes
304c4d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from transformers import AutoModel, AutoTokenizer
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained("martinbravo/llama_finetuned_test")
# Load the model
model = AutoModel.from_pretrained("martinbravo/llama_finetuned_test")
# Test the model
input_text = "What is the capital of France?"
inputs = tokenizer(input_text, return_tensors="pt")
# Perform inference
outputs = model(**inputs)
print(outputs) |